From 2d8e5f1aebdbbde4a1bb06f728a34683f635ed82 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 12 Dec 2021 23:39:41 +0100 Subject: [PATCH] Change F1 notification automation --- configuration/automations/f1.yaml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 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