local device = {} device.model = "TS0603" device.vendor = "Tuya" device.description = "Garage door opener" device.exposes = { { type = "binary", name = "state", property = "state", 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 = true, value_off = false, description = "Indicates if the garage door contact is closed (= true) or open (= false)", }, } device.tuyaDatapoints = { { dp = 1, name = "state", converter = "raw" }, { dp = 3, name = "garage_door_contact", converter = "trueFalseInvert" }, } device.fingerprint = { { model = "TS0603", manufacturer = "_TZE608_c75zqghm", }, { model = "TS0603", manufacturer = "_TZE608_fmemczv1", }, { model = "TS0603", manufacturer = "_TZE608_xkr8gep3", }, { model = "TS0603", manufacturer = "_TZE608_lapuuoke", }, } return device