mirror of
https://github.com/esphome/esphome.git
synced 2026-10-05 10:31:29 +00:00
[stcc4] Add component for the Sensirion STCC4 CO2 sensor (#19434)
Co-authored-by: will <will-tm@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
co-authored by
will
J. Nick Koston
parent
2d37c6f58b
commit
4075c15bea
@@ -0,0 +1,36 @@
|
||||
sensor:
|
||||
# SHT4x for external RHT compensation (boards without onboard SHT4x)
|
||||
- platform: sht4x
|
||||
i2c_id: i2c_bus
|
||||
temperature:
|
||||
name: SHT4x Temperature
|
||||
id: sht4x_temperature
|
||||
humidity:
|
||||
name: SHT4x Humidity
|
||||
id: sht4x_humidity
|
||||
- platform: template
|
||||
id: ambient_pressure
|
||||
unit_of_measurement: "hPa"
|
||||
lambda: 'return 1013;'
|
||||
|
||||
# STCC4 CO2 sensor with onboard temperature/humidity and external compensation
|
||||
- platform: stcc4
|
||||
i2c_id: i2c_bus
|
||||
id: stcc4_sensor_single_shot
|
||||
co2:
|
||||
name: STCC4 CO2
|
||||
temperature:
|
||||
name: STCC4 Temperature
|
||||
humidity:
|
||||
name: STCC4 Humidity
|
||||
temperature_source: sht4x_temperature
|
||||
humidity_source: sht4x_humidity
|
||||
measurement_mode: single_shot
|
||||
ambient_pressure_compensation: 1013 mbar
|
||||
update_interval: 60s
|
||||
- platform: stcc4
|
||||
i2c_id: i2c_bus
|
||||
address: 0x65
|
||||
id: stcc4_sensor_continuous
|
||||
measurement_mode: continuous
|
||||
ambient_pressure_compensation_source: ambient_pressure
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
@@ -0,0 +1,4 @@
|
||||
packages:
|
||||
i2c: !include ../../test_build_components/common/i2c/rp2040-ard.yaml
|
||||
|
||||
<<: !include common.yaml
|
||||
Reference in New Issue
Block a user