jheling / freeathome

Free@Home component for Home Assistant
103 stars 37 forks source link

Add hvac_action for thermostats #187

Open Macstar1601 opened 2 weeks ago

Macstar1601 commented 2 weeks ago

It would be great if you could add the hvac_action to the thermostats so that you can see whether it is heating or cooling. Currently you can't see what the thermostat is doing.

Like this, for example:

https://github.com/albertogeniola/meross-homeassistant/blob/master/custom_components/meross_cloud/climate.py#L20

def hvac_action(self) -> Optional[str]: if not self._device.is_on(): return HVACAction.OFF elif self._device.is_heating: return HVACAction.HEATING elif self._device.mode == HVACAction.COOLING: return HVACAction.COOLING else: return HVACAction.IDLE