local device = {} device.model = "71150" device.vendor = "OSRAM" device.description = "Lightify under cabinet tunable white" device.zigbeeModel = { "LIGHTIFY Under Cabinet TW" } device.exposes = { { type = "light", features = { { type = "binary", name = "state", property = "state", access = 7, value_on = "ON", value_off = "OFF", description = "On/off state of this light", }, { type = "numeric", name = "brightness", property = "brightness", access = 7, min = 0, max = 254, description = "Brightness of this light", }, { type = "numeric", name = "color_temp", property = "color_temp", access = 7, unit = "mired", min = 153, max = 370, description = "Color temperature of this light", }, }, }, { type = "enum", name = "effect", property = "effect", access = 2, description = "Triggers an effect on the light (e.g. make light blink for a few seconds)", values = { "blink", "breathe", "okay", "channel_change", "finish_effect", "stop_effect" }, }, } device.fromZigbee = { "on_off", "brightness", "color_temp", "color_hs", "color_xy" } device.configure = { bind = { "genOnOff", "genLevelCtrl", "lightingColorCtrl" }, reporting = { { cluster = "genOnOff", attribute = "onOff", min = 0, max = 3600, change = 0, }, { cluster = "genLevelCtrl", attribute = "currentLevel", min = 1, max = 3600, change = 1, }, { cluster = "lightingColorCtrl", attribute = "colorTemperatureMireds", min = 1, max = 3600, change = 1, }, }, } return device