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

Implement safe mode #46

Closed floatplane closed 7 months ago

floatplane commented 7 months ago

For air handlers that don't have a proper temperature sensor, we never want to revert to the internal sensor - it's likely to be 20 degrees or more away from the actual room temperature.

Safe mode will instead shut the unit down when it's not receiving temperature updates.

This PR also reorganizes loop(), renames some things to reflect what they do, and removes the statusChanged callback: having a callback made no sense since we were doing the same thing on every loop anyway.

Resolves #19.