local device = {} device.model = "BASICZBR3" device.vendor = "SONOFF" device.description = "Zigbee smart switch" device.zigbeeModel = { "BASICZBR3" } 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.toZigbee = { "on_off" } return device