local device = {} device.model = "GDC311ZBQ1" device.vendor = "Tuya" device.description = "LoraTap garage door opener with wireless sensor" device.fingerprint = { { model = "TS0601", manufacturer = "_TZE200_wfxuhoea", }, { model = "TS0601", manufacturer = "_TZE204_wfxuhoea", }, } device.exposes = { { type = "binary", name = "trigger", property = "trigger", access = 3, value_on = true, value_off = false, description = "Trigger the door movement", }, { type = "binary", name = "garage_door_contact", property = "garage_door_contact", access = 1, value_on = false, value_off = true, description = "Indicates if the garage door contact is closed (= true) or open (= false)", }, } device.tuya = { magicPacket = true, } device.tuyaDatapoints = { { dp = 3, name = "garage_door_contact", converter = "trueFalse0" }, } return device