diff --git a/src/accessory/characteristic/EnergyUsage.ts b/src/accessory/characteristic/EnergyUsage.ts index f6f85682..15347f5b 100644 --- a/src/accessory/characteristic/EnergyUsage.ts +++ b/src/accessory/characteristic/EnergyUsage.ts @@ -117,11 +117,11 @@ function createVoltsCharacteristic(api: API) { } function createKilowattHourCharacteristic(api: API) { - return class Watts extends api.hap.Characteristic { + return class KilowattHour extends api.hap.Characteristic { static readonly UUID = 'E863F10C-079E-48FF-8F27-9C2605A29F52'; constructor() { - super('Total Consumption', Watts.UUID, { + super('Total Consumption', KilowattHour.UUID, { format: api.hap.Formats.FLOAT, perms: [api.hap.Perms.NOTIFY, api.hap.Perms.PAIRED_READ], unit: 'kWh',