#conditional template

1 messages · Page 1 of 1 (latest)

rancid meteor
#

Hey, someone see here a issue? i get always conditional are invalid

conditions:
  - condition: template
    value_template: {{ (state_attr('binary_sensor.warning_xxxxx_1', 'severity') = 'Extreme') }}```
frank star
rancid meteor
#

ah okay thank you

frank star
#

Also, single line templates ALWAYS need quotes.yaml value_template: "{{ ... }}"

jade cape
#

The single equal sign would be another issue.

rancid meteor
#

hmm, so the only way is to change it from entity filter into a auto-entitie or? maybe someone can assist here? 🙌🏻
https://pastebin.com/zTtdEpXV

frank star
#

You could create a template helper and use the state condition.