radical-squared / aquatemp

Home Assistant AquaTemp Heat Pump Climate Entity
33 stars 9 forks source link

Please add "hvac_action" to climate card #95

Open DanielNagy opened 1 day ago

DanielNagy commented 1 day ago

Describe the solution you'd like If you are able to get current status of the unit, as "heating/cooling/idle" etc, you should be able to map it to the climate entity "hvac_action" - https://developers.home-assistant.io/docs/core/entity/climate/

Benefits include:

The heating history graph will also only shade RED when it is Heating(or Blue when Cooling), rather than all the time when in mode heat. ie: Current Aquatemp. It shows red the whole time, even with the unit in a idle state (where the temp is dropping) image Another climate entity integration as an example with hvac_action mapped, only shading Red when the unit is actively heating upto the set point. image

Additional context Add any other context or screenshots about the feature request here.

DanielNagy commented 1 day ago

I've had a look at all param's that are captured by the aquatemp integration, and nothing stands out to me showing the status from the cloud. In saying that, There could be unmapped stuff i don't understand.

If this is indeed the case, you could assume an hvac_action based on the unit is activity if the compressor is > 0 hz and the selected HVAC Mode

if "Comp. Output frequency [O07] > 0" and "HVACMode = heat" then set HVACAction.HEATING
if "Comp. Output frequency [O07] > 0" and "HVACMode = cool" then set HVACAction.COOLING
if "Comp. Output frequency [O07] = 0" and "HVACMode != off" then set HVACAction.IDLE
if "HVACMode is off" then set HVACAction.OFF