Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99027

Automation: How to use the 'For' in a Wait template

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 99027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>