Automatically switch to TV when casting

This commit is contained in:
2020-07-26 12:18:08 +03:00
parent 7eb6795c85
commit cef398831e
+10 -1
View File
@@ -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: