Skip to content

Commit

Permalink
Removed updating ConfigureName showing current charge level.
Browse files Browse the repository at this point in the history
Homekit just choose to ignore updates every now and then.
This information is now in the dashboard.

If you have used a 6.0.0 pre-release, manually rename the battery
accessory.
  • Loading branch information
loftux committed Apr 26, 2021
1 parent c46d620 commit 6dbe229
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/platform/platformAccessoryBattery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ export class TeslaBatteryAccessory extends TeslaAccessory {
this.currentStateBattereyLevel
);
// Also set the charge in the swith name since Homekit is useless to display data that is there!!
this.service.setCharacteristic(
this.platform.Characteristic.ConfiguredName,
this.platform.accessoryPrefix +
'\uD83D\uDD0B ' +
this.currentStateBattereyLevel.toString() +
'%'
);
// this.service.setCharacteristic(
// this.platform.Characteristic.ConfiguredName,
// this.platform.accessoryPrefix +
// '\uD83D\uDD0B ' +
// this.currentStateBattereyLevel.toString() +
// '%'
// );
}

if (oldCurrentStateBatteryLevelLow !== this.currentStateBatteryLevelLow) {
Expand Down

0 comments on commit 6dbe229

Please sign in to comment.