So basically you can use {{ user }} in place of a name like John or Elizabeth… whoever comes through the door and triggers an automation using a name it’ll replace it with whoever the person is?
Not exactly. It’s more something you would use as a greeting on a dashboard. It displays who is logged in on that particular device. So it could be used in a template card as a greeting on your dashboard.
Hello,
So how to use this {{user}} in javascript templates in custom:button-card? I would like to tweak a little bit styling or maybe even add {{user}} name on the button content.
Custom Button card supports javascript only, not jinja2. In addition, you can’t template the user from my understanding so there are limited options if you want to use the Button Card
The custom_fields: in the Button card will accept other card types that will allow the use of {{user}}.