homebridge-multiple-switch 1.7.0-beta.7 → 1.7.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.7.0-beta.8] - 2026-05-17
4
+
5
+ ### Changed
6
+ - Default State now applies on every Homebridge restart, not just on first creation — switches always start in their configured default state
7
+
3
8
  ## [1.7.0-beta.7] - 2026-05-17
4
9
 
5
10
  ### Fixed
package/index.js CHANGED
@@ -145,9 +145,7 @@ class MultipleSwitchPlatform {
145
145
 
146
146
  services.set(subtype, service);
147
147
 
148
- if (accessory.context.switchStates[subtype] === undefined) {
149
- accessory.context.switchStates[subtype] = sw.defaultState || false;
150
- }
148
+ accessory.context.switchStates[subtype] = sw.defaultState || false;
151
149
  });
152
150
 
153
151
  // Clean up states for removed switches
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-multiple-switch",
3
- "version": "1.7.0-beta.7",
3
+ "version": "1.7.0-beta.8",
4
4
  "description": "Multiple switch platform for Homebridge",
5
5
  "homepage": "https://github.com/azadaydinli/homebridge-multiple-switch",
6
6
  "main": "index.js",