Hi
I need to modify the name of a proximity atribute and wantend to create a template sensor in my sensors.yaml
But for some reason I get nothing out of it and the template sensor keerps saying “onbekend”
What am I doiing wrong here
- platform: template
sensors:
template_proximity_vincent:
friendly_name: “proximity_vincent_tp"
value_template: >
{% if states ('states.proximity.vincent.attributes.dir_of_travel') == 'arrived' %} Aangekomen
{% else %}
{% endif %}
{% if states ('states.proximity.vincent.attributes.dir_of_travel') == 'towards' %} Richting huis
{% else %}
{% endif %}
{% if states ('states.proximity.vincent.attributes.dir_of_travel') == 'away_from' %} Gaat weg
{% else %}
{% endif %}
{% if states ('states.proximity.vincent.attributes.dir_of_travel') == 'unknown' %} Onbekend
{% else %}
{% endif %}
{% if states ('states.proximity.vincent.attributes.dir_of_travel') == 'stationary' %} Geen beweging
{% else %}
{% endif %}
{% if states ('states.proximity.vincent.attributes.dir_of_travel') == 'not set' %} Geen vermelding
{% else %}
{% endif %}