Grouping of and and or in a flow?

Is there a way of grouping “and” and “or” conditions in flows as I’m trying to illustrate with this pseudo code:

==============
When
- every 5 min

And
dehumidifier is on

(
	humidity < 60
	or
	price of electricity > 1
)

Then
- Turn off dehumidifier
- Send message “dehumidifier turned off”

==============

/Nagrom

Sure. Click and hold the cards in the AND colom and drag them down. U will create the OR part.
So AND dehumidifier is on AND humidity <60
OR dehumidifier is on AND price >1
THEN …

To clarify what Roco said: There is no equivalent for braces. But you can get what you want by repeating “ Dehumidifer is on” on both sides of the or:

And

dehumidifier is on
humidity < 60
or
dehumidifier is on
price of electricity > 1

@Edwin_D, thanks. That’s what I did. But I was hoping I could do away with the repetition.

Sadly, no.

This is what I have:

If you don’t mind multiple flows you could create one flow for the and that calls the flow with the or.

This would be so much nicer:

Thanks @Edwin_D for the quick response. It’s good to know that there is a workaround. But it’s surprising that Homey doesn’t support this kind of grouping of conditions
. This is hardly an edge case.

Thanks @Rocodamelshekima .

1 Like