homebridge-multiple-switch 1.6.0-beta.5 → 1.6.0-beta.7

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.6.0-beta.7] - 2026-03-21
4
+
5
+ ### Changed
6
+ - Master switch type now defaults to Switch instead of Outlet (both UI and backend)
7
+
3
8
  ## [1.6.0-beta.5] - 2026-03-21
4
9
 
5
10
  ### Fixed
@@ -414,8 +414,8 @@
414
414
  </div>
415
415
  ${dev.masterSwitch ? `
416
416
  <select class="master-type-field" data-dev="${di}" style="width:auto;min-width:120px;flex-shrink:0">
417
- <option value="switch" ${dev.masterSwitchType === 'switch' ? 'selected' : ''}>${t.typeSwitch || 'Switch'}</option>
418
- <option value="outlet" ${dev.masterSwitchType === 'outlet' || !dev.masterSwitchType ? 'selected' : ''}>${t.typeOutlet || 'Outlet'}</option>
417
+ <option value="switch" ${dev.masterSwitchType === 'switch' || !dev.masterSwitchType ? 'selected' : ''}>${t.typeSwitch || 'Switch'}</option>
418
+ <option value="outlet" ${dev.masterSwitchType === 'outlet' ? 'selected' : ''}>${t.typeOutlet || 'Outlet'}</option>
419
419
  </select>
420
420
  ` : ''}
421
421
  </div>
package/index.js CHANGED
@@ -119,7 +119,7 @@ class MultipleSwitchPlatform {
119
119
 
120
120
  // 1. Create master switch FIRST if enabled (appears at top in HomeKit)
121
121
  if (hasMaster) {
122
- const MasterServiceClass = this.getServiceClass(device.masterSwitchType);
122
+ const MasterServiceClass = this.getServiceClass(device.masterSwitchType || 'switch');
123
123
  const masterService = accessory.addService(MasterServiceClass, 'Master', MASTER_SUBTYPE);
124
124
 
125
125
  this.setServiceName(masterService, 'Master');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-multiple-switch",
3
- "version": "1.6.0-beta.5",
3
+ "version": "1.6.0-beta.7",
4
4
  "description": "Multiple switch platform for Homebridge",
5
5
  "homepage": "https://github.com/azadaydinli/homebridge-multiple-switch",
6
6
  "main": "index.js",