Hi, i want to create a helper that converts the status of a tracker to either off or on.
I think i am very close, but i just cant get it to resolve correctly. Maybe something to do with my syntax. Any help gratefully received.
{% if ( (is_state('device_tracker.diskstation', 'Away')) ) %}
Off
{% else %}
On
{% endif %}