Add Formaldehyde Detector (jqbj) device support to Tuya (#58118)

This commit is contained in:
Franck Nijhof 2021-10-20 20:49:10 +02:00 committed by GitHub
parent 487fa0a905
commit c204196a7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 2 deletions

View file

@ -70,6 +70,16 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
on_value="presence",
),
),
# Formaldehyde Detector
# Note: Not documented
"jqbj": (
TuyaBinarySensorEntityDescription(
key=DPCode.CH2O_STATE,
device_class=DEVICE_CLASS_SAFETY,
on_value="alarm",
),
TAMPER_BINARY_SENSOR,
),
# Door Window Sensor
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48hm02l8m
"mcs": (