pdf-icon

Unit CO2/CO2L Home Assistant Integration

Unit CO2/CO2L mainly uses the SCD40/SCD41 CO2 and temperature/humidity sensors.

Note
Because Unit CO2/CO2L is only a standalone sensor platform, you need an additional main controller (Atom series, Stamp series, Stick series, Core/Basic series, etc.) to integrate it with Home Assistant.

Both sensors support ESPHome, making it easy to integrate with Home Assistant.

You can also refer to ESPHome for the latest configuration:

Configure the sensor

Enable the I²C component in the ESPHome configuration:

yaml
1 2 3 4 5
# Example configuration entry for ESP32
i2c:
  sda: GPIOXX
  scl: GPIOXX
  scan: true

The GPIO pins vary depending on the main controller you use. For example, if you use Atom Lite as the main controller:

yaml
1 2 3 4
# I2C Bus on Grove Port (HY2.0-4P)
i2c:
  sda: GPIO26
  scl: GPIO32

Example configuration for Unit CO2/CO2L:

yaml
1 2 3 4 5 6 7 8
sensor:
  - platform: scd4x
    co2:
      name: "CO2"
    temperature:
      name: "Temperature"
    humidity:
      name: "Humidity"

Add the sensor to Home Assistant

After adding it to the Dashboard, you can view the sensor data in Home Assistant.

Video

On This Page