Peaks at summed time statistics

Hello,

I would like to have the runtime of my underfloor heating displayed per day. I have already created a sensor for this, which actually works:

  - platform: template
    sensors:
      heizung_esszimmer_on_off:
        value_template: "{{ state_attr('climate.smart_thermostat_123','hvac_action')}}"
  - platform: history_stats
    name: Heizung Esszimmer Laufzeit
    entity_id: sensor.heizung_esszimmer_on_off
    state: "heating"
    type: time
    start: "{{ now().replace(hour=0, minute=0) }}"
    end: "{{ now() }}"

The time is correctly displayed in a map:

grafik

But when I look at the statistics, I keep seeing peaks there that shouldn’t actually be there, since the time is commuted. This value should not decrease within one day.

grafik

Is the error in my code? Or what could be the reason?

Thanks
Loki

Hello,

no one has an idea?
Glad about every hint.

Thank you very much.