Set same brightness of only current switched on lights

Hi all,

Have a hue bridge v2 and some lights. i would like to automate the brightness level at certains times of the day of only the lights that are currently on.

It seems that an automation like this will work on all the lights and if some lights are off it will turn them on.

I woupd like it to be that the setting will only impact the loghts currently on as i might be on different rooms of my house and dont have a set up routine.

Thanks