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 :
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: