@baz123 wrote:
I do not understand why the filter sensor is not updated when the source sensor is. I have defined a time_date sensor. I would expect the filter to update every time the source sensor is updated. Is that an incorrect expectation? This is a moving window but I have also tried it with lowpass with same behaviour. The system has been running for a while since last restart and I can see delays of over 30 mins sometimes.
Sensor and filter
- platform: time_date display_options: - 'time' - 'date' - 'date_time' - 'date_time_utc' - 'date_time_iso' - 'time_date' ## Study - platform: mqtt name: "studyroomtemp" state_topic: "emon/sensor/mi_t_4c65a8d8e0d8/state" unit_of_measurement: '°C' device_class: temperature - platform: filter name: studyroomtempfil entity_id: sensor.studyroomtemp filters: - filter: time_simple_moving_average window_size: 00:05 precision: 1
Looking at the states
{{ states('sensor.studyroomtemp' )}} {{ states.sensor.studyroomtemp.last_updated}} {{ states('sensor.studyroomtempfil' )}} {{ states.sensor.studyroomtempfil.last_updated}}
20.21 2020-03-30 09:50:12.171099+00:00 20.5 2020-03-30 09:48:40.278234+00:00
Posts: 10
Participants: 4