mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 17:34:42 +00:00
Automate Sonos for TV
This commit is contained in:
@@ -67,6 +67,8 @@ cards:
|
|||||||
- automation.tv_plex_setup_house_for_plex
|
- automation.tv_plex_setup_house_for_plex
|
||||||
- automation.tv_plex_restore_house_after_plex
|
- automation.tv_plex_restore_house_after_plex
|
||||||
- automation.youtube_download_latest_pds
|
- automation.youtube_download_latest_pds
|
||||||
|
- automation.media_sonos_put_beam_in_night_mode
|
||||||
|
- automation.media_sonos_put_beam_in_day_mode
|
||||||
|
|
||||||
- type: divider
|
- type: divider
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,14 @@ automation:
|
|||||||
- media_player.plex_lg
|
- media_player.plex_lg
|
||||||
to: "playing"
|
to: "playing"
|
||||||
action:
|
action:
|
||||||
|
- service: sonos.unjoin
|
||||||
|
entity_id: media_player.living_room
|
||||||
|
- service: media_player.select_source
|
||||||
|
entity_id: media_player.living_room
|
||||||
|
data:
|
||||||
|
source: TV
|
||||||
|
- service: media_player.media_pause
|
||||||
|
entity_id: media_player.master_bedroom
|
||||||
- service: scene.create
|
- service: scene.create
|
||||||
data:
|
data:
|
||||||
scene_id: plex_before_start
|
scene_id: plex_before_start
|
||||||
|
|||||||
@@ -56,6 +56,27 @@ script:
|
|||||||
data:
|
data:
|
||||||
volume_level: 0.2
|
volume_level: 0.2
|
||||||
|
|
||||||
|
automation:
|
||||||
|
- alias: Media · Sonos · Put Beam in night mode
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: "22:00:00"
|
||||||
|
action:
|
||||||
|
- service: sonos.set_option
|
||||||
|
entity_id: media_player.living_room
|
||||||
|
data:
|
||||||
|
night_sound: true
|
||||||
|
|
||||||
|
- alias: Media · Sonos · Put Beam in day mode
|
||||||
|
trigger:
|
||||||
|
platform: time
|
||||||
|
at: "08:00:00"
|
||||||
|
action:
|
||||||
|
- service: sonos.set_option
|
||||||
|
entity_id: media_player.living_room
|
||||||
|
data:
|
||||||
|
night_sound: false
|
||||||
|
|
||||||
homeassistant:
|
homeassistant:
|
||||||
customize:
|
customize:
|
||||||
media_player.master_bedroom:
|
media_player.master_bedroom:
|
||||||
|
|||||||
Reference in New Issue
Block a user