homebridge-zwave-usb 3.6.4 → 3.6.6
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.
|
@@ -289,6 +289,9 @@ class ZWaveAccessory {
|
|
|
289
289
|
.setCharacteristic(this.platform.Characteristic.Model, model)
|
|
290
290
|
.setCharacteristic(this.platform.Characteristic.SerialNumber, serial)
|
|
291
291
|
.setCharacteristic(this.platform.Characteristic.FirmwareRevision, firmwareRevision);
|
|
292
|
+
if (this.platform.Characteristic.SoftwareRevision) {
|
|
293
|
+
infoService.setCharacteristic(this.platform.Characteristic.SoftwareRevision, firmwareRevision);
|
|
294
|
+
}
|
|
292
295
|
this.ensureAccessoryInformationConfiguredName(infoService, name);
|
|
293
296
|
if (options.syncName) {
|
|
294
297
|
this.platformAccessory.displayName = name;
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ZWaveUsbPlatform = void 0;
|
|
7
|
+
const core_1 = require("@zwave-js/core");
|
|
7
8
|
const http_1 = __importDefault(require("http"));
|
|
8
9
|
const path_1 = __importDefault(require("path"));
|
|
9
10
|
const fs_1 = __importDefault(require("fs"));
|
|
@@ -493,6 +494,10 @@ class ZWaveUsbPlatform {
|
|
|
493
494
|
handleValueUpdated(node, args) {
|
|
494
495
|
this.log.debug(`Node ${node.nodeId} value updated`);
|
|
495
496
|
this.logValueEventDetails(node, 'value updated', args);
|
|
497
|
+
if (args.commandClass === core_1.CommandClasses.Version ||
|
|
498
|
+
args.commandClass === core_1.CommandClasses['Manufacturer Specific']) {
|
|
499
|
+
this.syncNodeAccessory(node);
|
|
500
|
+
}
|
|
496
501
|
const accessory = this.zwaveAccessories.get(node.nodeId);
|
|
497
502
|
if (accessory) {
|
|
498
503
|
accessory.refresh(args);
|
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": "3.6.
|
|
4
|
+
"version": "3.6.6",
|
|
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": {
|