# How long does "And" wait for trigger after "When"?

**URL:** <https://community.homey.app/t/how-long-does-and-wait-for-trigger-after-when/86132>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro\
**Created:** [August 4, 2023, 1:51pm UTC](https://community.homey.app/t/how-long-does-and-wait-for-trigger-after-when/86132 "2023-08-04T13:51:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas\_Nikolai](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_nikolai/32/79470_2.png) [@Andreas\_Nikolai](https://community.homey.app/u/Andreas_Nikolai)\
**Post date:** [August 4, 2023, 1:51pm UTC](https://community.homey.app/t/how-long-does-and-wait-for-trigger-after-when/86132/1 "2023-08-04T13:51:13Z")

</div>

Hi 🙂  
Got my homey pro two weeks ago and so far I’m loving it and its possibilities.  
This may be a stupid question but anyways:

How long does “And” wait for trigger after “When” in a flow?

Example:  
"WHEN my car comes home

AND my door sensor is open

THEN turn on lights"

Will it wait forever or is there a “timeout” if the AND does not happen after a while?

If it waits forever then as long as my car is home the “AND” will be the trigger?

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [August 4, 2023, 2:01pm UTC](https://community.homey.app/t/how-long-does-and-wait-for-trigger-after-when/86132/2 "2023-08-04T14:01:50Z")

</div>

“And” doesn’t wait at all.  
If a flow is triggered the conditions (And) are checked immediately. If the conditions are met, the flow continues.

So your flow won’t work unless the door is already open when you get home.

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [August 4, 2023, 2:02pm UTC](https://community.homey.app/t/how-long-does-and-wait-for-trigger-after-when/86132/3 "2023-08-04T14:02:19Z")

</div>

The AND condition is tested immediatly after the WHEN triggers.  
So depending in what lights you want on you could:

When… the door is opened  
And… car is home  
Then… turn lights on.

---

<div class="post-metadata">

**Author:** ![Andreas\_Nikolai](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_nikolai/32/79470_2.png) [@Andreas\_Nikolai](https://community.homey.app/u/Andreas_Nikolai)\
**Post date:** [August 4, 2023, 2:05pm UTC](https://community.homey.app/t/how-long-does-and-wait-for-trigger-after-when/86132/4 "2023-08-04T14:05:47Z")

</div>

Ah that makes sense.  
So how should i make my example work?, is this where the “Chronograph” app comes in?

edit:  
@OH2TH Just told me how, thanks!

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [August 4, 2023, 2:09pm UTC](https://community.homey.app/t/how-long-does-and-wait-for-trigger-after-when/86132/5 "2023-08-04T14:09:45Z")

</div>

Sometimes the solution is simple 😉

---

<div class="post-metadata">

**Author:** ![Sasan\_Khandanpour](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sasan_khandanpour/32/79941_2.png) [@Sasan\_Khandanpour](https://community.homey.app/u/Sasan_Khandanpour)\
**Post date:** [January 13, 2024, 8:49pm UTC](https://community.homey.app/t/how-long-does-and-wait-for-trigger-after-when/86132/6 "2024-01-13T20:49:21Z")

</div>

I have made it with chronograph and variables:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/e/aef753398b6f736f682bbaf5d432247a42325503.png)
