Add tuya access control devices (binary status of lock) (#79793)

This commit is contained in:
osono-design 2022-10-25 10:07:59 +02:00 committed by GitHub
parent e5716efa9c
commit 02b0b19dd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -201,6 +201,15 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
),
TAMPER_BINARY_SENSOR,
),
# Access Control
# https://developer.tuya.com/en/docs/iot/s?id=Kb0o2xhlkxbet
"mk": (
TuyaBinarySensorEntityDescription(
key=DPCode.CLOSED_OPENED_KIT,
device_class=BinarySensorDeviceClass.LOCK,
on_value={"AQAB"},
),
),
# Luminance Sensor
# https://developer.tuya.com/en/docs/iot/categoryldcg?id=Kaiuz3n7u69l8
"ldcg": (

View File

@ -182,6 +182,7 @@ class DPCode(StrEnum):
CLEAN_TIME = "clean_time"
CLICK_SUSTAIN_TIME = "click_sustain_time"
CLOUD_RECIPE_NUMBER = "cloud_recipe_number"
CLOSED_OPENED_KIT = "closed_opened_kit"
CO_STATE = "co_state"
CO_STATUS = "co_status"
CO_VALUE = "co_value"