mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Automatically switch to TV when casting
This commit is contained in:
@@ -149,7 +149,6 @@ automation:
|
||||
message: "Sync TV state · Turning TV on - Shield is on"
|
||||
domain: media_player
|
||||
|
||||
|
||||
- alias: TV · State · Sync on Shield off
|
||||
trigger:
|
||||
platform: state
|
||||
@@ -167,6 +166,16 @@ automation:
|
||||
message: "Sync TV state · Turning TV off - Shield is off"
|
||||
domain: media_player
|
||||
|
||||
- alias: TV · Sonos join TV on Google Cast
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: media_player.nvidia_shield
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: "{{ state_attr('media_player.nvidia_shield', 'source') == 'Google Cast' }}"
|
||||
action:
|
||||
- service: script.sonos_join_tv
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
media_player.living_room_tv:
|
||||
|
||||
Reference in New Issue
Block a user