NOT User conditional card?

In going through the docs on Conditional cards (below), I see the option to show a card based on a specific user. I have over 10 users and would like that card visible to all users except one. I know I can list all users in the condition minus that one user, but was trying to avoid that. Specifically if I have to add additional users. Thoughts?

A possible way:

  1. Create a template binary sensor which is OFF if a “user” is some “xyz”.
  2. Use this sensor in a Conditional card.

Hmm…how would this work? At what point would the sensor be off?

Hmm, this is not that easy.
Meant to use a “user” variable - but it only works in UI:

изображение

i.e. we cannot use it on a server side to create a template sensor.

Since the standard Conditional card does not support templates - consider using a custom state-switch card with a template like

{{ user != 'ildar' }}

Another option could be using card-mod like

type: any card
...
card_mod:
  style:
    ha-card {
      {% if user != ... -%}
      display: none;
      {%- endif %}
    }

but then you might see an extra vertical margin between cards if this card is hidden.

Will either of these options work with a Mushroon chip card? What I’m trying to do is reduce the amount of dashboards I have. Meaning, right now I have several wall tablets for every room each with their own dashboard & user. I’m trying to go down to a single (or small number of dashboards with several shared views) and only display certain cards based on the user of that wall tablet. Many of the cards will be common, but what will change is the cards for the room lights as well as the Mushroom Back chip card (only appear if NOT the current tablet/room user). Thoughts?

Worth trying.

Did you have results ?

Not 100%. I ended up using the state-switch card as @Ildar_Gabdullin suggested for one dashboard for four users and having a separate dashboard for shared common cards (e.g. living room, kitchen etc).