A couple days ago I tried to show some cards only if the current user in a certain zone. That way, when I’m at my local supermarket the shopping list card could be at a very prominent spot in my dashboard.
However, if it’s me who is in the supermarket, the sopping list should not show up for my wife who’s at home or at work.
Because there can be more than 1 user logged in at a time, and a single user can be logged in more than once as well. For example, I’m logged into HA at all times via 3 deices, my wife is logged in at all times via 2 devices.
It depends on the device. In my phone, the current logged user would be me. In my wife’s phone it would be my wife. On my laptop it would also be me, just like in my phone.
This is not like browser_mod in the sense that I don’t care about the device or browser itself, but about the logged user.
Maybe sensor is not the right abstraction as sensors are “backend” properties (probably not the right terminology, sorry), but perhaps a “UI property” signalling the current user/person would be a better name.
However, correct me if I’m wrong, if I have a fairly complex dashboard, I’d have to completely duplicate a yaml with well over a thousand lines just to add one different user-conditional card for each user, and then worry about keeping both views in sync moving on as I continue to make improvements.
I’m not sure I got that last comment. If you have a single view for everyone you can’t have cards only visible to certain users (and/or under certain conditions), can you?
Earlier this year I was looking for a solution for this exact same issue. The conditional card is not a great card. Can’t have it pass/fail by user, no OR conditions, etc. Long Story short, I found the state-switch card in HACS can show different cards by user, but I still think the conditional card should support this.