diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-08-06 22:41:25 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-08-06 22:41:25 +0200 |
commit | 8d9015ddff1ef4fe1f65bdae3f3dbef238234980 (patch) | |
tree | bcaa8d94e7ac034150ef1fd3bdb281b203e57d8c /plugin.ts | |
parent | 02530a1b86dd5fb3a81cfd2f665d4c0bd7ebccce (diff) |
more small fixes (finally works flawlessly)
Diffstat (limited to 'plugin.ts')
-rw-r--r-- | plugin.ts | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -49,9 +49,6 @@ export default class BekenBridge implements AccessoryPlugin { registerWhiteBulbServices() { var done = () => { - if (this.state.lamp == 'rgb') { - this.RGBBulbService.getCharacteristic(this.api.hap.Characteristic.On).setValue(false); - } this.state.lamp = 'white'; this.updateLamp(); }; @@ -71,9 +68,6 @@ export default class BekenBridge implements AccessoryPlugin { registerRGBBulbServices() { var done = () => { - if (this.state.lamp == 'white') { - this.whiteBulbService.getCharacteristic(this.api.hap.Characteristic.On).setValue(false); - } this.state.lamp = 'rgb'; this.updateLamp(); }; @@ -104,6 +98,7 @@ export default class BekenBridge implements AccessoryPlugin { } updateLamp() { + this.log.info(JSON.stringify(this.state, null, 2)); if (!this.state.on) { this.lamp.color = [0, 0, 0, 0]; return; |