Hi all. Is it possible to, in the if function, to make an or function. Or is it only possible in advanced flow?
Yes it is possible in normal flows. Select the condition and hold it for a while, then the OR part will appear and move the condition to the OR part.
Now i have tried on both the phone and computer, but it is not working for me in the âwhenâ part to do a OR function
Hilsen Claus Jacobsen
I I understand the question correct,
There is only 1 IF
IF
AND - OR
THEN - OTHER
An OR in the when column is what a 2nd or 3rd flow is. (Thatâs why there is a âduplicate flowâ option).
Multiple triggers is not possible in a single regular flow (not just a choice from Athom to not implement it, but how flows in Homey are written/designed in general).
The first (and only) implementation they ever could add to add support for âmulti triggersâ for normal flows is the device flow card like â[any] alarm turned onâ.
the way I would approach it (in advanced flows), not sure if you could duplicate it in the normal flows:
The any is then triggered in and/or. pure or mode would be (I think):
No not like this. Like.
When motion is on, or somebody open the door,Then something happens
In standard flow, this is only possible by using an advanced virtual device as flow trigger.
This virtual device can take multiple sensors, and it triggers the flow on any of those sensorsâ trigger.
Example for a motion and a contact sensor:
But that is a state, not an event, and as such not possible to use as a trigger.
It is not IF but WHEN, as the flow does not start with a condition but with an event. A condition can last for hours as an event is very momentarily.
Using the right words seems a little superfluous, but as you can see in this thread, all sort of concepts are mixed up.
@Rmb The OP asked âIs it possible to, in the if function, to make an or functionâ
As I read it, he asked if it is possible to make a OR function in the IF position.
And in the IF position there is only 1.
In the Dutch flows there are:
ALS
EN
DAN.
If you change the language to English, you will see that there is no âIFâ section but a WHENâ section in the normal flow. I already complaint to Athom that âALSâ is a poor translation of âWHENâ. When you translate âALSâ back to English, it should be âWHENâ.
So the question of the topic starter is quite confusing.
That is way I made an example of the flow using all possibilities in the section.
My question is if it is possible with more than one âIfâ in standard flow
Hilsen Claus Jacobsen
No,
standard flows have only one trigger (card).
Maybe better to adjust the title of the topic to what tour actual question is.
The confusion is because you use the word âifâ which, as @Rmb has pointed out, doesnât exist in a standard Flow. So in English the word âifâ could mean the When or And section. So to get an accurate answer you need to state which section you mean, as in When or And.
And if you translate the word IF in a translate tool the outcome is ALS.
So the translation of an app is not that easy to make it easy for everyone.