-
Notifications
You must be signed in to change notification settings - Fork 13
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
state changes after restart #38
Comments
I think saving the last state is nice, because it could have changed in the meantime. I think it would be better to ask the led light for it's current state, when starting. Only if this is not possible, saving the state makes sense. |
@michbeck100 Generally, you're right. Note, however, some of the LED driver protocols are unidirectional! For Milight, for example, it is not possible to query the state. |
It would be nice to have the option to not trigger the switchs on pimatic start. The actual problem is that when pimatic or raspberry restart, all the lights gets switched on. |
Actually the lights should just be switched on if the saved state says that they have been switched on, when pimatic was stopped. At least that's what this piece of code tries to do:
This code is in the constructor for most devices, but i think this doesn't work, because the default value of |
@michbeck100 You're right. this is a design flaw of the plugin. "true" and "false" shall be used. |
Yeah it should be completly switched to true and false. |
#66 should fix this |
for example, devices are off, after a restart they are on. so laststate is not saved.
The text was updated successfully, but these errors were encountered: