esphome:
name: d1-mini-co2-sensor
platform: ESP8266
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "cfceec238f8f7365a04608410577f19f"
wifi:
ssid: "wifi"
password: "whatsthepassword"
# Optional manual IP
manual_ip:
static_ip: 192.168.178.132
gateway: 192.168.178.243
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "D1-Mini Fallback Hotspot CO2"
password: "whatsthepassword"
captive_portal:
# Enable Web server.
web_server:
port: 80
# Sync time with Home Assistant.
time:
- platform: homeassistant
id: homeassistant_time
# Text sensors with general information.
text_sensor:
# Expose ESPHome version as sensor.
- platform: version
name: alex CO2 board Version
# Expose WiFi information as sensors.
- platform: wifi_info
ip_address:
name: Alex CO2 board IP
ssid:
name: Alex CO2 board SSID
bssid:
name: Alex CO2 Board BSSID
i2c:
scl: D1
sda: D2
scan: True
sensor:
- platform: ccs811
eco2:
name: "CCS811 eCO2 Value"
tvoc:
name: "CCS811 Total Volatile Organic Compound"
address: 0x5A
update_interval: 120s
# baseline na een dag buiten 0x29BC 22 nov 2021
baseline: 0x29BC
https://esphome.io/components/sensor/ccs811.html