Open Aleborg opened 1 year ago
I have exactly the same problem. This line crashes the whole dashboard:
{% set names = state_attr('input_select.radio_names', 'options') %}
A little bigger example:
# lovelace_gen
{% set names = state_attr('input_select.radio_names', 'options') %}
title: My test view
cards:
- type: custom:mushroom-title-card
title: >
{{ names }}
Ehh, now I just read that we can't use state or attributes. Pity, I thought I had solved the problem of a globally accessible key/value list :(
@Aleborg in your case you need to wrap the templating code by {% raw %}
I'm curious @mcholcha, where did you read about not being able to use states or attributes?
When using lovelace_gen in a yaml file the all templating stops working.
states
,state_attr
etc HA, HACS, lovelace_gen, auto-entities etc is all up2date with the latest versions.Working:
Not working:
Error: