mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 11:44:43 +00:00
Automate Sonos for TV
This commit is contained in:
@@ -16,6 +16,14 @@ automation:
|
||||
- media_player.plex_lg
|
||||
to: "playing"
|
||||
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
|
||||
data:
|
||||
scene_id: plex_before_start
|
||||
|
||||
@@ -56,6 +56,27 @@ script:
|
||||
data:
|
||||
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:
|
||||
customize:
|
||||
media_player.master_bedroom:
|
||||
|
||||
Reference in New Issue
Block a user