Home Assistant How To - eCO2 and VOC ccs811 sensor |
![]() |
Quality of air is very important, but it's not just air outside that is getting worse, sometimes air indoors can be even more dangerous. Today we will be making DIY eCO2 and VOC sensor and configuring it to work with Home Assistant.
Here are all the links needed for this sensor - ESPHome and also components itself: - ESPHome repository link for hass.io https://github.com/esphome/hassio - Module page on ESPHome https://esphome.io/components/sensor/ccs811.html - ESPHome flasher https://github.com/esphome/esphome-flasher - Link to where I bought the sensor https://www.aliexpress.com/item/32903358923.html - Wemos D1 mini link https://www.aliexpress.com/item/32633763949.html 00:00 Intro 00:24 Thank you to channel members 00:38 About sensor 02:54 Parts needed 04:03 Connecting everything 08:11 ESPHome installation (quick guide) 09:12 Creating basic configuration for Wemos D1 Mini 10:13 Configuring ccs811 sensors 14:42 baseline parameter 17:30 Compiling firmware 18:43 Download ESPHome Flasher 20:42 Verifying all is OK 21:08 Configuring HA integration 22:30 Adding to UI/Lovelace 23:30 Verifying what baseline is 25:33 Creating simple automation 27:39 Wrap-up Here is my code for i2c and ccs811 - you may need to customise it: i2c: scl: D1 sda: D2 scan: True sensor: - platform: ccs811 eco2: name: "CCS811 eCO2 Value" tvoc: name: "CCS811 Total Volatile Organic Compaund" address: 0x5A update_interval: 15s # baseline: 0x0478 Please, give me a thumb up if you liked this video, subscribe if you still haven't and I'll see you next time! Have fun! BeardedTinker P.S. If you would like to support me and this channel, you can now JOIN and become member! https://www.youtube.com/BeardedTinker/join Twitter: @BeardedTinker Discord: https://discord.gg/HkxDRN6 #howto #HomeAssistant #ccs811 #co2 #voc |