So I read this in the change logs:
Breaking Changes
Previously, esphomelib would by default only publish every 15th sensor value in order to provide averaged values. However, that often confused users and I now decided to remove it and set the default update interval of all components to 60s instead of the previous 15s. You can get back the old behavior by setting
sensor:
- platform: ... # enter platform here
# other settings
update_interval: 15s
filters:
- sliding_window_moving_average:
So I updated my config accordingly:
sensor:
- platform: wifi_signal
name: "Master Bed Sensor WiFi Signal"
update_interval: 15s
filters:
- sliding_window_moving_average:
- platform: adc
pin: A0
name: "Master Bed Sensor"
update_interval: 15s
filters:
- multiply: 3.25
- sliding_window_moving_average:
Only now the configuration is invalid:
INFO Reading configuration...
Failed config
sensor.wifi_signal: [source /config/esphomeyaml/master_bed.yaml:31]
platform: wifi_signal
name: Master Bed Sensor WiFi Signal
update_interval: 15s
filters: [source /config/esphomeyaml/master_bed.yaml:35]
- [source /config/esphomeyaml/master_bed.yaml:35]
expected a dictionary.
sliding_window_moving_average:
sensor.adc: [source /config/esphomeyaml/master_bed.yaml:37]
platform: adc
pin: A0
name: Master Bed Sensor
update_interval: 15s
filters: [source /config/esphomeyaml/master_bed.yaml:42]
- multiply: 3.25
- [source /config/esphomeyaml/master_bed.yaml:43]
expected a dictionary.
sliding_window_moving_average:
It seems what is actually required to get the original behaviour is this:
sensor:
- platform: wifi_signal
name: "Master Bed Sensor WiFi Signal"
update_interval: 15s
filters:
- sliding_window_moving_average:
window_size: 15
send_every: 15
- platform: adc
pin: A0
name: "Master Bed Sensor"
update_interval: 15s
filters:
- multiply: 3.25
- sliding_window_moving_average:
window_size: 15
send_every: 15
Not only that but the invalid configuration actually uploaded and made the ESP unresponsive to OTA updates. It was only when I tried a "clean build’ that the error became apparent.
The sensor is connected to a strain gauge glued under one of my bed slats so this is going to be a F%&*ing PITA to get out to connect via USB.