Brightness not apply in automation

Hello,
I did an automation to my light turn on 5 minutes before my alarm clock ring.
My automation work well, but my light, turn on, but without apply my config, and in my case the bightness (my light turn on at most). You can find my automation bellow :

- alias: morning_alarm
  trigger:
    - platform: template
      value_template: '{{states.sensor.heure_alarme.state == states.sensor.galaxy_s8_alarm_sensor.state}}'
  action:
    - service: light.turn_on
      entity_id: light.led_salon
      data:
        brightness: 50

Do you have an idea? My light is a Z-wave FDG-212

What happens if you try it like this:

  action:
    - service: light.turn_on
      data:
        entity_id: light.led_salon
        brightness: 50
1 Like

Thank you, sorry for the mistake, I just to read the documentation :wink:

Well there has been some recent discussion about the correct place to put the entity_id, (in or out of data) so I thought it was worth a try. See here for more: