Don't shut tv off if source is not shield

This commit is contained in:
2020-05-16 10:52:52 +03:00
parent 6f38672d18
commit 9c4f3c775a
+3
View File
@@ -151,6 +151,9 @@ automation:
platform: state
entity_id: media_player.nvidia_shield
to: "off"
condition:
condition: template
value_template: "{{ is_state_attr('media_player.living_room_tv', 'source', 'Shield') }}"
action:
- service: media_player.turn_off
entity_id: media_player.living_room_tv