Automate Sonos for TV

This commit is contained in:
2020-04-18 16:47:45 +03:00
parent ddd4db1ecc
commit 7e7333cc34
3 changed files with 31 additions and 0 deletions
@@ -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
+8
View File
@@ -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
+21
View File
@@ -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: