I have created a sensor using a moving average to calculate the average power of the last 10 minutes
sensor:
- platform: filter
name: "filtered power prism"
entity_id: sensor.prism_potenza
filters:
- filter: time_simple_moving_average
window_size: "00:10"
precision: 2
the power sensor sends a message every ~1 s, but when power stops being drawn, it sends the last message with payload β0β, and then it stops sending any message (because the power is still 0)
but the filtered entity gets stuck on the average it has before the power went to 0
where you see a sudden drop of the filtered value, thatβs when I restarted HA