Need help with wild sensor jumps

I have three history_stats sensors setup in my config file. If i set the duration to “24:00:00” everything works fine and I get consistent data. With it set as it is below I keep getting crazy spikes that are throwing my data way off. What I really don’t understand is that I could swear it was reading correctly when I looked at it this morning and now it’s showing that spike at 4am however I could be mistaken. Do I have something misconfigured?

  • platform: history_stats
    name: “Internet Downtime”
    entity_id: binary_sensor.internet_connection
    state: “off”
    type: time
    duration:
    days: 30
    end: “{{now()}}”

image

Suggest to edit the posted code, it is unformatted and cannot be properly analyzed.

Can’t seem to get it formatted properly here

sensor:
  - platform: history_stats
    name: "Internet Downtime"
    entity_id: binary_sensor.internet_connection
    state: "off"
    type: time
    duration:
      days: 30
    end: "{{now()}}"

There we go