Skip to content

Instantly share code, notes, and snippets.

@larsenglund
Created September 28, 2019 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsenglund/92495148423054851e956200c84001a4 to your computer and use it in GitHub Desktop.
Save larsenglund/92495148423054851e956200c84001a4 to your computer and use it in GitHub Desktop.
esphome:
name: co2
platform: ESP8266
board: d1_mini
wifi:
ssid: "Totoro"
password: "u11egu11e"
# Enable logging
logger:
#level: VERY_VERBOSE
mqtt:
broker: 192.168.1.151
username: co2
password: mymqttpassword
# Enable Home Assistant API
#api:
ota:
i2c:
sda: 4 #D2
scl: 5 #D1
scan: true
#frequency: 100kHz
uart:
rx_pin: D7
tx_pin: D8
baud_rate: 9600
sensor:
- platform: wifi_signal
name: "CO2 WiFi Signal"
update_interval: 60s
- platform: mhz19
co2:
expire_after: 180s
name: "MH-Z19 CO2"
temperature:
name: "MH-Z19 Temperature"
update_interval: 40s
- platform: hdc1080
temperature:
expire_after: 180s
name: "HDC Temperature"
humidity:
expire_after: 180s
name: "HDC Humidity"
update_interval: 20s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment