1
0
ansible-home-assistant/configuration/automations/f1.yaml
Przemek Grondek ce387c202b Add F1TV scripts & automations
Add script to start F1TV
 Update F1 automation to automatically start F1TV app
 Update F1 automation to automatically unjoin speakers
2022-07-22 00:43:39 +02:00

30 lines
831 B
YAML

- id: f1-automation
alias: '[F1] Automation'
mode: single
trigger:
- platform: calendar
event: start
offset: '-0:05:0'
entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar
condition:
- condition: state
entity_id: input_select.home_mode
state: Day
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.bedroom
- service: sonos.join
data:
master: media_player.bedroom
entity_id: media_player.bathroom
- service: script.tv_f1tv
- delay: '0:05:00'
- service: sonos.unjoin
data: { }
target:
entity_id: media_player.bathroom