# Alarm after some time

**URL:** <https://community.homey.app/t/alarm-after-some-time/85565>\
**Category:** Questions & Help\
**Created:** [July 31, 2023, 7:15am UTC](https://community.homey.app/t/alarm-after-some-time/85565 "2023-07-31T07:15:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/skal/32/57948_2.png) [@Skal](https://community.homey.app/u/Skal)\
**Post date:** [July 31, 2023, 7:15am UTC](https://community.homey.app/t/alarm-after-some-time/85565/1 "2023-07-31T07:15:43Z")

</div>

Hi all,  
I would like to set an alarm if a door is open for some time.  
I have a sensor on the door, but I don’t want to trigger it whe the door is open, but only if it is open after 1 min.  
the door sensor is the tuya zigbee sensor. the following are the only options i get for the sensor ☹

 ![immagine](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/1/d198ad5a5561b439b22faf6d1cd3b265960f78b9.png)

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [July 31, 2023, 8:34am UTC](https://community.homey.app/t/alarm-after-some-time/85565/2 "2023-07-31T08:34:24Z")

</div>

You must use the Countdown app.  
Opening the door starts a 60-second countdown timer in the first flow.  
The 2nd flow is triggered when the timer has expired. It checks as an “and-condition” whether the door is still open and then sounds the alarm.

---

<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:** [July 31, 2023, 10:42am UTC](https://community.homey.app/t/alarm-after-some-time/85565/3 "2023-07-31T10:42:04Z")

</div>

> [@Skal](#):
>
> I have a sensor on the door, but I don’t want to trigger it whe the door is open, but only if it is open after 1 min.

The “contact alarm” of a door/window sensor (hardware) is always triggered immediately as soon as a window or a door is opened or closed. That’s just how a door/window sensor works. So it’s not possible to delay this “contact alarm” on the device side.

If you want something to be done 1 minute after the door is opened (e.g. a notification or an “real” alarm signal or whatever), then you have to create a flow for it and add a delay, e.g. with the Countdown app that @Undertaker already mentioned.

---

<div class="post-metadata">

**Author:** ![Skal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/skal/32/57948_2.png) [@Skal](https://community.homey.app/u/Skal)\
**Post date:** [July 31, 2023, 10:58am UTC](https://community.homey.app/t/alarm-after-some-time/85565/4 "2023-07-31T10:58:35Z")

</div>

I was thinking about something that could check that that doorsensor is active for 1 min no-stop.  
If I put a countdown for 1 min is not what I want. Beacuse the door could be open in the time0 and the time0+1m but close in the rest of the time…  
Hope do be clear what I mean

---

<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:** [July 31, 2023, 11:28am UTC](https://community.homey.app/t/alarm-after-some-time/85565/5 "2023-07-31T11:28:20Z")

</div>

I guess I understand you. So the basic flow is what @Undertaker already wrote, but a third flow is needed.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/6/56b011ae1252c5fd6273a486d94bc13c25560602.png)  
(Sorry, only in German language)

So if the door is closed within the 1 minute, the timer will be stopped and no action will be started.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 31, 2023, 3:20pm UTC](https://community.homey.app/t/alarm-after-some-time/85565/6 "2023-07-31T15:20:09Z")

</div>

This is also a nice, simple and clean trigger card:

 ![Screenshot_20230731-171710_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/1854bd6fd8d357a3f2f4786df3f13ccc738d8466.jpeg)

This will trigger the flow, when contact “deur badkamer” is open for 1 minute

---

<div class="post-metadata">

**Author:** ![Skal](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/skal/32/57948_2.png) [@Skal](https://community.homey.app/u/Skal)\
**Post date:** [July 31, 2023, 3:22pm UTC](https://community.homey.app/t/alarm-after-some-time/85565/7 "2023-07-31T15:22:01Z")

</div>

Danke sehr 😉 , this is a good solution to what I was looking for!

---

<div class="post-metadata">

**Author:** ![JnJ\_Stanley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jnj_stanley/32/80641_2.png) [@JnJ\_Stanley](https://community.homey.app/u/JnJ_Stanley)\
**Post date:** [August 10, 2024, 1:04pm UTC](https://community.homey.app/t/alarm-after-some-time/85565/8 "2024-08-10T13:04:51Z")

</div>

Hi Peter. I have a similar question. I have Zooz window sensors. I am trying to use Heimdall as an alarm. I like my air conditioning to turn off if a window or door is left open for 10 minutes or more. If i just use zooz devices it seems like i have to write a flow for each window or door. I can’t figure out how to do it using Heimdall (yet). I am still new at this and figuring things out. Seems like I should be able to write 1 flow for any window or door left open. Any suggestions? thanks

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 10, 2024, 2:52pm UTC](https://community.homey.app/t/alarm-after-some-time/85565/9 "2024-08-10T14:52:15Z")

</div>

Hi John and Jacque,

Here’s a flow, and a device  
With the ‘one or more’ windows/doors are open’ and ‘all windows/doors are closed’ status, you can trigger flows for your airco unit!

> [@Share Your Device! - Advanced Virtual Devices from Device Capabilities](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676/88):
>
> Master Doors and Windows status indicator This device + accompanying flow shows the status of 3 door/window sensors. It’s off and shows 0 #Open when all are closed It’s on and shows 1 #Open when 1 is opened It’s on and shows 2 #Open when 2 are opened and so forth Device tile: All contact sensors overview in the device settings: Flow: Apps …

When you rather use Heimdall,  
For Heimdall there’s extensive examples in the app topic:

> [@Heimdall - Let Homey watch over your home](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134):
>
> This app enables you to use your Homey as a surveillance system. Supported languagesnetherlands Dutch uk English de German fr French it Italian sweden Swedish norway Norwegian es Spanish denmark Danish Links App Store: [Heimdall | Homey](https://apps.athom.com/app/com.uc.heimdall) Github: [GitHub - daneedk/com.uc.heimdall: Heimdall for Homey](https://github.com/daneedk/com.uc.heimdall) issues: [GitHub · Where software is built](https://github.com/daneedk/com.uc.heimdall/issues) FAQ: [Heimdall - Let Homey watch over your home - #2 by DaneedeKruyff](https://community.homey.app/t/134/2) Change log: [Heimdall - Let Homey watch over your home …](https://community.homey.app/t/134/3)

---

<div class="post-metadata">

**Author:** ![JnJ\_Stanley](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jnj_stanley/32/80641_2.png) [@JnJ\_Stanley](https://community.homey.app/u/JnJ_Stanley)\
**Post date:** [August 10, 2024, 3:16pm UTC](https://community.homey.app/t/alarm-after-some-time/85565/10 "2024-08-10T15:16:02Z")

</div>

Thank you so much for your response. I have been in Heimdall but I just can’t seem to get the right cards to make things work …yet. I have been reading the thread you posted, there are just so many comments to go through. I still have a little time before my new home is finished and I get all my devices installed so plenty of time to learn more. Thanks again!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [August 10, 2024, 3:28pm UTC](https://community.homey.app/t/alarm-after-some-time/85565/11 "2024-08-10T15:28:01Z")

</div>

YW!

When you follow the first link, you should only get to view the post my idea is about, the topic itself is full of other shared flows & ideas

> ![Screenshot from 2024-08-10 17-25-20](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/7/57c6db91cf87bc354941f6b739ffb0ac1f2f5255.png)
