Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103337

Filter time_simple_moving_average stopped working correctly recently

$
0
0

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 ##

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>