Skip to content

Instantly share code, notes, and snippets.

@hgross
Created November 30, 2024 13:12
Show Gist options
  • Save hgross/2ecaf0b2ceed538978b1e59e2f05ace3 to your computer and use it in GitHub Desktop.
Save hgross/2ecaf0b2ceed538978b1e59e2f05ace3 to your computer and use it in GitHub Desktop.
An esphome yml file to connect the IKEA Vindriktning air quality sensor to home assistant with a NodeMCU (like this https://www.az-delivery.de/products/esp32-developmentboard).
# 3d-printer closet sensor esphome for nodemcu with pm1006 sensor (IKEA Vindriktning)
# for wiring see this comment: https://github.com/esphome/esphome/pull/2038#issuecomment-885122351
# You can use this file to create a new node in ESPHome dashboard and flash it to a nodemcu.
# Check out this guide for more information: https://esphome.io/guides/getting_started_hassio.html
# Check the documentation for more information: https://esphome.io/components/sensor/pm1006.html
esphome:
name: "ikea-vindriktning-esphome-nodemcu-1"
friendly_name: "IKEA Vindriktning air quality sensor"
esp8266:
board: nodemcuv2
uart:
rx_pin: D2
baud_rate: 9600
sensor:
- platform: pm1006
pm_2_5:
name: "IKEA Vindriktning PM2.5 sensor"
time:
- platform: homeassistant
id: esptime
timezone: Europe/Berlin
# Enable Home Assistant API
api:
encryption:
# change this to a key of your choice
key: "wTQBaovhVqMBWwzwSNPpJiERNwFXsdlvEoZvKlOAHyZj"
ota:
- platform: esphome
# change the password here before flashing
password: "sQgKtSBtBpKRSRzEHzZwIcVspGdEiYyI"
wifi:
ssid: your_wifi_ssid
password: your_wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Vindriktning-1 Fallback Hotspot"
password: "super_secret_password"
# Enable logging
logger:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment