PiotrMachowski / Home-Assistant-Lovelace-HTML-Jinja2-Template-card

This card displays provided Jinja2 template as an HTML content of a card. It uses exactly the same engine as Home Assistant in Developer tools.
MIT License
68 stars 10 forks source link

Cannot get logged in user, {{ user }} does not work #19

Open erbha21 opened 1 year ago

erbha21 commented 1 year ago

In a Markdown card {{ user }} returns the logged in user - great. {{ user }} does not work in this card, yet everything else seems to. What can I use to get the user - {{ hass.user }} doesn't work either. Googled for hours! Everything else seems to work, i.e. states, state_attr etc. If I use {{ user }}, no content renders in the card. Thanks