mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 02:18:43 +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"
|
message: "Sync TV state · Turning TV on - Shield is on"
|
||||||
domain: media_player
|
domain: media_player
|
||||||
|
|
||||||
|
|
||||||
- alias: TV · State · Sync on Shield off
|
- alias: TV · State · Sync on Shield off
|
||||||
trigger:
|
trigger:
|
||||||
platform: state
|
platform: state
|
||||||
@@ -167,6 +166,16 @@ automation:
|
|||||||
message: "Sync TV state · Turning TV off - Shield is off"
|
message: "Sync TV state · Turning TV off - Shield is off"
|
||||||
domain: media_player
|
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:
|
homeassistant:
|
||||||
customize:
|
customize:
|
||||||
media_player.living_room_tv:
|
media_player.living_room_tv:
|
||||||
|
|||||||
Reference in New Issue
Block a user