Hi,
I bought a TVOC and CO2 sensor on AliExpress and I tried to configure it with ESPhome, like this.
The problem is: it doesn’t do anything. I’d like to read the TVOC and CO2, and if possible the temperature and humidity. I connected the SDA to D0 and SCL to D1. The VCC to a 3V and the GND to a GND. I also tried not connecting the VCC. Right now I have a AM2302 connected to the same ESP and that is working.
Could someone tell me how to wire up the CCS811 and HDC1080 to get the four readings? And maybe share their configuration. Below is my config:
esphome:
name: slaapkameresp
platform: ESP8266
board: nodemcuv2
wifi:
ssid: ####
password: ####
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Slaapkameresp Fallback Hotspot"
password: ####
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
i2c:
sda: D0
scl: D1
scan: true
sensor:
- platform: dht
pin: D2
temperature:
name: "Slaapkamer temperatuur"
humidity:
name: "Slaapkamer luchtvochtigheid"
update_interval: 60s
model: AM2302
- platform: adc
pin: A0
name: "Slaapkamer lichtniveau"
unit_of_measurement: lx
filters:
- lambda: |-
return (x / 10000.0) * 2000000.0;
- platform: ccs811
eco2:
name: "eCO2 Slaapkamer"
tvoc:
name: "TVOC Slaapkamer"
# address: 0x5A
update_interval: 60s