Hi everyone. I’m trying to create a sensor that counts how many the Ecobee is in heating
mode. Here’s the Ecobee climate entity:
When in heating mode, the havc_action
changes to heating
from idle
. My current thought is to create a binary template sensor that turns true
with state_attr('climate.lvrm_ecobee', 'hvac_action') == 'heating'
, and create a statistic
integration to count how many hours the binary sensor is true
each day.
Just wonder if anyone has a better way of doing that. It would be nice if statistic
can be used on attributes, yet I haven’t found a way for that.
Thanks!