Skip to content

Instantly share code, notes, and snippets.

@GuySie
Last active November 28, 2023 15:21
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GuySie/04dae9f458330b62b941be7462458bd2 to your computer and use it in GitHub Desktop.
Save GuySie/04dae9f458330b62b941be7462458bd2 to your computer and use it in GitHub Desktop.
IKEA vindriktning ESPhome Home Assistant
esphome:
name: vindriktning
platform: ESP8266
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "OTAPASSWORD"
wifi:
ssid: "SSID"
password: "SSIDPASSWORD"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Vindriktning Fallback Hotspot"
password: "APPASSWORD"
captive_portal:
# Ikea Vindriktning PM2.5 sensor
uart:
rx_pin: D2
baud_rate: 9600
sensor:
- platform: pm1006
pm_2_5:
name: "Ikea Vindriktning PM25"
filters:
- sliding_window_moving_average:
window_size: 10
send_every: 10
@hagagit
Copy link

hagagit commented Mar 10, 2022

I think a median or quantile filter is better suited for this type of sensors. They get rid of the outliers. See the core sensor description on the ESPhome documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment