I have created a way to track how long my HVAC humidifier has been running via ecobee, I do this by creating 2 sensors. One for the day and the other for the heating season.
Sometimes, the Heating Season (running total) will jump several hundred hours. Maybe this is due to recorder purging?
I was thinking of creating an automation for just shy of midnight, and taking the daily runtime and adding it to the running total.
Heating Season = Heating Season + Run Time Today
Is this the best option I have? Or do you have some other thoughts?
# Binary Sensor
- platform: template
sensors:
hvac_humidifier:
friendly_name: 'HVAC Humidifier'
value_template: "{{ 'humidifier' in state_attr('climate.thermostat', 'equipment_running') }}"
# Sensor
- platform: history_stats
name: HVAC Humidifier Run Time Today
entity_id: binary_sensor.hvac_humidifier
state: 'on'
type: time
start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: HVAC Humidifier Run Time (Heating Season)
entity_id: binary_sensor.hvac_humidifier
state: 'on'
type: time
start: >
{{ states('input_button.reset_humidifier_stats') | as_datetime() }}
end: >
{{ now() }}