Add "OR" & "AND" options to Hass.io automation conditions page

I find the hass.io automations GUI quite helpful to quickly get an automation with a trigger and a single condition going, but I soon wanted to add two conditions or three 'OR’d together, but there is no magic button to do that I think :slight_smile:
From further reading I see that I can hand craft the automations script with ‘condition: or’ , but that leads to needing even more knowledge on using correct syntax in there. While yes I’m slowly learning it, it will be a disappointment to other newbies like me too. So if that makes sense could a dev please keep that in mind if revision to that comes up…

In the meantime, great work dev team, I’m telling all my geek friends about HA !

Was trying to do this same thing today and realized it’s not possible from the UI. When I try to manually edit the automations.yaml file to set the condition to ‘or’ and view the automation from the web UI, it shows the following:

Unsupported condition: or
{
  "condition": "or",
  "conditions": [
    {
      "condition": "state",
      "entity_id": "binary_sensor.garage_door_1",
      "state": "on"
    },
    {
      "condition": "state",
      "entity_id": "binary_sensor.garage_door_2",
      "state": "on"
    }
  ]
}

The good news is it still appears to work, but setting it from the web UI would be preferred.

Deleted as misleading.

Actually AND is the default and is used if you add conditions in the GUI. To do OR conditions you have to use the yaml editor.

My bad, I’m thinking of the trigger functions rather than the conditions. I’ll delete my post.