I am using an advanced flow to detect when my Aqara FP2 sensors no longer detect presence in the bedroom and the office, then turn off the bedroom lights. This works fine when I use the bedroom sensor alone, but if I add an “all” statement and add the office sensor too, it does not turn off the lights even with the sensors both show “absence” because they have to happen at the same time. What is a good way to structure this action happening when both sensors don’t show presence? I cannot figure out the most efficient way to perform this. Appreciate your insights!
How to setup a flow when you want two events to be true (at NOT the exact same time)
Events happen (in a split second), and never become true… within what time dow tou think that should work two events before an ALL operator, 1 second? 1 minute? one month?
Always use one (1) Trigger with a CONDITION (And… Card)other state of the other,
Trigger: “Zone 0 became free”
AND “motion Alarm IS OFF”
THEN …
Trigger: “Motion Turned Off”
AND “Zone 0 IS Free”
THEN …
or combine them:
Trigger: “Zone 0 became free”
Trigger: “Motion Turned Off”
=> ANY
AND “motion Alarm IS OFF”
AND “Zone 0 IS Free”
THEN …
Hi @EE_PE_Savage ,
Here is a general Testflow how it is created when you have several conditions and want to get the flow run, when all conditions are met.
You have to get used to it, but that is how you handle incident driven flows as efficient as possible.
Thanks for the help and recommendations everyone! That makes sense and I will set them up like that.
I was able to use the guidance to figure out how to get it to work. However, it brought up another related question. Why are the zone cards that show up under “AND” only an option for when a zone is active and not also when a zone is inactive?
Interesting, trying to look for the invert but that isn’t on my version. Then I realized with the AND card that you can make a path for true or it being false which would have the same result as inactive. Maybe a region difference, but you helped me figure it out either way. Thank you!
The example of @Dijker is from standard flows
Your example card is from advanced flows.
That one has two ‘outputs’ on the right hand side;
- The top one, which is blue, gets activated when the zone is active (the condition = true)
- The lower one, which is orange, gets activated when the zone is not active (the condition = false)
Interesting info:
Im addition to Peter, you can rightclick the flow card and you will find the invert option in the context menu.