Add Methane Detector (jwbj) device support to Tuya (#58328)

This commit is contained in:
Franck Nijhof 2021-10-24 16:01:03 +02:00 committed by GitHub
parent 539fdaad69
commit a225d28089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 0 deletions

View file

@ -97,6 +97,16 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
),
TAMPER_BINARY_SENSOR,
),
# Methane Detector
# https://developer.tuya.com/en/docs/iot/categoryjwbj?id=Kaiuz40u98lkm
"jwbj": (
TuyaBinarySensorEntityDescription(
key=DPCode.CH4_SENSOR_STATE,
device_class=DEVICE_CLASS_GAS,
on_value="alarm",
),
TAMPER_BINARY_SENSOR,
),
# Door Window Sensor
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48hm02l8m
"mcs": (