Skip to content

Commit

Permalink
fix(lightbulb): set on/off state correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
johannrichard committed Nov 22, 2020
1 parent d40ba1e commit 697d13c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/myStromLightbulbAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ export class MyStromLightbulbAccessory {
this.lightbulbService
.getCharacteristic(this.platform.Characteristic.Brightness)
.updateValue(this.lightbulbState.value);
this.lightbulbService
.getCharacteristic(this.platform.Characteristic.On)
.updateValue(this.lightbulbState.on);
})
.catch((e) => {
this.platform.log.debug('Error while retrieving Device Report ->', e);
Expand Down

0 comments on commit 697d13c

Please sign in to comment.