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

Feature: include "take control" state when restoring / restarting #502

Conversation

cobaltfish
Copy link
Contributor

This should enable 4 wire devices to restore state of heater / pump on reboot

@visualapproach
Copy link
Owner

Nice, can you confirm it works ok?

@cobaltfish
Copy link
Contributor Author

Yep, I've been running it for a few days now, and as far as I can tell, has worked correctly when needing to power back on following a brief power cut in addition to testing that I'd done

Only thing I noticed was in the states file it puts true / false rather than 1 / 0 that the other on/off settings use. But if/as 1 = true = on, it parses it ok

@visualapproach visualapproach merged commit 60185b0 into visualapproach:development_v4 May 10, 2023
@visualapproach
Copy link
Owner

Thanks, I pulled it in and added a conversion from bool to uint8_t to make it look consistent and saving 6 bytes of transmission :-)
not zero is considered true and 0 = false.

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

Successfully merging this pull request may close these issues.

2 participants