floatplane / MitsuQTT

Use ESP8266/ESP32 hardware to control Mitsubishi heat pumps via MQTT
GNU Lesser General Public License v2.1
3 stars 2 forks source link

Mqtt reconnect? #69

Open Allram opened 1 month ago

Allram commented 1 month ago

Hey,

And thanks for your work on this. It seems to work really good on my HVAC.

One thing i'm having trouble with is MQTT and reconnecting if the MQTT server reboots or goes offline for a while.

Is that a setting somewhere i can adjust?

floatplane commented 2 weeks ago

🤔 I haven't had that problem, things have always reconnected correctly for me.

Might be interesting to enable logging and see if that helps shed light. There's a kind of hacky compiler option I added to enable logging to a websocket.

  1. define ENABLE_WEBSOCKET_LOGGING in https://github.com/floatplane/MitsuQTT/blob/main/src/logger.cpp
  2. run a command like websocat ws://X.X.X.X:81/log to get the log stream dumped to your terminal (obviously replace that with a real IP address 😂)

If you try it, let me know if it turns up anything interesting!