local device = {} device.model = "R3 Smart Switch" device.vendor = "Tuya" device.description = "Circuit Breaker/Switch" device.exposes = { { type = "switch", features = { { type = "binary", name = "state", property = "state", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of the switch", }, }, }, } device.tuyaDatapoints = { { dp = 16, name = "state", converter = "onOff" }, } device.fingerprint = { { model = "TS0601", manufacturer = "_TZE204_hiith90n", }, } return device