@elias wrote:
I have an automation that turns on or off (via a tradfri plug) my stereosystem. The music itselfs is fed via a Chromecast Music.
I am trying to have just 1 automation to turn on/off the boxes.
So in the actions, I use a ‘Wait’ template to wait until music stops.
wait_template: '{{ (not is_state(''media_player.aanbouw_speaker'' , ''playing'')) }}'
I would like a ‘For’ in the wait statement because after every song, the state quickly jumps to ‘idle’ and then to ‘playing’ again.
Posts: 1
Participants: 1