Example of Hue and LIfx Color Changes?

I’ve been trying to create a simple scene that will change the colors of my Hue bulbs and my Lifx Z strip at the same time but can’t seem to figure it out. Does someone have an example that they could share?

What I currently have:

  - name: Blue Party
    entities:
      light.cabinets:
        state: on
        rgb_color: 0,26,129
        color_temp: 233
        brightness: 255

Here is a scene example https://home-assistant.io/cookbook/dim_lights_when_playing_media/

In that example each light is listed as an entity. If your lights are grouped together you will want to change your entity to the group.

Hmm okay thank you ill take a look at this. I see they are using the XY color option to set the color, is there a calculator or a chart to convert these to hex colors or RGB colors? I’ve tried passing values of both to Hue and Lifx and they don’t change colors - even when I manually change the colors to blue - look in HA for their values and try and replicate those values in a scene they dont change.

Any ideas?

I unfortunately don’t have any RGB lights as of yet but you could try https://home-assistant.io/components/light/. There is a link to a Hue color chart there, looks like you need to create a Hue api account.

Yes thank you, I’ve read that a few times.

The confusion comes from whether or not I need color_temp AND rgb_color or if color_temp or rgb_color are enough? Are the HUE lights different than the LIFX when it comes to that?

If i group the two in a group and set the group to a “blue” color on the color chart, they come back with different values entirely so I guess I’m confused

Try this:

- name: Blue Party
    entities:
      light.cabinets:
        state: on
        rgb_color: [0,26,129]  <--brackets
        color_temp: 233
        brightness: 255

Hey look at that, now were getting somewhere!

Thanks for the tip, i knew it was something simple I was overlooking.

Thanks!

No problem. Sorry for all the round about posts, like i said I don’t have any RGB lights yet so it took me a minute to notice the missing brackets.