I’m using a sensor with a filter:time_simple_moving_average to tell whether my power-saving washing machine is finally done with its cycle. It had worked perfectly for several months, but a few weeks ago it’s started thinking the thing is always on. I haven’t changed the code, and from what the graph looks like, it should be turning off. Did something in the code change recently with an update that would have affected this? Have I been doing it wrong all along? Is there a better way to do this? Here are screenshots of the graphs of what it’s filtering, what it’s reporting, and then the code of the filter itself. I’m baffled.
## WASHING MACHINE ##
## Makes the washing machine on/off sensor work with the power saving thing ##
- platform: filter
name: "filtered washer power 2"
entity_id: sensor.sonoff_10012f02d4_current
filters:
- filter: time_simple_moving_average
window_size: 0:05
## END WASHING MACHINE ##