Add tuya access control devices (binary status of lock) (#79793)
This commit is contained in:
@@ -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": (
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user