mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-04-29 06:48:16 +00:00
More Sonos automations
This commit is contained in:
@@ -9,6 +9,7 @@ cards:
|
|||||||
entities:
|
entities:
|
||||||
- automation.youtube_download_latest_pds
|
- automation.youtube_download_latest_pds
|
||||||
- automation.tv_join_beam_to_sonos_group_when_off
|
- automation.tv_join_beam_to_sonos_group_when_off
|
||||||
|
- automation.randi_notify_cart_is_available
|
||||||
|
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ script:
|
|||||||
music_play:
|
music_play:
|
||||||
alias: Music · Play
|
alias: Music · Play
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.music_join_sonoses
|
- service: script.sonos_join_bedroom
|
||||||
- service: media_player.volume_set
|
- service: media_player.volume_set
|
||||||
entity_id: group.all_sonos
|
entity_id: group.all_sonos
|
||||||
data_template:
|
data_template:
|
||||||
@@ -21,6 +21,7 @@ script:
|
|||||||
entity_id: media_player.master_bedroom
|
entity_id: media_player.master_bedroom
|
||||||
source: "{{ playlist | default('Evening Chill') }}"
|
source: "{{ playlist | default('Evening Chill') }}"
|
||||||
|
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: Music · Play/Pause on Magic Cube Knock
|
- alias: Music · Play/Pause on Magic Cube Knock
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
@@ -27,13 +27,34 @@ binary_sensor:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
script:
|
script:
|
||||||
music_join_sonoses:
|
sonos_join_bedroom:
|
||||||
alias: Music · Join Sonoses
|
alias: Sonos · Join to Bedroom
|
||||||
sequence:
|
sequence:
|
||||||
- service: sonos.join
|
- service: sonos.join
|
||||||
entity_id: group.all_sonos
|
entity_id: group.all_sonos
|
||||||
data_template:
|
data:
|
||||||
master: media_player.master_bedroom
|
master: media_player.master_bedroom
|
||||||
|
sonos_join_tv:
|
||||||
|
alias: Sonos · Join to TV
|
||||||
|
sequence:
|
||||||
|
- service: sonos.join
|
||||||
|
entity_id: group.all_sonos
|
||||||
|
data:
|
||||||
|
master: media_player.living_room
|
||||||
|
sonos_bathroom_up:
|
||||||
|
alias: Sonos · Bathroom up
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
entity_id: media_player.bathroom
|
||||||
|
data:
|
||||||
|
volume_level: 0.5
|
||||||
|
sonos_bathrom_down:
|
||||||
|
alias: Sonos · Bathroom down
|
||||||
|
sequence:
|
||||||
|
- service: media_player.volume_set
|
||||||
|
entity_id: media_player.bathroom
|
||||||
|
data:
|
||||||
|
volume_level: 0.2
|
||||||
|
|
||||||
homeassistant:
|
homeassistant:
|
||||||
customize:
|
customize:
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ script:
|
|||||||
youtube_play_file:
|
youtube_play_file:
|
||||||
alias: Youtube · Play file
|
alias: Youtube · Play file
|
||||||
sequence:
|
sequence:
|
||||||
- service: script.music_join_sonoses
|
- service: script.sonos_join_bedroom
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: media_player.master_bedroom
|
entity_id: media_player.master_bedroom
|
||||||
@@ -61,7 +61,7 @@ script:
|
|||||||
url: "{{ states('input_text.youtube_download_url') }}"
|
url: "{{ states('input_text.youtube_download_url') }}"
|
||||||
name: "{{ states('input_text.youtube_download_name') }}"
|
name: "{{ states('input_text.youtube_download_name') }}"
|
||||||
|
|
||||||
- service: script.music_join_sonoses
|
- service: script.sonos_join_bedroom
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: media_player.master_bedroom
|
entity_id: media_player.master_bedroom
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ script:
|
|||||||
# TODO: Only if it's dark in the living room
|
# TODO: Only if it's dark in the living room
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.living_room_all_lights
|
entity_id: light.living_room_all_lights
|
||||||
- service: script.music_join_sonoses
|
- service: script.sonos_join_bedroom
|
||||||
|
|
||||||
# Check if welcome home is enabled, proceed with welcome routine.
|
# Check if welcome home is enabled, proceed with welcome routine.
|
||||||
- condition: state
|
- condition: state
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ script:
|
|||||||
data:
|
data:
|
||||||
message: "Here's some music to start the day!"
|
message: "Here's some music to start the day!"
|
||||||
- delay: 00:00:02
|
- delay: 00:00:02
|
||||||
- service: script.music_join_sonoses
|
- service: script.sonos_join_bedroom
|
||||||
- service: script.music_play
|
- service: script.music_play
|
||||||
|
|
||||||
routine_morning_briefing:
|
routine_morning_briefing:
|
||||||
|
|||||||
Reference in New Issue
Block a user