normen / homebridge-milighthub-platform

Homebridge plugin to control MiLight Hub
6 stars 0 forks source link

Fix light flashing when night mode is activated (#6) #8

Closed Zer0x00 closed 4 years ago

Zer0x00 commented 4 years ago

The issue with the light flashing when night mode gets activated was because MiLight sets the state of the bulbs natively to Off if night mode is activated. The ESP8266 implementation replicates this behaviour.

Currently we're sending { state: 'On', commands: [ 'night_mode' ] }

With this PR it is now changed to { commands: [ 'night_mode' ] }

I did a few tests with dark mode enabled and disabled. In both conditions the issue seems now to be fixed.

normen commented 4 years ago

Awesome, thanks!