Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moodlight color state after reboot / powercycle #123

Closed
nagyrobi opened this issue Apr 5, 2021 · 1 comment
Closed

Moodlight color state after reboot / powercycle #123

nagyrobi opened this issue Apr 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@nagyrobi
Copy link
Collaborator

nagyrobi commented Apr 5, 2021

Is your feature request related to a problem? Please describe.
Similar to group items, moodlight color, state (and brightness after implemented) should be remembered after reboot / powercycle.
If HA and plate both reboot while the moodlight was turned off, nobody remembers what was the pre-selected moodlight attribute. At HA reboot, the current of moodlight color is read from the plate because HA doesn't keep the color attribute when light is off. If plate also reboots during this time (eg. power outage affecting all devices), nobody remembers what was the pre-selected color.

Describe the solution you'd like
When moodlight command comes in with color key, check if moodlight color info is saved to the flash. If moodlight color info in flash is different of what came with the command, write to flash the new color info (save flash writes if every {"state":"true"} command comes with the same color info every time...)
At boot restore moodlight color info (and state) from flash.

Describe alternatives you've considered
Only this

Additional context
Not applicable

@nagyrobi nagyrobi added the enhancement New feature or request label Apr 5, 2021
@fvanroie
Copy link
Collaborator

Moved to #99 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants