I want to create a combination of cards who alltogether work like a climate-object, but more compact. The entitty shall be stored in a variable which is send to a script. But I receive: “Template rendered invalid entity IDs: {{ heizregler }}”. What am I missing?
Thank you, I was hoping to get something like global variables, but the more I search and read about that topic the more I get confused. I surrender and will fill in the values manually.
That is a purpose of declaring a “global” variable on the layout-card’s level?
First, it is not “global” since you declared for this particular layout-card.
Assume that you need to use this variable in many cards inside the same layout-card - but these variables are only supported inside a custom button-card. And you got only ONE button-card inside this layout-card.
So, the initial purpose of declaring this variable on the layout-card’s level is unclear.
If this variable is only used in that particular button-card - then declare it in this card; and as I said variables are only supported by custom button-cards….
Because you are using a variable inside button-card in a wrong way. Read docs for this card - it has a dedicated chapter for variables.
If some option of button-card supports templates - it should be like:
In your particular case the whole layout card will be a decluttering template, and an input variable will be used inside that button-card.
Yes, a working way as well - if you need SEVERAL same layout-cards with different entities inside the inner button-card.
This is not valid.
Use the previous statement in jinja.
But in button-card you need to use JS to access this attribute and convert to “xxx minutes ago”. The easiest way - use a native option of button-card (find it in Docs).