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

HVAC connection stuck #244

Open
lightoze opened this issue Nov 16, 2023 · 2 comments
Open

HVAC connection stuck #244

lightoze opened this issue Nov 16, 2023 · 2 comments

Comments

@lightoze
Copy link

Periodically I get a situation when HVAC connection is stuck in disconnected state. Going to web interface and rebooting helps, so probably reconnect logic is not resetting connection state well enough. Perhaps it could be improved so that the connection is restored without the need to manually reboot?

@sean-leach
Copy link

I have the exact same issue, and web UI reboot does fix it

@lightoze
Copy link
Author

I implemented a workaround by adding this in the main loop() function:

         hpConnectionRetries = min(hpConnectionRetries + 1u, HP_MAX_RETRIES);
         hpConnectionTotalRetries++;
         hp.sync();
+        if (hpConnectionTotalRetries > 10 && mqtt_client.state() == MQTT_CONNECTED) {
+            ESP.restart();
+        }

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