Conditional card based on or rather than get feature/issue/workaround

My goal is to have a conditional card displayed prominently on a main dashboard that is able to use OR rather than ALL on a list of entities.

An example is to warn me that my Pi hole servers are down, warning on Synology, CPU temp, etc.

At the moment I have multiple conditional cards with card type of button which navigates to a dashboard with all the things I’m monitoring but is there a more efficient way than that, I don’t want to have a dashboard filling up with conditional cards if for instance I have a device/service I’m monitoring that I have down for maintenance for example?

You can create a template binary sensor to handle the OR logic.

Thanks for quick reply, will have more of a look at a template binary sensor option. Will report back, might be a day or so :slight_smile:

Maybe I’m close but not quite working. Below is the code I have used

Template_code

This is a screenshot showing from an integration view I should get the conditional card pop up as 2 of the PiHoles are not contactable via the API and one is but the card does not pop up. The DNS resolve should still work as intended even if the API does not due to my network configuration which it does.

When Home Assistant cannot contact API of all of the PiHole servers the Conditional card pops up as expected

Here is the card when all of the PiHole Servers cannot be contacted via API

Not the greatest method if you need a lot of these cards with different rules