mirror of
https://github.com/esphome/esphome.git
synced 2026-10-08 20:06:03 +00:00
Co-authored-by: will <will-tm@users.noreply.github.com> Co-authored-by: J. Nick Koston <nick@home-assistant.io>
37 lines
1004 B
YAML
37 lines
1004 B
YAML
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
|