History_stats added extra time to "xxxxx on today" sensors

I’m new to HA & am just figuring out how things work. I’m running HAOS as a VM with Unraid. For some reason today, both the sensors I’ve set up as tests for history_stats have added what seems to be a random amount of time to their output.

###### History Stat Sensors ######
- platform: history_stats
  type: time
  name: Office Occupied Today
  entity_id: binary_sensor.presence_sensor_fp2_fda2_presence_sensor_1
  state: "on"
  start: "{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}"
  end: "{{ now() }}"

- platform: history_stats
  type: time
  name: Office Lights On Today
  entity_id: light.office
  state: "on"
  start: "{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}"
  end: "{{ now() }}"

The lights sensor added an extra 14½ hours to the total from one update tick to the next between 15:50 & 15:55:

image

The light.office entity shows only around 35 minutes of “on” time from midnight to the 15:55 time.

The presence sensor similarly added 12.4 hours on the same update tick, which is not the same amount of time as the light. This seems even more odd.

I’ve had these running for just over a week & this is the first data anomaly I can see in the history.

I guess there are a couple of questions on this; Is there any way to find out why this might have happened? Is there any way to recalculate the history_stats for those sensors to update it to the correct amount of time?