homebridge-zwave-usb 3.6.3 → 3.6.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.
@@ -242,11 +242,8 @@ class ZWaveAccessory {
242
242
  }
243
243
  getModel() {
244
244
  const fingerprint = this.getFingerprint();
245
- const label = this.node.label || this.node.deviceConfig?.label;
246
- if (label && fingerprint) {
247
- return `${label} (${fingerprint})`;
248
- }
249
- return fingerprint || label || `Node ${this.node.nodeId}`;
245
+ const model = this.node.deviceConfig?.description || this.node.label || this.node.deviceConfig?.label;
246
+ return model || fingerprint || `Node ${this.node.nodeId}`;
250
247
  }
251
248
  getSerialNumber() {
252
249
  const cachedSerialNumber = this.getCachedDeviceSerialNumber();
@@ -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);
@@ -56,6 +56,7 @@ export interface IZWaveNode {
56
56
  productId?: number;
57
57
  deviceConfig?: {
58
58
  label?: string;
59
+ description?: string;
59
60
  manufacturer?: string;
60
61
  };
61
62
  ready: boolean;
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.3",
4
+ "version": "3.6.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": {