diff --git a/package-lock.json b/package-lock.json index 4e0d7f8..0763d4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "homebridge-homewizard-power-consumption", - "version": "1.6.2", + "version": "1.6.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "homebridge-homewizard-power-consumption", - "version": "1.6.2", + "version": "1.6.3", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.7" diff --git a/package.json b/package.json index 5fa74b1..38ea6db 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "homebridge-homewizard-power-consumption", "displayName": "Homewizard Power Consumption", - "version": "1.6.2", + "version": "1.6.3", "description": "See current power consumption and power return in Homekit", "license": "Apache-2.0", "author": "Jasper Seinhorst", diff --git a/src/Accessories/PowerConsumption.ts b/src/Accessories/PowerConsumption.ts index 21a7325..2cba18f 100644 --- a/src/Accessories/PowerConsumption.ts +++ b/src/Accessories/PowerConsumption.ts @@ -10,7 +10,7 @@ export default class PowerConsumption implements HomewizardPowerConsumptionAcces this.accessory.getService(this.Service.AccessoryInformation) .setCharacteristic(this.Characteristic.Manufacturer, 'Homewizard') .setCharacteristic(this.Characteristic.Model, device.product_name) - .setCharacteristic(this.Characteristic.SerialNumber, device.serial); + .setCharacteristic(this.Characteristic.SerialNumber, `${device.serial}-power-consumption`); this.powerService = this.accessory.getService(this.Service.LightSensor) || this.accessory.addService(this.Service.LightSensor); } diff --git a/src/Accessories/PowerReturn.ts b/src/Accessories/PowerReturn.ts index ec4fdf7..5d12b6b 100644 --- a/src/Accessories/PowerReturn.ts +++ b/src/Accessories/PowerReturn.ts @@ -10,7 +10,7 @@ export default class PowerReturn implements HomewizardPowerConsumptionAccessory this.accessory.getService(this.Service.AccessoryInformation) .setCharacteristic(this.Characteristic.Manufacturer, 'Homewizard') .setCharacteristic(this.Characteristic.Model, device.product_name) - .setCharacteristic(this.Characteristic.SerialNumber, device.serial); + .setCharacteristic(this.Characteristic.SerialNumber, `${device.serial}-power-return`); this.powerService = this.accessory.getService(this.Service.LightSensor) || this.accessory.addService(this.Service.LightSensor); }