local device = {} device.model = "TS011F_quad_power1" device.vendor = "Tuya" device.description = "Switch with 4 gangs" device.exposes = { { type = "switch", endpoint = "1", features = { { type = "binary", name = "state", property = "state_1", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of the switch", endpoint = "1", }, }, }, { type = "switch", endpoint = "2", features = { { type = "binary", name = "state", property = "state_2", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of the switch", endpoint = "2", }, }, }, { type = "switch", endpoint = "3", features = { { type = "binary", name = "state", property = "state_3", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of the switch", endpoint = "3", }, }, }, { type = "switch", endpoint = "4", features = { { type = "binary", name = "state", property = "state_4", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of the switch", endpoint = "4", }, }, }, } device.fromZigbee = { "on_off" } device.toZigbee = { "on_off" } device.configure = { bind = { "genOnOff" }, reporting = { { cluster = "genOnOff", attribute = "onOff", min = 0, max = 3600, change = 0, }, }, } device.meta = { multiEndpoint = true } device.fingerprint = { { model = "TS011F", manufacturer = "_TZ3000_qiutut5y", }, } return device