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.