Help with platform filter and HA history

Hello! i’m trying to set up a filter for an entity 220V AC (shelly 1pm).

However, in HA history, even after several hours of switching off the load, (load = 0W) i find only the last recorded value (e.g. 1500 W) and not 0 as it should be … this is my code:

  - platform: filter
    name: "filtered_air_conditioned_load_watt"
    entity_id: sensor.air_conditioner
    filters:
      - filter: outlier
        window_size: 4
        radius: 4.0
      - filter: lowpass
        time_constant: 10
        precision: 2
      - filter: time_simple_moving_average
        window_size: 00:05
        precision: 2

If i switch off this filter, the HA history works ok.

Someone could point me to the right direction??
Thanks a lot.