Scenes not setting brightness or colours unless the light is already turned on

Hi all,

I have created some scenes and they only work if the lights are already switched on. If the lights are switched off and I activate the scene then the scene will just turn the light on using whatever setting it was at when it was switched off.

Here is my scene file:

- name: LR_Romantic
  entities:
    light.lounge_lights:
      state: on
      rgb_color: [200,0,88]
      brightness: 255
      

- name: LR_Normal
  entities:
    light.lounge_lights:
      state: on
      white_value: 255
      

- name: LR_Dim_half
  entities:
    light.lounge_lights:
      state: on
      white_value: 125
      
      
- name: LR_Dim_quarter
  entities:
    light.lounge_lights:
      state: on
      white_value: 60
      
      
- name: LR_Test_effect
  entities:
    light.lounge_left:
      state: on
      effect: 'custom'
      
      
- name: LR_Test_effect 2
  entities:
    light.lounge_left:
      state: on
      effect: 'custom'
      custom_effect:
        colors: [[255,0,0], [0,255,0], [0,0,255]]
1 Like

Oh the lights are flux_led lights.

Configuration.yaml setup for the lights in case anyone wants to see:

light:
  - platform: flux_led
    devices:
      192.168.1.252:
        name: "Lounge Left"
        mode: "rgbw"
        custom_effect:
          colors: [[70,0,79], [255,0,0]]
      192.168.1.162:
        name: "Lounge Right"
        mode: "rgbw"
      192.168.1.161:
        name: "Lounge Left 2"
        mode: "rgbw"
      192.168.1.251:
        name: "Lounge Right 2"
        mode: "rgbw"

Any ideas anyone???

Not sure but I’ll post one of my scenes for you to look at in case it helps (Hue and Tradfri though).

name: Dinner
entities:
  light.livingcolors_1:
    state: on
    xy_color: [0.6774,0.2884]
    brightness: 20
  light.hue_bloom_2:
    state: on
    xy_color: [0.6774,0.2884]
    brightness: 20
  light.tv:
    state: off
  light.fish:
    state: on
    brightness: 254
  light.cheminee:
    state: on
    brightness: 200
  light.entrance:
    state: on
    brightness: 254
  light.tradfri_bulb_e27_ws_opal_980lm:
    state: on
    brightness: 254

I am seeing the same thing. Scene only sets brightness on 2nd call. First time you run a scene it turns the light on to the previous state, the second time you run the scene it actually set’s the brightness you asked for.

1 Like

Any update on this topic?

I am also seeing some odd behaviour with scenes and one of my zwave lights, where its supposed to turn on based on the code but doesn’t, but sometimes it also does, so very inconsistant. I have to stop using scenes now to get it to work 100% of the time which is unfortunate.

I am having this same problem. Has anyone found a solution?

I’m also having the same problem. I need to run the scene twice. First time it changes the state and the second it updates the brightness. Anyone managed to fix this?

I am going to go out on a limb here and say it is a bulb specific thing. Likely the bulbs we are using only allow changes to the settings once the bulb is turned on. I guess other bulbs will allow turning on and change in settings as a single combined action. If that is the case then home assistant would need to add additional functionality to scenes - for instance you can tag particular bulbs as needing to be ON before applying scene settings. Then when you run a scene it knows to turn those bulbs on before running the scene. It wouldn’t be much work to implement that and might be a handy feature request.

I haven’t looked at scenes for such a long time - so apologies if this kind of functionality already exists or there is already a workaround for this. I’m sure someone will chime in if there is a way to do this.

1 Like

Personally I ended up creating scripts instead. An example being:

scene_lr_romantic:
  sequence:
  - service: homeassistant.turn_on
    entity_id: light.lounge_lights
  - delay: 0.5
  - service: scene.turn_on
    entity_id: scene.lr_romantic
1 Like

This is still an issue: I need to activate a scene twice, for the (brightness and other) settings to take place, if the lights were previously turned off.

WiZ bulbs (if that actually matters).

Well, I guess this is still a good idea :+1: