2021-12-12 22:21:57 +00:00
|
|
|
- id: f1-automation
|
|
|
|
alias: '[F1] Automation'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
2022-07-10 10:34:59 +00:00
|
|
|
- platform: calendar
|
|
|
|
event: start
|
|
|
|
offset: '-0:05:0'
|
2021-12-12 22:21:57 +00:00
|
|
|
entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar
|
2022-06-05 23:27:38 +00:00
|
|
|
condition:
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_select.home_mode
|
|
|
|
state: Day
|
2021-12-12 22:21:57 +00:00
|
|
|
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
|
2022-08-10 21:25:11 +00:00
|
|
|
- service: media_player.join
|
2021-12-12 22:21:57 +00:00
|
|
|
data:
|
2022-08-10 21:25:11 +00:00
|
|
|
group_members: media_player.bathroom
|
|
|
|
target:
|
|
|
|
entity_id: media_player.bedroom
|
2022-07-21 22:43:39 +00:00
|
|
|
- service: script.tv_f1tv
|
|
|
|
- delay: '0:05:00'
|
2022-08-10 21:25:11 +00:00
|
|
|
- service: media_player.unjoin
|
2022-07-21 22:43:39 +00:00
|
|
|
target:
|
|
|
|
entity_id: media_player.bathroom
|