Does your input_select.select_state have a “Not Awake” state? if so you can use that for the 2nd condiction in the automation. Just copy paste the above and change the condition state and brightness.
The idea for the automation was that I wanted to have a different brightness depending on the input_select, as you have guessed I have an Awake and a Not_Awake selection.
I used to have two automations one for the condition if “Awake” and another for the condition if “Not_Awake”; however I wanted to try to condense them in one automation. As I wanted to have the lights turn off after X minutes in case of “Not_Awake” and X+y minutes in case of “Awake”, hence having just two automations (turn on and turn off).
The issue is that with the action as you suggest I think it stops with if the first condition is false and will not allow me to put / run a second condition for the state “Not_Awake”.
The use of choose for this application is overkill because the only difference between the two service calls is the brightness value.
choose is preferred when there’s a significant difference between what each choice should do. Otherwise, like in this case, one simple template gets the job done.
thanks everyone! all your answers were very enlightening and allowed me to understand a few key concepts that still eluded me (complete newbie here). I am marking @123 answer as solution because it uses my code, but @Dujith suggestion is something that is going to be very useful for everything that I want to do and that I did not understand how it could be used.