local device = {} device.model = "5144.11" device.vendor = "Iluminize" device.description = "Zigbee 3.0 wall dimmer with switches" device.zigbeeModel = { "ZGRC-KEY-001" } device.exposes = { { type = "numeric", name = "battery", property = "battery", access = 5, unit = "%", min = 0, max = 100, description = "Remaining battery in %", category = "diagnostic", }, { type = "enum", name = "identify", property = "identify", access = 2, description = "Initiate device identification", category = "config", values = { "identify" }, }, { type = "enum", name = "action", property = "action", access = 1, description = "Triggered action (e.g. a button click)", category = "diagnostic", values = { "on", "off", "toggle", "brightness_move_to_level", "brightness_move_up", "brightness_move_down", "brightness_step_up", "brightness_step_down", "brightness_stop", }, }, } device.fromZigbee = { "battery", "on_off" } device.configure = { bind = { "genPowerCfg", "genOnOff" }, reporting = { { cluster = "genPowerCfg", attribute = "batteryPercentageRemaining", min = 3600, max = 65000, change = 0, }, { cluster = "genPowerCfg", attribute = "batteryVoltage", min = 3600, max = 65000, change = 0, }, { cluster = "genOnOff", attribute = "onOff", min = 0, max = 3600, change = 0, }, }, } return device