Triggers or conditions on a subset of "AND" - IE, two out of five conditions are met

Say I would like to make an automation that has ten conditions, and should trigger or execute when more than one condition - but not all conditions - are met. Is that possible without a big table of nested and/or/and/or statements?

This could be for error checking (multiple incompatible outputs are simultaneously on) or for something like building a pressure function (IE, each individual condition contributes execution pressure, and there is a pressure threshold above 1).

This sounds like a template condition.

Wouldn’t that mean manually writing a template with a bunch of nested and/or/and/or statements, or is there a utility within templates that makes this convenient?

No, you can nest conditions in a list and check the number of true statements.

E.g.

{% set condition1 = ... %}
{% set condition2 = ... %}
{{ [condition1, condition2, ...] | select('eq','true') | list | count > 1 }}

Thanks. It seems you’ve edited the code in the post a bit, but I used this in a template condition:

      {% set entities = [
        'sensor.name',
        'sensor.name',] %}
      {{ entities | map('states') | select('==', 'on') | list | count >= 2 }}

Seems to do the trick

if they are all binary sensors, then yes you can do that. I’d likely use this instead

      {% set entities = [
        'binary_sensor.name',
        'binary_sensor.name',] %}
      {{ entities | select('is_state', 'on') | list | count >= 2 }}