WillCodeForCats / tekmar-482

Home Assistant integration for the Tekmar Gateway 482
MIT License
7 stars 1 forks source link

Remove aux heat from climate entity #77

Open WillCodeForCats opened 5 months ago

WillCodeForCats commented 5 months ago

Climate entity auxiliary heater is deprecated https://developers.home-assistant.io/blog/2024/03/10/climate-aux-heater-deprecated

Re-implement as a switch entity under device config.

WillCodeForCats commented 5 months ago

This is a distinct hvac_mode on Tekmar thermostats, but the HA climate entity doesn't have a matching HVACMode for emergency heat. Instead, the climate entity will show 'heat' mode (return HVACMode.HEAT) when the thermostat is in emergency mode since HA can't show the true mode of the thermostat.

A new switch for emergency heat will show if the thermostat is in emergency mode (and set it). During normal operation the thermostat will not show if the emergency stage is active or not, only if it's in that mode to force operation.