Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- substitutions:
- device_name: ikea-pm25-sht
- esphome:
- name: ikea-pm25-sht
- friendly_name: ikea-pm25-sht
- esp8266:
- board: d1_mini
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- password: "876543210"
- wifi:
- ssid: !secret my_ap_ssid
- password: !secret my_ap_password
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "ikea-pm25-sht"
- password: "12345678"
- captive_portal:
- web_server:
- i2c:
- sda: D5
- scl: D6
- scan: true
- uart:
- rx_pin: D2
- baud_rate: 9600
- sensor:
- - platform: pm1006
- pm_2_5:
- name: "${device_name} PM2.5 sensor"
- - platform: sht3xd
- address: 0x44
- update_interval: 30s
- temperature:
- name: "${device_name} Temperature"
- # filters:
- # - calibrate_polynomial:
- # degree: 2
- # datapoints:
- # - 0.0 -> 0.0
- # - 31.9 -> 29.2
- # - 31.4 -> 28.3
- humidity:
- name: "${device_name} Humidity"
- # filters:
- # - calibrate_polynomial:
- # degree: 2
- # datapoints:
- # - 0.0 -> 0.0
- # - 60.6 -> 71
- # - 51 -> 62
- # - 49.7 -> 61
- - platform: wifi_signal
- name: "${device_name} WiFi Signal"
- update_interval: 60s
- binary_sensor:
- - platform: status
- name: "${device_name} WiFi Status"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement