Lightify and Scenes... Just want warm white

Good evening! So far loving my HA setup, but I’ve come across an infuriating issue that I would think should be relatively simple to accomplish. I have 4 Sylvania Zigbee bulbs on the front of my house connected to HA with the HUSBZB-1 hub. It’s been fun having the colors different for Christmas and New Year. Now I just want them to come on white at a warm temperature. I was figuring I would just make a “default” scene to use normally.

I set all of the bulbs like I wanted them (somewhere around 2700k temperature), created the scene, then saved it. When I activate the scene, they’re coming on at a bright white (default) and I cannot get my Scene to change the white temperature to what I want. I even manually edited the Scenes file outside of the UI, restarted, and it still won’t grab the color temperature I set.

What am I doing wrong here? They are RGBW bulbs. My thought was that color is being considered first since the pointer is in the middle of the color wheel, it’s defaulting to the bright white rather than considering the color temperature?

Thanks in advance for the help!

It would be useful if you showed the configuration of your scene.

Thanks! Below is what my scene for “DEFAULT” is. I had duplicated the values for each light. I played around with the “color_temp” value and found what I wanted. I believe I was able to force it to that color when I went “Developer Tools” and then “States” and set the State manually there. When I activate this scene though, it just goes back to this cool white color.
Furthermore, the lights came on at the scheduled time with that same color. Do I maybe need to manually edit the scene and remove out everything that isn’t required and just leave the “color_temp” and whatever other values? Trim out the RGB stuff perhaps?

- id: '1578183750047'
  name: Front Exterior DEFAULT
  entities:
    light.front_door:
      brightness: 254
      color_temp: 399
      effect_list:
      - colorloop
      friendly_name: Front Door
      hs_color:
      - 270
      - 0
      max_mireds: 500
      min_mireds: 153
      off_brightness:
      rgb_color:
      - 255
      - 255
      - 255
      state: 'on'
      supported_features: 55
      xy_color:
      - 0.323
      - 0.329
    light.garage_1:
      brightness: 254
      color_temp: 401
      effect_list:
      - colorloop
      friendly_name: Garage 1
      hs_color:
      - 0
      - 0.392
      max_mireds: 500
      min_mireds: 153
      off_brightness:
      rgb_color:
      - 255
      - 254
      - 254
      state: 'on'
      supported_features: 55
      xy_color:
      - 0.324
      - 0.329
    light.garage_2:
      brightness: 254
      color_temp: 401
      effect_list:
      - colorloop
      friendly_name: Garage 2
      hs_color:
      - 0
      - 0.392
      max_mireds: 500
      min_mireds: 153
      off_brightness:
      rgb_color:
      - 255
      - 254
      - 254
      state: 'on'
      supported_features: 55
      xy_color:
      - 0.324
      - 0.329
    light.garage_3:
      brightness: 254
      color_temp: 398
      effect_list:
      - colorloop
      friendly_name: Garage 3
      hs_color:
      - 0
      - 0.392
      max_mireds: 500
      min_mireds: 153
      off_brightness:
      rgb_color:
      - 255
      - 254
      - 254
      state: 'on'
      supported_features: 55
      xy_color:
      - 0.324
      - 0.329

I have the same exact issue with my sengled bulbs, I have a scene to set them to a warm white, but they just come on at white. It also seems that if I choose a color, including white it ignores my temperature until I move the slider, so maybe we need scenes to set the color, then the temperature if we’re setting the light to white?

3 Likes

I am seeing the same issue with Philips Hue color bulbs. I have been able to work around it by manually editing the scene YAML by removing all the color sections (hs_color, rgb_color, xy_color). Once you remove those, the color_temp will work.

However, if you edit the scene again using the scene GUI, it will re-add those sections back into the config, so this is quite annoying. You need to only use the file editor to change your scene.

I suspect HA is setting the color_temp, but is then also setting the color based on the other xxx_color sections, which overwrites the color_temp setting in the bulb.

1 Like

I continue to see posts with this same problem going back a year or more. I am surprised that it has not been resolved yet. I just got my HA up and running and (fortunately) have only moved 3 bulbs over…2 Osram/Lightify and 1 Sylvania/Ledvance Smart+ I have exactly the same problem with scenes. Now I’m hesitant to move more.

1 Like

I have the same exact problem, created a new scene, added a device and set to warm white, saved the scene and when activate the scene, the light in white but not warm

is there a solution somewhere ?

2 Likes

I can confirm: color temperature is currently ignored by scenes. Hence you always get the last value that was set.

1 Like

So here I was thinking this was due to the new update. I am trying to set a “Movie Time” scene in the UI that always turns my TV backlight blue instead of white. Once I move the color slider, it fixes itself but even after adjusting the slider back, saving the scene and exiting it jumps right back to the blue light. Is this something worth opening up an issue on or is everyone just setting this up in the YAML?

2 Likes

Had this same issue with Sengled E11-N1EAs I’m trying to bring over from a SmartThings setup. Tried messing with scenes but as far as I can tell they are broken for this functionality (trying to change temperature). Got it working with an automation instead. I tied the automation to a button press. Below is a quick ‘bedtime mode’ I made dimming 4 lights and setting temperature to a deep orange.

  alias: Living Room - Bedtime
  description: Dim light to bedtime levels
  trigger:
  - device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxx
    domain: zha
    platform: device
    type: remote_button_short_press
  condition: []
  action:
  - service: light.turn_on
    data:
      entity_id: light.living_room_lamp_level_light_color_on_off
      brightness: 1
      kelvin: 2000
  - service: light.turn_on
    data:
      entity_id: light.living_room_1_level_light_color_on_off
      brightness: 1
      kelvin: 2000
  - service: light.turn_on
    data:
      entity_id: light.living_room_2_level_light_color_on_off
      brightness: 1
      kelvin: 2000
  - service: light.turn_on
    data:
      entity_id: light.living_room_3_level_light_color_on_off
      brightness: 1
      kelvin: 2000

4 Likes

This happens also with the new Lidl smart RGB bulbs: Colored lights on scenes work great. But for actual white tones you want to adjust the the color temperature slider because it gives you many times more light by using the white leds instead of composing the color with the RGB leds),

The problem is, that the scene saves everything (including the selected color in all the supported color formats, among other attributes), and when you restore the scene, you will also restore the RGB colors to the lamp, and this wipes out the white balance setting, because they are mutually exclusive at least in the Lidl bulbs.

My Trådfri bulbs have just RGB leds, so they work right. But any lights that have RGB and white are likely hit by this.

So if you set white balance, saving a scene should either ignore any RGB color for a given lamp , or it should restore white balance last when activating a scene.

You can make your scenes work by removing all the color definition except white balance and brightness from the scenes.yaml.

3 Likes

I’ll have to give this a try. It’s the only thing that has prevented me from moving my RGBW bulbs to HA. Thanks.

Does this work if I want Warm White selected?
Do you have a screenshot you can share?

As I’m having this exact issue with all my RGBW lamps. The scenes selects the RGB colour instead and ignores my Warm White requirement.

I had similar issues too. I created a blueprint to solve it.
You could grab the automation and modify the condition to only fire if your bulb was activated by a specific scene. This blueprint below runs every time the light is turned on.

Hi all, sorry to revive an older thread. I thought I had replied to this, but I did not. I’m glad I’m not the only one facing this issue. My Proxmox box crashed so I ended up having to completely rebuild HA from scratch.
Same issue with the new build. I did end up finding a workaround. I created a scene in the GUI, but then edited the YAML manually to get the color temps I wanted. There was a bunch of extra stuff I had to strip out since they’re RGBW bulbs. It’s worth noting that if you modify the Scenes in the GUI again, it totally screws up all of your manual work and the Scene no longer gives you the color temperature you want. It’s a pain…

1 Like

Would you be able to share what your new scene looks like so we can compare what you had to what you have now and know what was removed? That would be helpful to the community.

Thought I’d throw my name in for having the same problem. Looks like color temperature gets ignored (or the color wheel takes precedence). I like that there is a work-around by editing the YAML but I don’t want to have to do that every time I update a scene.
Hopefully there’s a fix soon. Has anyone run this up the flagpole at all?

I was able to fix this by manually editing my scenes.yaml file - changing:

color_mode: hs

to

color_mode: color_temp

seems to have done the trick.

1 Like

Yes, @pjn77 you are definitely in the right place!
So I’ve got mine figured out now!
If you update to the latest core (April 2021 release(s)) then it should pay more attention to this change. I had to upgrade my Tasmota flashed lights to the 9.x release(s) and then use the Tasmota integration instead of the MQTT (if you’re using Tasmota firmware on your device, and it’s not showing up in Tasmota integration, make sure you setOption19 0 aka turn off auto-discovery. It should pop up almost instantly in Tasmota integration).
After that, you’ll see some new thing pop up in the control of the devices, including a White Channel slider and the color_mode change correctly depending on your last color change, whether it was to the color temperature or to the hue/sat values.
BUT if you’re not using Tasmota, or still having issues, then yes, configuring the scenes.yaml will fix your problem. What I recommend is set your scene using the UI, save, then hit the snowman/options in upper right and select Edit YAML. Add color_mode: color_temp and then color_temp: ### under that light or group and save.
KNOW THIS THOUGH: if you edit that scene in the UI later, it will most likely overwrite that YAML you edited to you’ll have to redo it later.
Hope this helps someone, it took me a while to get it working. If anyone needs more help, let me know, I’ll keep an eye on the post.

This problem is caused by lights reporting an ambiguous state, for example with both a color_temp and a hs_color. It’s then impossible to reliably restore the scene because Home Assistant does not know if the color_temp or the hs_color is valid.

This needs to be fixed for each affected integration by making sure it doesn’t report any ambiguous states.
Please create an issue here: https://github.com/home-assistant/core/issues/new?assignees=&labels=&template=bug_report.yml, for example “Integration xxx fails to apply scene” and ping me in the issue. In the issue make sure to include:

  • Which integration is affected
  • What does not work, for example you expect the light to be set to white with color_temp, but the light is set to a color instead
  • An example scene
1 Like