Closed Zer0x00 closed 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' ] }
{ state: 'On', commands: [ 'night_mode' ] }
With this PR it is now changed to { commands: [ 'night_mode' ] }
{ commands: [ 'night_mode' ] }
I did a few tests with dark mode enabled and disabled. In both conditions the issue seems now to be fixed.
Awesome, thanks!
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.