Templates in conditional cards

I have a number of dynamic cards that should be shown based on the state of one or more entities. The problem is that, depending on the circumstances, the list of entities is dynamic. At some point there might be three entities, other points might be five entities, and at some of the points might be one. And I need to check that at least one of those is in the state on. Incidentally, the list of entities to check in question is actually created by a Jinja template.

Now, I could repeat the same template inside of a template binary sensor and use that binary sensor to conditionalize whether the card displays or not. But that seems silly, redundant and error-prone. Hence, I would like to have the possibility for a card to show conditionally based on the same template I’m using inside the card.

In sum, I would like to have the ability to have conditions that are templates under the conditional tab of whether a car shows up or not.

Hello Rudd-O,

This appears to be a Frontend Related Feature Request as it is asking for changes to Frontend Menus, Dashboards, Cards, or Sections.

These Feature Requests are handled in a different system, and will not be seen by the right people if posted in the HA forums.

Please add your Feature Request into GitHub here:
home-assistant/frontend Other Feature Requests · Discussions · GitHub.

See more info about Feature Requests HERE