Setting RGB+White value in automation and scenes

When I use the colorpicker and choose a color from the upper half of the colortable I am able to get my RGBW-controller to use the rgb and white leds at the same time; which can output some nice pastel colors that I can’t get using only rgb.

My question is: How do I get the same colors that I get from clicking on the color-selector in the UI?

So far I have tried out rgb_color+brightness and xy_color+brightness (which I found in the docs over at https://home-assistant.io/components/light/), but this way I have only been able to get either the rgb leds or the white leds to turn on at a time. Here is one of the scenes:

scene:
  - name: bedroom_darkred
    entities:
      light.sov_rgb_level_7_0_2:
        state: on
        rgb_color: [255,0,0]
        brightness: 12

I am using a fibaro rgbw controller

Have you tried “white_value: 20”?

My bulbs that support temperature are set up like this, I think your missing color_temp in your YAML.

# Hall Light White #
  - name: hall_ww
    entities:
        light.hall:
            state: on
#            transition: 0
            brightness: 10
            rgb_color: 255,255,255
# Colour Temp (154-600)
            color_temp: 154

Hope this helps…

Thank you both, I will give it a go in the morning and report back. One of the kids is asleep in that room atm.

I got it to work! Turns out rgb_color + brightness could indeed produce the effect that I was after, I had only been using the wrong values on rgb assuming they would work like in domoticz.

What I learned in the process: light profiles, color_temp or xy_color doesn’t seem to work well with my led controller. color_name works though since it’s translated directly to an rgb-value.

To get white mixed in with RGB:

What decides if the white led is used seems to be wether or not all three values of rgb are above 0. If at least one RGB-value is 0, the white led will not be in use at all, no matter the value of brightness.

If all rgb values are above 0 and the brightness is high enough, then the white led will be used.

Here is a table of the values I have tested while trying to figure out the limit where white gets into play:

| rgb_color  |  brightness | white led |
| ---------- | ----------- | --------- |
| 20,0,20    |   255       | no        |
| 20,0,20    |   150       | no        |
| 20,0,20    |   100       | no        |
| 20,0,20    |   50        | no        |
| 20,0,20    |   25        | no        |
|            |             |           |
| 20,5,20    |   255       | yes       |
| 20,5,20    |   150       | yes       |
| 20,5,20    |   100       | yes       |
| 20,5,20    |   50        | yes       |
| 20,5,20    |   25        | yes       |
|            |             |           |
| 20,1,20    |   255       | yes       |
| 20,1,20    |   150       | yes       |
| 20,1,20    |   100       | yes       |
| 20,1,20    |   50        | yes       |
| 20,1,20    |   25        | no        | <- Brightness below the limit
|            |             |           |
| 100,1,100  |   255       | yes       |  Brightness limit much higher now
| 100,1,100  |   254       | no        |  Green is low compared to red & blue
|            |             |           |
| 100,10,100 |   25        | yes       |  Brightness fixed at 25, changing 
| 100,9,100  |   25        | yes       |  the green value only to find the limit
| 100,8,100  |   25        | no        |      
| 100,7,100  |   25        | no        |

Hope this can be of use to anyone else struggling with RGBW for the automations.

6 Likes