mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Add support for mc devices to Tuya (#66044)
This commit is contained in:
parent
f9c81dd00b
commit
22e379cd54
@ -110,6 +110,14 @@ BINARY_SENSORS: dict[str, tuple[TuyaBinarySensorEntityDescription, ...]] = {
|
|||||||
),
|
),
|
||||||
TAMPER_BINARY_SENSOR,
|
TAMPER_BINARY_SENSOR,
|
||||||
),
|
),
|
||||||
|
# Door and Window Controller
|
||||||
|
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48r5zjsy9
|
||||||
|
"mc": (
|
||||||
|
TuyaBinarySensorEntityDescription(
|
||||||
|
key=DPCode.DOORCONTACT_STATE,
|
||||||
|
device_class=BinarySensorDeviceClass.DOOR,
|
||||||
|
),
|
||||||
|
),
|
||||||
# Door Window Sensor
|
# Door Window Sensor
|
||||||
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48hm02l8m
|
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48hm02l8m
|
||||||
"mcs": (
|
"mcs": (
|
||||||
|
@ -295,6 +295,9 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
),
|
),
|
||||||
*BATTERY_SENSORS,
|
*BATTERY_SENSORS,
|
||||||
),
|
),
|
||||||
|
# Door and Window Controller
|
||||||
|
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48r5zjsy9
|
||||||
|
"mc": BATTERY_SENSORS,
|
||||||
# Door Window Sensor
|
# Door Window Sensor
|
||||||
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48hm02l8m
|
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48hm02l8m
|
||||||
"mcs": BATTERY_SENSORS,
|
"mcs": BATTERY_SENSORS,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user