Hi,
How can I check who is logged in home assistant?
I need something like this:
{% if USSER == 'Lemmy' %}
Yes
{% else %}
No
{% endif %}
Hi,
How can I check who is logged in home assistant?
I need something like this:
{% if USSER == 'Lemmy' %}
Yes
{% else %}
No
{% endif %}
It’s not possible. The backend doesn’t have a this concept as there can be 100s of users logged at the same time (even the same user can be logged into multiple devices).
Ah ok, I understand.
Thank you
However, you can check by which user f.e. a light has been turned on…
trigger.to_state.context.user_id