Hi,
I understand that a timer can have active, idle and paused state(s). So created a “test timer” and trying to get its state, the timer is not active active so the result needs to be “Idle”.
I’ve tried a zillion combination of the template code below but in each instance the “else” statement gets executed which likely implies that I’m not using the correct syntax in the “if” statement:
{% if states.test_timer.idle == 'true' %}
Idle
{% else %}
Not idle
{% endif %}
Please point me in the right direction if you can spot my mistake.
Thanks.