@smarterhomeapp/homebridge-vantage 1.0.4 → 1.0.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.
@@ -21,6 +21,7 @@ class VantagePlatformAccessory {
21
21
  this.accessory.addService(this.Service.AccessoryInformation);
22
22
  info.setCharacteristic(this.Characteristic.Manufacturer, 'Vantage Controls');
23
23
  info.setCharacteristic(this.Characteristic.Model, device.objectType ?? device.type);
24
+ info.setCharacteristic(this.Characteristic.Name, device.name);
24
25
  info.setCharacteristic(this.Characteristic.SerialNumber, `VID ${device.vid}`);
25
26
  // Build the correct primary service for the type
26
27
  let primary;
@@ -184,6 +185,8 @@ class VantagePlatformAccessory {
184
185
  this.platform.log.warn(`Unsupported device type ${device.type} for ${this.accessory.displayName}`);
185
186
  return;
186
187
  }
188
+ primary.displayName = device.name;
189
+ primary.setCharacteristic(this.Characteristic.Name, device.name);
187
190
  // Mark primary (helps Home app pick the right tile)
188
191
  try {
189
192
  primary.setPrimaryService?.(true);
@@ -323,7 +323,7 @@ class VantageInfusion extends events_1.EventEmitter {
323
323
  devices.push(dev);
324
324
  };
325
325
  if (it.DeviceCategory === 'HVAC' || TYPE_THERMO.includes(it.ObjectType)) {
326
- this.opts.log.info(`New HVAC added (VID=${it.VID}, Name=${it.Name})`);
326
+ this.opts.log.info(`New HVAC added (VID=${it.VID}, Name=${name})`);
327
327
  pushUnique({
328
328
  name,
329
329
  address: vid,
@@ -357,7 +357,7 @@ class VantageInfusion extends events_1.EventEmitter {
357
357
  it.LoadType === 'Motor' ||
358
358
  it.LoadType === 'High Voltage Relay';
359
359
  if (isRelay) {
360
- this.opts.log.info(`New relay added (VID=${it.VID}, Name=${it.Name}, RELAY)`);
360
+ this.opts.log.info(`New relay added (VID=${it.VID}, Name=${name}, RELAY)`);
361
361
  pushUnique({
362
362
  name,
363
363
  address: vid,
@@ -370,7 +370,7 @@ class VantageInfusion extends events_1.EventEmitter {
370
370
  });
371
371
  }
372
372
  else if (it.ObjectType === 'Vantage.DDGColorLoad') {
373
- this.opts.log.info(`New load added (VID=${it.VID}, Name=${it.Name}, RGB)`);
373
+ this.opts.log.info(`New load added (VID=${it.VID}, Name=${name}, RGB)`);
374
374
  pushUnique({
375
375
  name,
376
376
  address: vid,
@@ -385,7 +385,7 @@ class VantageInfusion extends events_1.EventEmitter {
385
385
  });
386
386
  }
387
387
  else {
388
- this.opts.log.info(`New load added (VID=${it.VID}, Name=${it.Name}, DIMMER)`);
388
+ this.opts.log.info(`New load added (VID=${it.VID}, Name=${name}, DIMMER)`);
389
389
  pushUnique({
390
390
  name,
391
391
  address: vid,
@@ -404,7 +404,7 @@ class VantageInfusion extends events_1.EventEmitter {
404
404
  blindOpenClose[it.OpenLoad] = it.OpenLoad;
405
405
  blindOpenClose[it.CloseLoad] = it.CloseLoad;
406
406
  }
407
- this.opts.log.info(`New Blind added (VID=${it.VID}, Name=${it.Name}, BLIND)`);
407
+ this.opts.log.info(`New Blind added (VID=${it.VID}, Name=${name}, BLIND)`);
408
408
  pushUnique({ name, address: vid, type: 'blind', vid, objectType: it.ObjectType, pos: 100, posState: 2 });
409
409
  continue;
410
410
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smarterhomeapp/homebridge-vantage",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Homebridge plugin for Vantage InFusion (dynamic platform, HB 1.6+ / 2.0 ready)",
5
5
  "license": "MIT",
6
6
  "keywords": [