From 656cbe702ad5d5343f9fbc121e5254d85574abd7 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 12 Dec 2021 23:21:57 +0100 Subject: [PATCH] Add F1 automation --- configuration/automations/f1.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 configuration/automations/f1.yaml diff --git a/configuration/automations/f1.yaml b/configuration/automations/f1.yaml new file mode 100644 index 0000000..de18293 --- /dev/null +++ b/configuration/automations/f1.yaml @@ -0,0 +1,23 @@ +- id: f1-automation + alias: '[F1] Automation' + mode: single + trigger: + - platform: state + entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar + to: 'on' + action: + - service: media_player.play_media + data: + 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 + - service: sonos.join + data: + master: media_player.living_room + entity_id: media_player.bathroom +