I’m using a history stat sensor to get the daily runtime of our furnace, fireplace and a baseboard heater. The sensor is running great, but when I add it to a statistics graph card I’m getting unexpected results.
The graph is set to a period of “Day” and Stat type is “Max”, but it looks like its grabbing the max of the previous day if that is larger than current day.
sensor: (originally I had 24h but thought that was causing it to roll over to the next day?
- platform: history_stats
name: GarageBaseboardDailyRuntime
entity_id: sensor.garage_baseboard_action
state: "heating"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0, microsecond=0) }}"
duration:
hours: 23
minutes: 59
seconds: 59
graph card:
chart_type: bar
period: day
days_to_show: 14
type: statistics-graph
entities:
- sensor.garagebaseboarddailyruntime
stat_types:
- max
title: Furnace Run Time