homebridge-zwave-usb 2.4.0 → 2.5.0
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.
|
@@ -30,6 +30,9 @@ class BaseFeature {
|
|
|
30
30
|
if (service.testCharacteristic(this.platform.Characteristic.Name)) {
|
|
31
31
|
service.getCharacteristic(this.platform.Characteristic.Name).updateValue(serviceName);
|
|
32
32
|
}
|
|
33
|
+
if (service.testCharacteristic(this.platform.Characteristic.ConfiguredName)) {
|
|
34
|
+
service.getCharacteristic(this.platform.Characteristic.ConfiguredName).updateValue(serviceName);
|
|
35
|
+
}
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
getServices() {
|
|
@@ -87,6 +90,11 @@ class BaseFeature {
|
|
|
87
90
|
perms: [settings_1.HAPPerm.PAIRED_READ],
|
|
88
91
|
})
|
|
89
92
|
.updateValue(serviceName);
|
|
93
|
+
// Also set ConfiguredName which HomeKit often prioritizes for display
|
|
94
|
+
if (!service.testCharacteristic(this.platform.Characteristic.ConfiguredName)) {
|
|
95
|
+
service.addOptionalCharacteristic(this.platform.Characteristic.ConfiguredName);
|
|
96
|
+
}
|
|
97
|
+
service.getCharacteristic(this.platform.Characteristic.ConfiguredName).updateValue(serviceName);
|
|
90
98
|
// Add Service Label Index for multi-endpoint devices to help with ordering/naming
|
|
91
99
|
if (this.endpoint.index > 0) {
|
|
92
100
|
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.
|
|
4
|
+
"version": "2.5.0",
|
|
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": {
|