History Stats, Stat Graph - What am I doing wrong?

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) }}"
    hours: 23
    minutes: 59
    seconds: 59

graph card:

chart_type: bar
period: day
days_to_show: 14
type: statistics-graph
  - sensor.garagebaseboarddailyruntime
  - max
title: Furnace Run Time

I am having precisely the same issue with the same use case. Did you ever find a solution?

There is know bug for this issue - see it and my workaround on history_stats sensor does not reset until slightly after midnight for the next day · Issue #75903 · home-assistant/core · GitHub

I don’t have this issue, but I use the following for setting the window, it may be worth trying.

    start: "{{ today_at('00:00') }}"
      hours: 24