any thoughts on why that wont work? the template works fine, I use it all over the place in my setup with great results (i think). Would have hoped this .svg could do for the time being
your template is not correctly formatted.
In YAML / Jinja2, an IF statement goes like this: {% if condition == 'state' %}value_if_true{% else %}value_if_false{% endif %}
so your template need to be something like: "{% if state == 'on' %}mdi:test-tube{% else %}/local/icon/test-tube-off.svg{% endif %}"