New HVACAction DEFROSTING
· One min read
The ClimateEntity
has an hvac_action
property, which describes what the climate entity is currently doing (which is not the same as its mode).
We have added DEFROSTING
as a possible HVACAction
to represent when an entity is currently defrosting.
Defrosting is when the system runs in reverse for some time to melt down accumulated ice. It occurs typically in colder environments and should not be mixed with, for example, cars that are defrosting by heating their windows.
from homeassistant.components.climate.const import HVACAction
class MyClimateEntity(ClimateEntity):
"""Implementation of my climate entity."""
def hvac_action(self) -> HVACAction | None:
"""Return the current running hvac operation if supported."""
return HVACAction.DEFROSTING
More details can be found in the climate entity documentation
Background for the original change is in architecture discussion #1090.