While OR future is not yet available to condition cards, there is a work around to get this functionality Basically all you need to do is to make a binary sensor by putting the below code in your configuration.yaml file
Your solution is great, but it was already mentioned as a solution in the very beginning of this thread two years ago.
I want to highlight that this thread is about making it clear to HA devs that we would appreciate having native support for more complex conditionals without requiring setting up a binary template sensor.
Still not enough I think. I want to display a card if any one of my alerts is not idle (can also be on or off): ( x != idle OR y != idle OR z != idle )
If I only can use AND instead of OR I would need to negate the whole expression: !( x = idle AND y = idle AND z = idle )
But the condition card doesnât support to negate the whole expression.
+1 here.
I just went to set up a conditional card with an OR condition, and found out it wasnât available.
I have no problems doing a workaround, but this should be something native on the card.
+1 - simple use case: Include a testing flag with every conditional, so that I can easily turn on all conditionals. I am using a whole lot of conditional to only show problems/infos/warnings and this would be helpful for testing
Iâve tried all variations so far mentioned above.
I have multiple entities I want to monitor and jus have one conditional card if any are not what they should be. Some entities would normally show connected, on, available or whatever else and the opposite when something is wrong.
I solved this using Switch helper âinput_booleanâ and automation script with various conditions switching the helper. Helper can be used as condition in Conditional CardâŠ
You can define any complex criteria using automation script - any variation of condition. Input_boolean is just middle man to show or hide the card. And you still can use entity filter card. In my use I am able to set to show card in case of any water sensor is not âoffâ and only ânot_offâ sensors are shown. So it includes also âunavailableâ, âonâ, âunknownâ situations.
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