mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 18:28:43 +00:00
Use is_state_attr
This commit is contained in:
@@ -167,7 +167,7 @@ automation:
|
||||
platform: state
|
||||
entity_id: media_player.nvidia_shield
|
||||
to: 'playing'
|
||||
condition: "{{ state_attr('media_player.nvidia_shield', 'source') == 'Google Cast' }}"
|
||||
condition: "{{ is_state_attr('media_player.nvidia_shield', 'source', 'Google Cast') }}"
|
||||
action:
|
||||
- service: script.sonos_join_tv
|
||||
- service: logbook.log
|
||||
|
||||
Reference in New Issue
Block a user