# Alarm when door/window sensor is opened

**URL:** <https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [October 14, 2024, 6:13pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145 "2024-10-14T18:13:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bear84](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Bear84](https://community.homey.app/u/Bear84)\
**Post date:** [October 14, 2024, 6:13pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145/1 "2024-10-14T18:13:11Z")

</div>

Hi All,

I could use some help setting up an alarm when Aqara door/window opens when nobody is at home. The problem is that I can only select if sensor is ‘On’ (open) or ‘Off’ (closed), but not if it changes from off to on.

So as example how the flow should work;

1. Last person leaves home
2. sensor changes from closed to open
3. send push notification with alarm

Does anybody have this set-up already or can advise how to set it up? Thanks in advance!

---

<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 14, 2024, 6:28pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145/2 "2024-10-14T18:28:09Z")

</div>

Turn it around:

When door is opened  
And nobody is at home  
Send push Alarm…

But you should look at [Heimdall - Let Homey watch over your home](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134)

---

<div class="post-metadata">

**Author:** ![Bear84](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Bear84](https://community.homey.app/u/Bear84)\
**Post date:** [October 14, 2024, 6:38pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145/3 "2024-10-14T18:38:04Z")

</div>

Thanks for helping Dijker. The problem is that I can’t select if it is opened. I can only select open or closed. So; If nobody is home and window is open or closed, I will get a message every time. I only want a message wen it changes from closed to open (or visa versa).

 ![2024-10-14 20_31_05-Homey Pro van Guido](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/a/2a1e19e526af2680da1224a9b0f74d40c3d650b7.png)

I got scared a bit by the Heimdall app as it is 3rd party made and the Homey warning message that Heimdall will get full access to my Homey pro.

 ![2024-10-14 20_33_51-Homey Pro van Guido](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/8/2887ba936f2e99f4cc7458a61c26ba8fb446b91b.png)

---

<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 14, 2024, 6:47pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145/4 "2024-10-14T18:47:36Z")

</div>

> [@Bear84](#):
>
> The problem is that I can’t select if it is opened.

You show a And card…  
My first line is When … not AND!

I don’t have a Matter contact sensor but as you can see on the Appstore every Contact Sensor has an When … “The contact alarm turns on” (aka something like the door/window is Opened.)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/7/97c6ef1c631b90b34ccd0c6f620c325ca6e9e8fe.png)

---

<div class="post-metadata">

**Author:** ![Bear84](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Bear84](https://community.homey.app/u/Bear84)\
**Post date:** [October 14, 2024, 7:20pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145/5 "2024-10-14T19:20:50Z")

</div>

Darn! You’re right!!! I started with presene as when, that’s why I could not get it right!

Thanks a lot!

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

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [October 14, 2024, 7:26pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145/6 "2024-10-14T19:26:18Z")

</div>

Does this actually work: three different triggers in the same flow? In my experience a flow can only have one trigger (and if necessary supplemented with additional criteria via AND cards).

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [October 14, 2024, 7:31pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145/7 "2024-10-14T19:31:12Z")

</div>

No need to be scared, the app needs full access because it needs to be able to read all (motion and contact) sensors regardless of the brand, the app is open source and all apps published to the app store are checked by Athom and I can imagine they check apps that need API access even more thoroughly.

Heimdalls source code: [GitHub - daneedk/com.uc.heimdall: Heimdall for Homey](https://github.com/daneedk/com.uc.heimdall)

---

<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 14, 2024, 7:40pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145/8 "2024-10-14T19:40:49Z")

</div>

> [@SunBeech](#):
>
> n my experience a flow can only have one trigger (and if necessary supplemented with additional criteria via AND cards).

Above works, three triggers this way is an ANY (implicit) only the Explicit ALL with multiple triggers doesn’t work!

> [@\[FAQ\]\[Advanced Flow\] Infinite canvas. Infinite creativity](https://community.homey.app/t/faq-advanced-flow-infinite-canvas-infinite-creativity/65145/1):
>
> **wo 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,

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [October 14, 2024, 8:06pm UTC](https://community.homey.app/t/alarm-when-door-window-sensor-is-opened/118145/9 "2024-10-14T20:06:08Z")

</div>

Ah thanks @Dijker. Did not know that. I tried it before with multiple triggers before an AND join and that did - as you also indicate - not work. So I assumed it was not possible at all. I did not realize that it does work for an ANY join.
