homebridge-zwave-usb 2.9.3 → 2.9.5

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.
@@ -70,6 +70,12 @@ class ZWaveAccessory {
70
70
  if (infoService.getCharacteristic(this.platform.Characteristic.SerialNumber).value !== serial) {
71
71
  infoService.updateCharacteristic(this.platform.Characteristic.SerialNumber, serial);
72
72
  }
73
+ // Add ServiceLabelNamespace to help with naming multi-service accessories
74
+ if (!infoService.testCharacteristic(this.platform.Characteristic.ServiceLabelNamespace)) {
75
+ infoService.addOptionalCharacteristic(this.platform.Characteristic.ServiceLabelNamespace);
76
+ }
77
+ // 1 = Arabic numerals (1, 2, 3...)
78
+ infoService.updateCharacteristic(this.platform.Characteristic.ServiceLabelNamespace, 1);
73
79
  /**
74
80
  * Helper to normalize UUIDs for reliable comparison during metadata pruning.
75
81
  */
@@ -108,7 +114,7 @@ class ZWaveAccessory {
108
114
  const nameChar = infoService.getCharacteristic(this.platform.Characteristic.Name);
109
115
  nameChar.setProps({
110
116
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
111
- perms: [settings_1.HAPPerm.PAIRED_READ],
117
+ perms: [settings_1.HAPPerm.PAIRED_READ, settings_1.HAPPerm.NOTIFY],
112
118
  });
113
119
  nameChar.updateValue(newName);
114
120
  // Update all features
@@ -34,7 +34,7 @@ class BaseFeature {
34
34
  const nameChar = service.getCharacteristic(this.platform.Characteristic.Name);
35
35
  nameChar.setProps({
36
36
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
37
- perms: [settings_1.HAPPerm.PAIRED_READ],
37
+ perms: [settings_1.HAPPerm.PAIRED_READ, settings_1.HAPPerm.NOTIFY],
38
38
  });
39
39
  nameChar.updateValue(serviceName);
40
40
  }
@@ -95,12 +95,12 @@ class BaseFeature {
95
95
  }
96
96
  // Sync internal property
97
97
  service.displayName = serviceName;
98
- // 1. Standard Name: Notify only (Removed NOTIFY to allow user overrides in Home app)
98
+ // 1. Standard Name: Notify enabled
99
99
  if (service.testCharacteristic(this.platform.Characteristic.Name)) {
100
100
  const nameChar = service.getCharacteristic(this.platform.Characteristic.Name);
101
101
  nameChar.setProps({
102
102
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
- perms: [settings_1.HAPPerm.PAIRED_READ],
103
+ perms: [settings_1.HAPPerm.PAIRED_READ, settings_1.HAPPerm.NOTIFY],
104
104
  });
105
105
  nameChar.updateValue(serviceName);
106
106
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-zwave-usb",
3
3
  "displayName": "Homebridge Z-Wave USB",
4
- "version": "2.9.3",
4
+ "version": "2.9.5",
5
5
  "description": "A Homebridge dynamic platform plugin for Z-Wave USB controllers using zwave-js.",
6
6
  "license": "Polyform-Noncommercial-1.0.0",
7
7
  "funding": {