#Climate entity: how to extract state?

1 messages · Page 1 of 1 (latest)

candid herald
#

Using the Gecko custom integration to tie in my hot tub to HA, I am calculating energy usage for some entities based on state (1st screenshot). I can't figure out what's the best approach to getting the state of it for consumption in PowerCalc, I have just listed the States power based on text that I saw in the climate entity's history, but it does not register any usage. Any tips?

knotty mortar
#

Climate entities store heating/cooling under an attribute hvac_action - you'd have to use the power template for that. Something like

{{6000 if is_state_attr('climate.entity_id', 'hvac_action', 'heating') else 0 }}

candid herald