homebridge-zwave-usb 2.9.5 → 2.9.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.
@@ -114,7 +114,7 @@ class ZWaveAccessory {
114
114
  const nameChar = infoService.getCharacteristic(this.platform.Characteristic.Name);
115
115
  nameChar.setProps({
116
116
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
117
- perms: [settings_1.HAPPerm.PAIRED_READ, settings_1.HAPPerm.NOTIFY],
117
+ perms: [settings_1.HAPPerm.PAIRED_READ],
118
118
  });
119
119
  nameChar.updateValue(newName);
120
120
  // Update all features
@@ -34,18 +34,10 @@ 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, settings_1.HAPPerm.NOTIFY],
37
+ perms: [settings_1.HAPPerm.PAIRED_READ],
38
38
  });
39
39
  nameChar.updateValue(serviceName);
40
40
  }
41
- if (service.testCharacteristic(this.platform.Characteristic.ConfiguredName)) {
42
- const configuredNameChar = service.getCharacteristic(this.platform.Characteristic.ConfiguredName);
43
- configuredNameChar.setProps({
44
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
45
- perms: [settings_1.HAPPerm.PAIRED_READ, settings_1.HAPPerm.PAIRED_WRITE, settings_1.HAPPerm.NOTIFY],
46
- });
47
- configuredNameChar.updateValue(serviceName);
48
- }
49
41
  }
50
42
  }
51
43
  getServices() {
@@ -95,25 +87,19 @@ class BaseFeature {
95
87
  }
96
88
  // Sync internal property
97
89
  service.displayName = serviceName;
98
- // 1. Standard Name: Notify enabled
90
+ // 1. Standard Name: Notify removed
99
91
  if (service.testCharacteristic(this.platform.Characteristic.Name)) {
100
92
  const nameChar = service.getCharacteristic(this.platform.Characteristic.Name);
101
93
  nameChar.setProps({
102
94
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
- perms: [settings_1.HAPPerm.PAIRED_READ, settings_1.HAPPerm.NOTIFY],
95
+ perms: [settings_1.HAPPerm.PAIRED_READ],
104
96
  });
105
- nameChar.updateValue(serviceName);
106
- }
107
- // 2. ConfiguredName: Read/Write/Notify (Critical for Settings/Renaming support)
108
- if (!service.testCharacteristic(this.platform.Characteristic.ConfiguredName)) {
109
- service.addOptionalCharacteristic(this.platform.Characteristic.ConfiguredName);
97
+ // Only update if current value is generic "Node X" to respect user overrides
98
+ const currentValue = nameChar.value;
99
+ if (!currentValue || currentValue.startsWith('Node ')) {
100
+ nameChar.updateValue(serviceName);
101
+ }
110
102
  }
111
- const configuredNameChar = service.getCharacteristic(this.platform.Characteristic.ConfiguredName);
112
- configuredNameChar.setProps({
113
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
114
- perms: [settings_1.HAPPerm.PAIRED_READ, settings_1.HAPPerm.PAIRED_WRITE, settings_1.HAPPerm.NOTIFY],
115
- });
116
- configuredNameChar.updateValue(serviceName);
117
103
  // Add Service Label Index for multi-endpoint devices to help with ordering/naming
118
104
  if (this.endpoint.index > 0) {
119
105
  if (!service.testCharacteristic(this.platform.Characteristic.ServiceLabelIndex)) {
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.5",
4
+ "version": "2.9.7",
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": {