diff --git a/configuration/automations/f1.yaml b/configuration/automations/f1.yaml index de18293..f2c4a92 100644 --- a/configuration/automations/f1.yaml +++ b/configuration/automations/f1.yaml @@ -11,13 +11,22 @@ media_content_id: https://open.spotify.com/track/5r7egnfTIQjaKSGREhIky9?si=688bbc2db49a4980 media_content_type: music target: - entity_id: media_player.living_room - - service: sonos.join - data: - master: media_player.living_room entity_id: media_player.bedroom + - choose: + - conditions: + - condition: not + conditions: + - condition: state + entity_id: media_player.living_room + state: TV + attribute: source + sequence: + - service: sonos.join + data: + master: media_player.bedroom + entity_id: media_player.living_room - service: sonos.join data: - master: media_player.living_room + master: media_player.bedroom entity_id: media_player.bathroom