# Gate is open, send alert... after 30 minutes still open? Send another alert.. How to setup this flow

**URL:** https://community.homey.app/t/gate-is-open-send-alert-after-30-minutes-still-open-send-another-alert-how-to-setup-this-flow/4865
**Category:** Questions & Help
**Created:** [December 3, 2018, 8:34pm UTC](https://community.homey.app/t/gate-is-open-send-alert-after-30-minutes-still-open-send-another-alert-how-to-setup-this-flow/4865 "2018-12-03T20:34:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Wout\_van\_den\_Dool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_van_den_dool/32/391_2.png) [@Wout\_van\_den\_Dool](https://community.homey.app/u/Wout_van_den_Dool)
#### Post date: [December 3, 2018, 8:34pm UTC](https://community.homey.app/t/gate-is-open-send-alert-after-30-minutes-still-open-send-another-alert-how-to-setup-this-flow/4865/1 "2018-12-03T20:34:29Z")

</div>

I’m wondering if there is an easy way to setup this flow with Xiaomi Door Alarm:

1. Gate is open, send alert…
2. After 30 minutes still open? Send different alert…
3. After 60 minutes still open? Send different alert & blink lights

I managed the first flow:

 ![21](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/99983f8c6cc220718ed9545e5f87de5a0cf518dc.png)

Curious what’s the best approach for step 2 & 3

---

<div class="post-metadata">

### Author: ![HTilburgs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/htilburgs/32/12253_2.png) [@HTilburgs](https://community.homey.app/u/HTilburgs)
#### Post date: [December 3, 2018, 8:42pm UTC](https://community.homey.app/t/gate-is-open-send-alert-after-30-minutes-still-open-send-another-alert-how-to-setup-this-flow/4865/2 "2018-12-03T20:42:54Z")

</div>

I have the same thing created for my front and back door

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

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d416a5dd00e3a545a6a0e38c12f84edb115cd903.png)

---

<div class="post-metadata">

### Author: ![seiko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/seiko/32/10963_2.png) [@seiko](https://community.homey.app/u/seiko)
#### Post date: [December 3, 2018, 9:09pm UTC](https://community.homey.app/t/gate-is-open-send-alert-after-30-minutes-still-open-send-another-alert-how-to-setup-this-flow/4865/3 "2018-12-03T21:09:12Z")

</div>

Make a countdown timer Gate

flow 1: IF contact alarm gate goes on THEN start gate timer at 3600 sec AND send Alert 1  
flow 2: IF contact alarm gate goes off THEN stop gate timer  
flow 3: IF gate timer value has changed AND value is exact 1800 sec(logica) THEN send alert 2  
flow 4: IF gate timer value has changed AND value is exact 0 THEN send Alert 3 and whatever.

---

<div class="post-metadata">

### Author: ![Wout\_van\_den\_Dool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_van_den_dool/32/391_2.png) [@Wout\_van\_den\_Dool](https://community.homey.app/u/Wout_van_den_Dool)
#### Post date: [December 3, 2018, 10:04pm UTC](https://community.homey.app/t/gate-is-open-send-alert-after-30-minutes-still-open-send-another-alert-how-to-setup-this-flow/4865/4 "2018-12-03T22:04:49Z")

</div>

Thnks Harm @HTilburgs, which app is the “meldingen” app? Will experiment tomorrow with your approach…

---

<div class="post-metadata">

### Author: ![Wout\_van\_den\_Dool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_van_den_dool/32/391_2.png) [@Wout\_van\_den\_Dool](https://community.homey.app/u/Wout_van_den_Dool)
#### Post date: [December 3, 2018, 10:07pm UTC](https://community.homey.app/t/gate-is-open-send-alert-after-30-minutes-still-open-send-another-alert-how-to-setup-this-flow/4865/5 "2018-12-03T22:07:51Z")

</div>

Thanks Seiko for your prompt response, this approach looks easy, will check this one also!

---

<div class="post-metadata">

### Author: ![HTilburgs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/htilburgs/32/12253_2.png) [@HTilburgs](https://community.homey.app/u/HTilburgs)
#### Post date: [December 3, 2018, 10:15pm UTC](https://community.homey.app/t/gate-is-open-send-alert-after-30-minutes-still-open-send-another-alert-how-to-setup-this-flow/4865/6 "2018-12-03T22:15:52Z")

</div>

Meldingen is just a Virtual Device, so I can turn on/off the messages if I need.

---

<div class="post-metadata">

### Author: ![Wout\_van\_den\_Dool](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wout_van_den_dool/32/391_2.png) [@Wout\_van\_den\_Dool](https://community.homey.app/u/Wout_van_den_Dool)
#### Post date: [December 4, 2018, 7:30pm UTC](https://community.homey.app/t/gate-is-open-send-alert-after-30-minutes-still-open-send-another-alert-how-to-setup-this-flow/4865/7 "2018-12-04T19:30:43Z")

</div>

@Seiko I choosed your approach… 4 flows  
 ![10](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/f90f40e3370171334406a2b6a58c1193ca60ccfe.png)

Installed the [Countdown App](https://apps.athom.com/app/nl.bevlogenheid.countdown) and created 4 flows:

Gate is open:

 ![17](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/0f5c1d2e25807e9afb1fbed377d07927c2fb4004.jpeg)

Gate is closed:

 ![52](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/4/4dccfc9ef9e2dad848d6c03794666d8f55e28766.png)

30 minutes reminder:

 ![47](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d8fd9b2e8726ed37614c3d516236e34f7b590274.jpeg)

60 minutes reminder:

 ![46](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/013ec41993c63c02cbba30c8c78d12e7d3446df7.png)

Tomorrow the Window Washer will visit the house, let’s see how this turns out:-)

**Future plans**  
Closing the gate automatically, therefore I [started a post](https://forum.athom.com/discussion/4721/who-can-create-an-433-or-866-app-for-me-i-miss-some-competences-for-the-last-steps-in-the-process#latest) with an app request… no response so far… ☹ [I should repost it here I guess](https://community.homey.app/t/homey-community-app-requests/2713/20)

In the mean time I bought a [GoGo Gate](https://www.gogogate.eu/Gogogate_2), which I can connect with IFTTT and automate it…

For now, many thanks to @seiko and @HTilburgs
