# How to setup a flow when you want two events to be true (at NOT the exact same time)

**URL:** <https://community.homey.app/t/how-to-setup-a-flow-when-you-want-two-events-to-be-true-at-not-the-exact-same-time/118354>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [October 17, 2024, 3:57am UTC](https://community.homey.app/t/how-to-setup-a-flow-when-you-want-two-events-to-be-true-at-not-the-exact-same-time/118354 "2024-10-17T03:57:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [October 17, 2024, 5:03am UTC](https://community.homey.app/t/how-to-setup-a-flow-when-you-want-two-events-to-be-true-at-not-the-exact-same-time/118354/2 "2024-10-17T05:03:25Z")

</div>

> 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?

> [@\[FAQ\]\[Advanced Flow\] Infinite canvas. Infinite creativity](https://community.homey.app/t/faq-advanced-flow-infinite-canvas-infinite-creativity/65145/1):
>
> **Two triggers to start an ALL**  
> Also applies to all other different **triggers** b̶e̶h̶i̶n̶d̶ before an ALL like “Someone came Home” AND “the door is opened” =\> That is NOT going to trigger NEVER!
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/7/07b8f61c91489578e20195bfa91712a476494fa6.png)
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/c/5ce7fe8ecf7cbaa4b6e5f3c4a233fd2cb7aed23a.png)
> 
> That only works with an ANY function!
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/2/420567c7468661153418eba849205bc8fcac2410.png)
> 
> **Multiple _triggers_ (\< ANY \>) for a Condition/Action in One Trigger**  
> By design within one Trigger, all cards can start (Maximum) one time,

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 …

---

_[View the full topic](https://community.homey.app/t/how-to-setup-a-flow-when-you-want-two-events-to-be-true-at-not-the-exact-same-time/118354)._
