raomin / ESPAltherma

Monitor your Daikin Altherma / ROTEX heat pump with ESP32
MIT License
338 stars 113 forks source link

Possible undesirable behaviour on MQTT broker connection failure #423

Open arc12 opened 6 months ago

arc12 commented 6 months ago

Consider the situation when everything has been working well and one or more of the outputs (smart grid, thermo-on, safety) have been activated. Now consider a failure of the network or of the MQTT broker.

What should happen when ESPAltherma cannot reconnect to the broker? I propose there should be default ("safe") settings for the outputs which are asserted on MQTT connection loss. As far as I can see from the code, the current algorithm for reconnection makes no change to the output. So it could leave SG=mode3 on!