Skip to content

Commit

Permalink
quirk for ts0603 garage door module
Browse files Browse the repository at this point in the history
  • Loading branch information
rafmetais committed Dec 12, 2024
1 parent 5f1a7f2 commit 1d82e6f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions zhaquirks/tuya/ts0603_garage.py
Original file line number Diff line number Diff line change
@@ -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()
)

0 comments on commit 1d82e6f

Please sign in to comment.