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

Allow Heishamon restart using MQTT #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CurlyMoo
Copy link

I'm in a scenario where the webserver fails so the only
way to restart it remotely is by switching power of the
heatpump. In my case MQTT still works, so it would be
handy if we could restart the Heishamon using a MQTT
command.

I'm in a scenario where the webserver fails so
the only way to restart it remotely is by switching
power of the heatpump. In my case MQTT still
works, so it would be handy if we could restart
the Heishamon using a MQTT command.
@IgorYbema
Copy link
Owner

Should we check if the topic is pushed as 'retained'? If so, it would be a constant restart :)

@CurlyMoo
Copy link
Author

CurlyMoo commented Feb 9, 2023

Good point. Does the API allow checking for retain in this callback?

@IgorYbema
Copy link
Owner

It doesn't seems to have it currently. A workaround could be to send a non-retained message back so it will overwrite any retained message before rebooting.

@IgorYbema
Copy link
Owner

This one needs a bit updating. Removing the static topic name and send a non-retained MQTT message back just before the restart to make sure it doesn't restart all the time

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