Skip to content

Commit

Permalink
fix: duplicate serial numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jasper-seinhorst committed Mar 24, 2024
1 parent 207b765 commit a62b4df
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Accessories/PowerConsumption.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Accessories/PowerReturn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a62b4df

Please sign in to comment.