Milight Binding Switch White light

Hello,

i use the milight Binding 2.2 with milight ibox 2 and the RGBWW Controller that connected to 10m led RGBW stripe, i search a solution that i can switch directly white light via openhab, some Rules to change the Color Working only when the switch off to on.

The Cahnnel “White Mode” at the Paper UI is Greyed Out.

Someone any Ideas, Thanks!

Items
Switch kitchen_backlight “Kitchenbacklight” (kitchen, kitchen_lights) { channel=“milight:rgbwwLed:ba079ec8:1:ledbrightness” }
Dimmer kitchen_backlight_dimmer “Kitchenbacklight” (kitchen, kitchen_lights) { channel=“milight:rgbwwLed:ba079ec8:1:ledbrightness” }
Switch kitchen_backlight_white “Kitchenbacklight White” (kitchen, kitchen_lights) { channel=“milight:rgbwwLed:ba079ec8:1:ledwhitemode” }
Number kitchen_backlight_scene “Kictchenbacklight Scenes” (kitchen, kitchen_lights)
Color kitchen_backlight_color “Kitchenbacklight” (kitchen, kitchen_lights) { channel=“milight:rgbwwLed:ba079ec8:1:ledcolor” }

Rules
rule “Light Scenes”
when
Item kitchen_backlight_scene received command
then
if (receivedCommand==0) {
sendCommand(kitchen_backlight_color, new HSBType(new DecimalType(0),new PercentType(0),new PercentType(100)))
}
if (receivedCommand==1) {
sendCommand(kitchen_backlight_color, new HSBType(new DecimalType(0),new PercentType(100),new PercentType(100)))
}
if (receivedCommand==2) {
sendCommand(kitchen_backlight_color, new HSBType(new DecimalType(60),new PercentType(100),new PercentType(100)))
}
if (receivedCommand==3) {
sendCommand(kitchen_backlight_color, new HSBType(new DecimalType(120),new PercentType(100),new PercentType(100)))
}
if (receivedCommand==4) {
sendCommand(kitchen_backlight_color, new HSBType(new DecimalType(120),new PercentType(100),new PercentType(50)))
}
if (receivedCommand==5) {
sendCommand(kitchen_backlight_color, new HSBType(new DecimalType(180),new PercentType(100),new PercentType(100)))
}
if (receivedCommand==6) {
sendCommand(kitchen_backlight_color, new HSBType(new DecimalType(240),new PercentType(100),new PercentType(100)))
}
if (receivedCommand==7) {
sendCommand(kitchen_backlight_color, new HSBType(new DecimalType(300),new PercentType(100),new PercentType(100)))
}
end

// turn On @ motion
//rule “Kitchen Backlight ON when Sunset ON”
// when
// Item kitchen_motion_sensor_presence changed to ON
// then
// if
// (SunsetStart_Event.state == ON)
// {
// sendCommand(kitchen_backlight_color, new HSBType(new DecimalType(0),new PercentType(0),new PercentType(100)))
// }
// end

System
openHAB 2.2 latest Docker Container on Raspberry Pi 3

Please use the code fences:

Thanks

See this thread as a number of users are happy using the LED strips and globes with the open source hub.

There are a number of new ways to switch to white light in the new binding.