# Trigger Delay

**URL:** <https://community.homey.app/t/trigger-delay/1658>\
**Category:** Questions & Help\
**Created:** [September 14, 2018, 8:31am UTC](https://community.homey.app/t/trigger-delay/1658 "2018-09-14T08:31:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pooyan67](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pooyan67/32/7834_2.png) [@Pooyan67](https://community.homey.app/u/Pooyan67)\
**Post date:** [September 14, 2018, 8:31am UTC](https://community.homey.app/t/trigger-delay/1658/1 "2018-09-14T08:31:27Z")

</div>

Hi,

Anyone knows how to add a delay to a trigger in a flow?

I have a Telldus Magnetic Sensor switch at a door and a Vision Garage Door Detector and when they trigger I want the flow to wait for a certain amount of time (e.g. 3 minutes) before the flow continues and send me a push notification. But only if the sensor is still open, if I have closed the garage door during that delay time the flow should not send the notification.

The idea with this flow is just to send me a notification that someone forgot to close the Garage door and I don’t want a notification each and every time it opens.

BR /// Per-Erik

---

<div class="post-metadata">

**Author:** ![Maikel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/maikel/32/12410_2.png) [@Maikel](https://community.homey.app/u/Maikel)\
**Post date:** [September 14, 2018, 8:45am UTC](https://community.homey.app/t/trigger-delay/1658/2 "2018-09-14T08:45:58Z")

</div>

You need two flows for this:

1. When the door sensor triggers, then start countdown timer (this is an app in the store)
2. When countdown timer is empty, and sensor is open, then send notification

You might need a third flow, like flow 1, but for the other sensor.  
Also, I’m not sure if you can check the state of the sensor in flow 2. If not, you need to create another flow for when the door closes and then stop the countdown timer.

---

<div class="post-metadata">

**Author:** ![Pooyan67](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pooyan67/32/7834_2.png) [@Pooyan67](https://community.homey.app/u/Pooyan67)\
**Post date:** [September 14, 2018, 9:28am UTC](https://community.homey.app/t/trigger-delay/1658/3 "2018-09-14T09:28:59Z")

</div>

Thanks for the quick response, I got it to work according to your instruction. 😃

---

<div class="post-metadata">

**Author:** ![Sebastien\_Simonet](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sebastien_simonet/32/30000_2.png) [@Sebastien\_Simonet](https://community.homey.app/u/Sebastien_Simonet)\
**Post date:** [January 9, 2021, 4:07pm UTC](https://community.homey.app/t/trigger-delay/1658/4 "2021-01-09T16:07:02Z")

</div>

Hi, I’m new on Homey and i follow your instructions but i have a little difference.  
I have actually 6 sensor door/window and i want to get the device name on my notification.

Is it possible to manage all my devices with only these 2 flows or i need 1 counter per sensor, so 2 flows per sensor ?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [January 9, 2021, 8:33pm UTC](https://community.homey.app/t/trigger-delay/1658/5 "2021-01-09T20:33:00Z")

</div>

Each sensor needs one flow to trigger a timer start. If you put the name in a variable in each of these flows, you could do with one flow for the message, where you use the variable as the name.

However, if multiple doors open before the message is given, you will only get the last message. If this is not acceptable, then all six need their own timer and message flow. In that case you do not use a variable.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [January 9, 2021, 8:45pm UTC](https://community.homey.app/t/trigger-delay/1658/6 "2021-01-09T20:45:03Z")

</div>

> [@Edwin\_D](#):
>
> Each sensor needs one flow to trigger a timer start.

 ![chrome_2021-01-09_21-44-34](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a26b6ce6be88887536540aa0e231e34dbe4b8ee8.png)

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [January 10, 2021, 12:39pm UTC](https://community.homey.app/t/trigger-delay/1658/7 "2021-01-10T12:39:00Z")

</div>

I stand corrected​:+1:, al beit my diswasher door would start sending messages as well 😀, but that can be prevented with and and clause.
