Persistence across ANY changes #119
dgirard96789
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd love to figure out how to tweak this so that the On or Off state was enforced during the associated time periods.
ie, if on at 8 AM and off at 8 PM, then any detected incorrect state would be corrected. so if a user pushed the off button during the on period, this would detect that and turn it back on. Or if the state were incorrect for any reason (nextwork, device restart, etc)
This could be as simple as just running the trigger every couple minutes (which I'm assuming would generate lots of on and off messages in the logs since it would resend the message every time), or possibly even better to keep track of the expected state and trigger on the actual read state being different than the expected state. Not sure if this is possible?
Anyway, just a thought. I'm using this now to manage the lights in my grow-room. Pretty critical that light state is maintained, and this would be a great fail-safe.
Beta Was this translation helpful? Give feedback.
All reactions