From 1d82e6f432fc60f8fe0b562bf1f4f2e94ca276e1 Mon Sep 17 00:00:00 2001 From: Rafal Metkowski Date: Thu, 12 Dec 2024 20:53:30 +0100 Subject: [PATCH] quirk for ts0603 garage door module --- zhaquirks/tuya/ts0603_garage.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 zhaquirks/tuya/ts0603_garage.py diff --git a/zhaquirks/tuya/ts0603_garage.py b/zhaquirks/tuya/ts0603_garage.py new file mode 100644 index 0000000000..938f1de178 --- /dev/null +++ b/zhaquirks/tuya/ts0603_garage.py @@ -0,0 +1,16 @@ +from zhaquirks.tuya.builder import TuyaQuirkBuilder +from zigpy.quirks.v2.homeassistant.binary_sensor import BinarySensorDeviceClass + +( + TuyaQuirkBuilder("_TZE608_fmemczv1", "TS0603") + .tuya_onoff(dp_id=1) + .tuya_binary_sensor( + dp_id=3, + device_class=BinarySensorDeviceClass.GARAGE_DOOR, + attribute_name="garage_door", + translation_key="garage_door", + fallback_name="Garage door", + ) + .skip_configuration() + .add_to_registry() +)