Set default brightness of lights when turned on

I’ve got hue lights all through the house and they default to more of a yellow light rather than a white light when they lose power and get turned back on.

I’d like to have it so when lights get turned on they reset the brightness and colour

I can get this working for a single light like so

  - alias: 'Reset lights to default when turned on'
    trigger:
      - platform: state
        entity_id: light.study
        to: 'on'        
    action:
      service: light.turn_on
      entity_id: light.study
      data_template:
        brightness: 254

If I change the trigger to group.all_lights then nothing gets triggered at all, I’m aware that it would only change the study light but not even that is happening.

Is this possible without having to maintain this for every light in the house?

I believe if you listed every light under that same entity Id with commas it would do all of them

entity_id: light.study, light.another_light, light.this_light  etc

Never mind that may make them all turn on… not sure

Anything in the log? Are you only using hue lights?

How about a binary_sensor that contains all the lights, and use that going from ‘off’ to ‘on’ as the trigger?

You could then create a set of switches for the lights with that specific brightness, if desired create a group for them, and then call that rather than a generic ‘on’ command.

Check this out it should do the trick