Hello there,
I have an automation for pause all players in the house when my phone is ringing. Is possible based on idle state to loop through all players and all paused players turn to play?
Hello there,
I have an automation for pause all players in the house when my phone is ringing. Is possible based on idle state to loop through all players and all paused players turn to play?
Use a template to report a list of the entity_ids of all paused media_players.
- service: media_player.media_play
target:
entity_id: >
{{ states.media_player | selectattr('state', 'eq', 'paused')
| map(attribute= 'entity_id') | list }}
Very interesting, thanks. Something similar suggest me ChatGPT but I didn’t trust him