hello I need help, I’m trying to make a card on the panel with an automation, in it I use the entity field and I’m trying to change the person according to the connected profile
Is there a way for the dashboard to identify which user is logged in? if so how would i do that, currently i tried this code but it didn’t work
the version that works is for another function(badge_icon), for the version i’m currently trying (entity) it doesn’t work for the automation i’m trying
What do you need it for?
The reason for asking is that “Logged in” is only really needed if you want to sent a notification to the person.
If you just want to know who is home, then the person or device_tracker entities is better, since an user being away and connected remotely would still be logged in.
this only works for a specific user, my idea is to make a card that corresponds to the person who is logged in on the lovlance screen
making the card dependent on who is viewing it, making it show information about who is currently viewing it
When I view it with one of my users I get the information for that user and when I view it with another user then I get that users information.
Could it be your browser cache? Try to click refresh (or F5) with CTRL or Shift held down.
I still don’t think you understand what I’m trying to do, I understand that it’s possible to do it this way for an entity,
but I don’t want to do it for just one entity, I’m trying to make a card for all entities/person so that the person who is seeing the card 1 will see the name of the person who is seeing it, for example lucas, then the name lucas and his statuses, but if the person you are looking at is renato then renato will appear and his statuses and not lucas do you understand?
right with this code you put all the users and status on the screen, but as i said i’m trying to put only, literally just the user who is watching the panel, like this: lucas accessing panel = card: lucas and lucas status and by example lucas’ phone battery, now renato is also accessing it from his phone so the panel shows him like this = card: Renato and renato status and following the previous example renato’s phone battery but it could be other related information to the user who is viewing, but the idea is not to show all users at once, but only the one who is accessing, understand?
But this one will show the values for just the user logged into that view.
If Renato logs in then it will show Renato’s values.
If Lucas logs in then it will show Lucas’ values.