local device = {} device.model = "RC 210" device.vendor = "Innr" device.description = "Remote control" device.zigbeeModel = { "RC 210" } device.exposes = { { type = "numeric", name = "battery", property = "battery", access = 5, unit = "%", min = 0, max = 100, description = "Remaining battery in %", category = "diagnostic", }, { type = "enum", name = "action", property = "action", access = 1, description = "Triggered action (e.g. a button click)", category = "diagnostic", values = { "on", "off", "brightness_move_up", "brightness_move_down", "brightness_stop", "brightness_move_to_level", "color_temperature_move", }, }, } device.fromZigbee = { "battery" } device.configure = { bind = { "genPowerCfg" }, reporting = { { cluster = "genPowerCfg", attribute = "batteryPercentageRemaining", min = 3600, max = 65000, change = 0, }, { cluster = "genPowerCfg", attribute = "batteryVoltage", min = 3600, max = 65000, change = 0, }, }, } return device