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

if MQTT server goes down, the Homie devices stop responding to physical keys #571

Closed
manuelmouraguedes opened this issue Mar 4, 2019 · 2 comments

Comments

@manuelmouraguedes
Copy link

Hi,

Just implemented Homie on a Tuya based wall switch (2 buttons). Connects to Mosquitto under HASSIO and everything is working great.
BUT, if I stop the MQTT server the physical buttons stop responding and any rebbot hangs with the repeating debug message "Attempting to connect to MQTT..."
So, if MQTT is down the switch cannot perform is offline capabilities, i.e react to physical button press and trigger relay
I intend to replace all my wall switches by these Homie/Tuya ones. Cannot have the wall switches dead if the Wifi or Mosquitto goes down...
Is this how Homie works, requiring that MQTT will always be available to respond or is there a confuguration that enables the switch to communicate with MQTT when available but still work offline when MQTT is not reachable?

Thanks,

@euphi
Copy link
Member

euphi commented Mar 7, 2019

The loop handler is not called, if MQTT is disconnected.

This was already discussed earlier. For version 2 there is a PR that has not yet been merged: #490. You can manually add it to your sources.

For version 3 I will provide a PR soon (and also care for tests).

@euphi
Copy link
Member

euphi commented Mar 10, 2019

Closed with #490.

@euphi euphi closed this as completed Mar 10, 2019
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

No branches or pull requests

2 participants