my problem is that sometimes the set up of the source is not done.
i suppose that sometimes there a little delay, and so when the set up of the source is launched, the TV is not yet powered and so the source is not set up.
ofcourse i can put a arbitrary delay of x seconds, but i would like to know if there is a way to put a conditional delay, like the same things we do for the status of the switch like {{is_state('media_player', 'playing')}}
I want an automation triggered just after some seconds the triggering of another automation which run at the same time and with the same trigger and conditions…But with different actions…