pdf-icon

Uint CO2/CO2L Home Assistant 集成

Uint CO2/CO2L 主要是用了 SCD40/SCD41 二氧化碳,温湿度传感器

注意
因为 Unit CO2/CO2L 只是单独的传感器平台,需要额外的主控设备(如 Atom 系列、Stamp 系列, Stick 系列,Core/Basic 系列等)才能集成至 Home Assistant

这两个传感器均支持 ESPHome,可以比较方便的集成至 Home Assistant

同时,您可以参考 ESPHome 以查看最新的配置

配置传感器

需要在 ESPHome 配置中启用I²C组件:

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

这里的 GPIO 引脚会因为使用的主控设备不一而不同。比如使用 Atom Lite 作为主控:

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

Unit CO2/CO2L 配置的范例

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

将传感器添加至 Home Assistant

当添加至 Dashboard 之后,您可以在 Home Assistant 中查看传感器数据

On This Page