I have an automation which checks for a template in If clause. When I test the template in Developer Tools, it returns True. But, when the template condition is tested with the automation, it returns False. I am confused as to why this would happen.
if:
- condition: template
value_template: >-
value_template: "{{ state_attr('media_player.bedroom_tv', 'app_name') !=
'Plex'}}"
then:
- action: script.turn_on
metadata: {}
data: {}
target:
entity_id: script.dell_xps_9000_positive_hibernate
The automation is failing to run the action since If returns False. When the automation fails to run the action, I immediately tested the template in Developer Tools and it returns True. Any ideas?
Thanks…