OR + AND conditions for Conditional Card

Yes I can confirm this card basically is what the condition card should be :blush:

Not sure why nobody mentioned it before. Easiest workaround is to define a helper with “group”.
Within the group settings you have the option to set “all entities” (yes/no). With this option you can model the OR condition. All you need to do then is to add the helper as a condition and you got the OR modelled.

However: still +1 obviously, as every work around is just not the same as the actual work :slight_smile:

i think this feature never comes, the request 4 years old ^^

+1!!!

It’s start to change but OR still missing…

+1!!

Trying to make a button only appear if a device is on - issue is, the device has many different reported states when on so, setting an OR list would solve this.

Now I’m going to have to make a separate automation and helper boolean switch that will turn on off depending on the states of the device. Then have the conditional card reference the boolean switch to see if it should be visible or not.

Seems to be a lot of requests for this going back 4 years now.

+1

Just adding to this request since I have tons of Miflora plant sensors around the flat/balcony where I want to keep track of moisture AND battery level, so either of them under a certain threshold should bring up Olen’s flower card.

For that you could avoid the or with the use of state_not, provided you are able to list all the other states.

+1 for ‘or’
(or better yet, template conditions)

+1 for or too from my- The only workaround is now a helper, that simulates the OR and is then the condition in the conditional Card. It would be much easier with an OR … or better template condition).

I wonder, why the latest improvements in this card added/rebuild further options instead of switching to existing condition schema? Just tested it again and do not see the benefit here. But most probably I only miss it.

I can’t believe OR still isn’t available here. A respectful request for it here!

1 Like

+1 miss this a lot!

1 Like

+1 from me - want to show a header if any motion sensor has motion detected

1 Like

+1 want to show a button if weather warnings from different sources exist. Couldn’t believe it couldn’t be done easily!

Guys. Please check the conditional card once again.

I am a newer user to HA, and I fully expected the Conditional card would have a switch to make the condition list ALL or ANY when I tried to use it the first time, as that is how I have seen that designed in other interfaces.

Making a helper is pretty easy, but it still wont work for me: I wanted to group ‘update.’ (not ‘sensor.’) entities, and that is not supported either.

I guess I am stuck waiting for either of these functions to be implemented, unless there is another way.

You can make template binary_sensors that replicate the functionality you want for the time being.

If you need help with that, I can assist, but please make a separate thread.

Also, old school groups (YAML only) have the ability to do this as well.

1 Like

Just bumping into this topic and seeing there are still recent requests to add it. But isn’t this already implemented?

I see an OR condition in the dropdown at the bottom. After playing around with it a bit, it seems to work just fine?

This is on Home Assistant Core 2023.12.3 , not sure when it got added.

2 Likes

Closed as implemented in 2023.12.

e.g.

  - type: conditional
    conditions:
      - condition: or
        conditions:
          - condition: state
            entity: binary_sensor.co_alert
            state: 'on'
          - condition: state
            entity: binary_sensor.rookmelder
            state: 'on'
13 Likes