-
I want to use this card:
And print inside name a string with the user logged name for example:
but seems not working, is that possible? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
You can either add a string or a template to the key. But a template can also include a string. name: "[[[ return 'Hello ' + user.name ]]] |
Beta Was this translation helpful? Give feedback.
-
@basbruss Thank you for the answer, yes in that way works, but I found several example online in which they use this for example: {{ user.name }} but doesn't work, for example here what is the difference? what are those template in home assistant menu? |
Beta Was this translation helpful? Give feedback.
-
@basbruss thank you very much for the explanation, when I can know what template use? |
Beta Was this translation helpful? Give feedback.
-
Ok now I understand, this is the right:
or
I missed completely this: https://github.com/custom-cards/button-card#javascript-templates Thank you very much @basbruss |
Beta Was this translation helpful? Give feedback.
You can either add a string or a template to the key. But a template can also include a string.
So have you tried this?