47 lines
798 B
YAML
47 lines
798 B
YAML
esphome:
|
|
name: aqi-sensor
|
|
friendly_name: AQI-Sensor
|
|
|
|
esp8266:
|
|
board: esp01_1m
|
|
|
|
# Enable logging
|
|
logger:
|
|
#level: VERY_VERBOSE
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
encryption:
|
|
key: "3CIARK+MjVSvSJ1VP/GjplrkvFb+TlVPH0CTsHciKdw="
|
|
|
|
ota:
|
|
- platform: esphome
|
|
password: "cbc40991e6bdea7d9ce6c63085403419"
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Aqi-Sensor Fallback Hotspot"
|
|
password: "ddjn1Ua2MWWf"
|
|
|
|
captive_portal:
|
|
|
|
|
|
# Configuration
|
|
i2c:
|
|
scan: true
|
|
|
|
sensor:
|
|
- platform: ccs811
|
|
eco2:
|
|
name: "AQI eCO2 Value"
|
|
tvoc:
|
|
name: "AQI TVOC"
|
|
update_interval: 10s
|
|
#baseline: 0x19BC
|
|
switch:
|
|
- platform: restart
|
|
name: "AQI Sensor Restart" |