What is wrong with my scenes.yaml light brightness PCT is ignored

I have this in my scenes.yaml however the brightness is totally ignored

- name: set_livingroom_mood
  entities:
    light.tall:
      brightness_pct: 30
      state: on
    light.sofa:
      state: on
      brightness_pct: 15
    light.tv:
      state: on
      brightness_pct: 15
    light.livingroom:
      state: off

The scene is getting actioned, the correct lights come on but the brightness % is ignored

I don’t use scenes much, but I believe brightness_pct is not an actual attribute. brightness is (0…255). So you cannot use the (calculated) brightness_pct in scenes. If you put in brightness it will work.

winner winner chicken dinner.

This fixed it

- name: set_livingroom_mood
  entities:
    light.tall:
      state: on
      brightness: 80
    light.sofa:
      state: on
      brightness: 30
    light.tv:
      state: on
      brightness: 30
    light.livingroom:
      state: off
1 Like

I would have liked it to be an actual attrubute though. I have input helpers in percentages that I use to set brightness_pct. But I cannot use in state conditions to compare for them because I need to convert them to brightness first.

1 Like

It is also why I do not use scenes much: I use scripts because they do allow me to use input helpers and conditions.