local device = {} device.model = "QAT42Z3H" device.vendor = "QA" device.description = "3 channel wall switch" device.exposes = { { type = "switch", endpoint = "left", features = { { type = "binary", name = "state", property = "state_left", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of the switch", endpoint = "left", }, }, }, { type = "switch", endpoint = "center", features = { { type = "binary", name = "state", property = "state_center", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of the switch", endpoint = "center", }, }, }, { type = "switch", endpoint = "right", features = { { type = "binary", name = "state", property = "state_right", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of the switch", endpoint = "right", }, }, }, { type = "enum", name = "power_on_behavior", property = "power_on_behavior", access = 7, description = "Controls the behavior when the device is powered on after power loss", category = "config", values = { "off", "previous", "on" }, }, { type = "binary", name = "backlight_mode", property = "backlight_mode", access = 7, value_on = "ON", value_off = "OFF", description = "Mode of the backlight", category = "config", }, } 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 = "TS0003", manufacturer = "_TZ3000_pmsxmttq", }, { model = "TS0003", manufacturer = "_TZ3000_0q5fjqgw", }, } return device