-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
State switch not working template #65
Comments
My template-driven card selector has also completely stopped working with 1.9.1 -- the resulting dashboard is empty, with none of the states shown. This is despite there being a default, the template working fine, and everything working well with state-switch from June. |
Same problem for me |
Same behavior here; any update on this case? |
Same problem here. |
I had the same problem with this, and looking through some of the changes in 1.9+ noticed that the syntax for templating had been changed. As a test i changed it back to what was in the previous version, and it seems to work: entity: >
{% if is_state('input_boolean.test_one', 'on') %}
yes
{% else %}
no
{% endif %}` i've used entity: template
template: >
{% if is_state('input_boolean.test_one', 'on') %}
yes
{% else %}
no
{% endif %}` And that seems to work |
The state switch is working when using an On - Off entity. But when I use a template, the matching state isn't triggered (class no-match).
Tested the template in the developer tools, and it returns the correct string.
The text was updated successfully, but these errors were encountered: