Smartthings Lamp Colour in Scene Not Working

I have some Osram zigbee bulbs setup in smartthings that are doing strange things with the colour setup in a scene.

I created a new scene using the new scene editor, I added the bulb and set the colour, brightness etc how I want and in scenes.yaml it configures these as the values

    light.snug_lamp:
      brightness: 255
      color_temp: 369
      hs_color:
      - 126
      - 0
      rgb_color:
      - 255
      - 255
      - 255
      state: 'on'
      xy_color:
      - 0.323
      - 0.329

But when I apply the scene the bulb changes to a different colour than the one I originally set in the scene editor?

I have also used the developer tools states to check the values for the entity and they match what is configured in scene.yaml.

How can I get my bulb set to the correct colour when the scene is applied?

I’m pretty sure that you should only be using 1 set of “color” attributes… meaning get rid of 2 or the 3 color settings (rgb_color or xy_color, etc.).

Is this for white light? If not, if it’s just for rgb… then you can probably get rid of the color temp too.

I removed the hs_colour, xy_colour and rgb_colour values and then it worked ok - I was just trying to set the lamp to a warm white colour :grinning:

Thanks!

2 Likes

No problem! (I only knew the answer because I did it myself a few months back! :smiley: )

I have a very similar effect. I like to switch on a RGB light with different colors by using scenes.

The light bulb is integrated via WLAN Tasmota & MQTT and works fine, when controlled via home assistants control elements.

But in a scene I face strange behaviour. I have created scenes for different colors. When I activate the scene, the light bulb turns on with the desired color, but switches immediately to white then. (means no RGB color, just white/yellow) Brightness is as set for the selected RGB color.

The code for the scene is automatically generated by HA:

- id: '1582390380053'
  name: Garagenlicht Rotlicht
  entities:
    light.hama_bulb01:
      effect_list:
      - '0'
      - '1'
      - '2'
      - '3'
      - '4'
      brightness: 227
      hs_color:
      - 0
      - 100
      rgb_color:
      - 255
      - 0
      - 0
      xy_color:
      - 0.701
      - 0.299
      white_value: 0
      effect: '0'
      friendly_name: HAMA_Bulb01
      supported_features: 149
      state: 'on'

How can I overcome this? To manually modify the code each time I change the scene seems to be no convenient solution.
HA 0.116.2