Add Luminance Sensor (ldcg) device support to Tuya (#57797)

This commit is contained in:
Franck Nijhof 2021-10-15 23:08:21 +02:00 committed by GitHub
parent 6e5d49144a
commit a7c7e58a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 3 deletions

View file

@ -45,7 +45,16 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
TuyaBinarySensorEntityDescription(
key=DPCode.TEMPER_ALARM,
name="Tamper",
entity_registry_enabled_default=False,
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
),
),
# Luminance Sensor
# https://developer.tuya.com/en/docs/iot/categoryldcg?id=Kaiuz3n7u69l8
"ldcg": (
TuyaBinarySensorEntityDescription(
key=DPCode.TEMPER_ALARM,
name="Tamper",
entity_category=ENTITY_CATEGORY_DIAGNOSTIC,
),
),
# PIR Detector