History stats sensor stopped

Hi

I am using history stats sensor for my “Vacation mode” where I turn lights on and off like one week ago. But all of a sudden, the history sensors stopped working.

As shown on the picture above, my sensor “Vacation light4” repeats with one week delay the state of another sensor called “Light4 Filtered”.

It worked perfectly until some timepoint where it stopped.
I have this setup 17 times for 17 different lights and the same happend to all.

Any suggestions are welcome.

Below is a snippet of my history sensor:

sensor:
  - platform: history_stats
    name: "Vacation Light4"
    entity_id: sensor.light4_filtered
    state: "on"
    type: count
    start: >
      {{ as_timestamp(now()) - 7*24*3600 }}
    duration: 00:00:10

I am using a standard configuration setup, which should give me a 10 days history:

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config: