Problem
CCS811 sensor is not returning values to Home Assistant. In the log it reports an internal error. Although the sensor does work when running the test sketch in Arduino. Is there any configuration required for this sensor? I believe that there are different versions.
Background
- Modified Ikea Vindriktning with Wemos D1 Mini, BME280 and CCS811
- Both sensors powered by 3V pin on Wemos
- Home Assistant OS running on Raspberry Pi 4
- Home Assistant updated to 2022.5.3
- ESPHome 2022.4.0
Sensor Log
[14:19:35][I][i2c.arduino:054]: Results from i2c bus scan:
[14:19:35][I][i2c.arduino:060]: Found i2c device at address 0x5A
[14:19:35][I][i2c.arduino:060]: Found i2c device at address 0x76
...
[14:19:35][C][ccs811:152]: CCS811
[14:19:35][C][ccs811:153]: Address: 0x5A
[14:19:35][C][ccs811:154]: Update Interval: 60.0s
[14:19:35][C][ccs811:155]: CO2 Sensor 'CCS811 eCO2 Value'
[14:19:35][C][ccs811:155]: Device Class: 'carbon_dioxide'
[14:19:35][C][ccs811:155]: State Class: 'measurement'
[14:19:35][C][ccs811:155]: Unit of Measurement: 'ppm'
[14:19:35][C][ccs811:155]: Accuracy Decimals: 0
[14:19:35][C][ccs811:155]: Icon: 'mdi:molecule-co2'
[14:19:35][C][ccs811:156]: TVOC Sensor 'CCS811 Total Volatile Organic Compound'
[14:19:35][C][ccs811:156]: Device Class: 'volatile_organic_compounds'
[14:19:35][C][ccs811:156]: State Class: 'measurement'
[14:19:35][C][ccs811:156]: Unit of Measurement: 'ppb'
[14:19:35][C][ccs811:156]: Accuracy Decimals: 0
[14:19:35][C][ccs811:156]: Icon: 'mdi:radiator'
[14:19:35][C][ccs811:161]: Baseline: NOT SET
[14:19:35][W][ccs811:172]: Sensor reported internal error
Sensor Yaml
i2c:
sda: 4
#D2
scl: 5
#D1
- platform: ccs811
eco2:
name: "CCS811 eCO2 Value"
tvoc:
name: "CCS811 Total Volatile Organic Compound"
Arduino CCS11 Test Sketch
Running the test sketch on Arduino IDE, the sensor returns values through serial. This makes me believe it is a software issue with the CS811 ESPHome component.