History Stats for some devices shows big value after restart

After a HA reset I’ve got some big values for my history stats

image

    - platform: history_stats
    name: Time active heating living
    entity_id: sensor.living_th_status
    state: "heating"
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
  - platform: history_stats
    name: Time active heating kitchen
    entity_id: sensor.bucatarie_th_status
    state: "heating"
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
  - platform: history_stats
    name: Time active heating bathroom
    entity_id: sensor.baie_th_status
    state: "heating"
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
  - platform: history_stats
    name: Time active heating bedroom
    entity_id: sensor.dorm_th_status
    state: "heating"
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}"
  - platform: history_stats
    name: Time active heating portprosop
    entity_id: switch.portprosop_switch
    state: "on"
    type: time
    start: "{{ 0 }}"
    end: "{{ now() }}" 

All configured the same, but 2 of them show that value. Before restart it worked.
Any ideeas?
Thanks!

Does your recorder database history go back to Thursday, 1 January 1970 12:00:00 AM?
That’s what you are asking it to do.

Related issue:

A PR has been drafted to address this issue. It may make it into a future release but until then you should adjust your start time to only extend back as far as your recorder purge keep days (10 days by default).

Also just FYI if you are expecting this to record stats for all time this will not work. It can only use what is in your recorder database (10 days).