mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Add tuya access control devices (binary status of lock) (#79793)
This commit is contained in:
parent
e5716efa9c
commit
02b0b19dd4
@ -201,6 +201,15 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
|
|||||||
),
|
),
|
||||||
TAMPER_BINARY_SENSOR,
|
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
|
# Luminance Sensor
|
||||||
# https://developer.tuya.com/en/docs/iot/categoryldcg?id=Kaiuz3n7u69l8
|
# https://developer.tuya.com/en/docs/iot/categoryldcg?id=Kaiuz3n7u69l8
|
||||||
"ldcg": (
|
"ldcg": (
|
||||||
|
@ -182,6 +182,7 @@ class DPCode(StrEnum):
|
|||||||
CLEAN_TIME = "clean_time"
|
CLEAN_TIME = "clean_time"
|
||||||
CLICK_SUSTAIN_TIME = "click_sustain_time"
|
CLICK_SUSTAIN_TIME = "click_sustain_time"
|
||||||
CLOUD_RECIPE_NUMBER = "cloud_recipe_number"
|
CLOUD_RECIPE_NUMBER = "cloud_recipe_number"
|
||||||
|
CLOSED_OPENED_KIT = "closed_opened_kit"
|
||||||
CO_STATE = "co_state"
|
CO_STATE = "co_state"
|
||||||
CO_STATUS = "co_status"
|
CO_STATUS = "co_status"
|
||||||
CO_VALUE = "co_value"
|
CO_VALUE = "co_value"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user