local device = {} device.model = "4062172044776_4" device.vendor = "OSRAM" device.description = "Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (with two devices and pushbutton)" device.exposes = { { type = "light", endpoint = "l1", features = { { type = "binary", name = "state", property = "state_l1", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of this light", endpoint = "l1", }, { type = "numeric", name = "brightness", property = "brightness_l1", access = 7, min = 0, max = 254, description = "Brightness of this light", endpoint = "l1", }, }, }, { type = "light", endpoint = "l2", features = { { type = "binary", name = "state", property = "state_l2", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of this light", endpoint = "l2", }, { type = "numeric", name = "brightness", property = "brightness_l2", access = 7, min = 0, max = 254, description = "Brightness of this light", endpoint = "l2", }, }, }, { type = "light", endpoint = "s1", features = { { type = "binary", name = "state", property = "state_s1", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of this light", endpoint = "s1", }, { type = "numeric", name = "brightness", property = "brightness_s1", access = 7, min = 0, max = 254, description = "Brightness of this light", endpoint = "s1", }, }, }, { type = "enum", name = "effect", property = "effect_l1", access = 2, description = "Triggers an effect on the light (e.g. make light blink for a few seconds)", endpoint = "l1", values = { "blink", "breathe", "okay", "channel_change", "finish_effect", "stop_effect" }, }, { type = "enum", name = "effect", property = "effect_l2", access = 2, description = "Triggers an effect on the light (e.g. make light blink for a few seconds)", endpoint = "l2", values = { "blink", "breathe", "okay", "channel_change", "finish_effect", "stop_effect" }, }, { type = "enum", name = "effect", property = "effect_s1", access = 2, description = "Triggers an effect on the light (e.g. make light blink for a few seconds)", endpoint = "s1", values = { "blink", "breathe", "okay", "channel_change", "finish_effect", "stop_effect" }, }, { type = "enum", name = "action", property = "action", access = 1, description = "Triggered action (e.g. a button click)", category = "diagnostic", values = { "toggle_s1", "brightness_move_up_s1", "brightness_move_down_s1", "brightness_stop_s1" }, }, } device.fromZigbee = { "on_off", "brightness" } device.toZigbee = { "on_off", "brightness" } device.configure = { bind = { "genOnOff", "genLevelCtrl" }, reporting = { { cluster = "genOnOff", attribute = "onOff", min = 0, max = 3600, change = 0, }, { cluster = "genLevelCtrl", attribute = "currentLevel", min = 1, max = 3600, change = 1, }, }, } device.meta = { multiEndpoint = true } return device