hey I’m a newbie in templating and need a bit help
I want to trigger an Automation with a state on an atrribute on ‘calendar.aufgaben’ the state attribute is ‘due_today’ the attribute have two states ‘true’ or ‘false’
So its better to get an sensor on when true ? how this will work ?
I tested this two options but they dont wortk
For automation trigger
`{% if 'calendar.aufgaben' %}
{{ state_attr('due_today', 'true') }}
true
{% else %}
false
{% endif %}`
and the sensor in my yaml:
binary_sensor:
- platform: template
sensors:
friendly_name: "Tagesaufgabe"
value_template: >-
{{ is_state_attr('calendar.aufgaben', 'due_today', 'true') }}