Add voc and formaldehyde to Tuya CO2 Detector (#130119)
This commit is contained in:
parent
0a4c0fe7cc
commit
48e7fed901
1 changed files with 11 additions and 0 deletions
|
@ -203,6 +203,17 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
||||||
device_class=SensorDeviceClass.CO2,
|
device_class=SensorDeviceClass.CO2,
|
||||||
state_class=SensorStateClass.MEASUREMENT,
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
),
|
),
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.CH2O_VALUE,
|
||||||
|
translation_key="formaldehyde",
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.VOC_VALUE,
|
||||||
|
translation_key="voc",
|
||||||
|
device_class=SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
*BATTERY_SENSORS,
|
*BATTERY_SENSORS,
|
||||||
),
|
),
|
||||||
# Two-way temperature and humidity switch
|
# Two-way temperature and humidity switch
|
||||||
|
|
Loading…
Add table
Reference in a new issue