# Xiaomi/Aqara ZigBee door sensor open/close timer functionality!

**URL:** <https://community.homey.app/t/xiaomi-aqara-zigbee-door-sensor-open-close-timer-functionality/11177>\
**Category:** Questions & Help\
**Created:** [March 29, 2019, 7:04pm UTC](https://community.homey.app/t/xiaomi-aqara-zigbee-door-sensor-open-close-timer-functionality/11177 "2019-03-29T19:04:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Senad\_Aruc](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/senad_aruc/32/8221_2.png) [@Senad\_Aruc](https://community.homey.app/u/Senad_Aruc)\
**Post date:** [March 29, 2019, 7:04pm UTC](https://community.homey.app/t/xiaomi-aqara-zigbee-door-sensor-open-close-timer-functionality/11177/1 "2019-03-29T19:04:27Z")

</div>

Dears,

I am using a Sonoff Basic to open my garage door and Xiaomi/Aqara ZigBee door sensor for the door open/close state detection.

So my question is about creating a flow which will trigger the Sonoff Basic if Xiaomi door sensor is ON more than 10 minutes, so I can be sure that kids are not forgetting my garage door open.

Can you please help me with this flow?

Thanks,

---

<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:** [March 29, 2019, 7:23pm UTC](https://community.homey.app/t/xiaomi-aqara-zigbee-door-sensor-open-close-timer-functionality/11177/2 "2019-03-29T19:23:57Z")

</div>

And u did ofc use the search function of this wonderful forums.  
[Here](https://community.homey.app/t/door-open-thermostate-down/11043/2?u=rocodamelshe) is an example of what u need. When u search for “timer” u will get more leads.

---

<div class="post-metadata">

**Author:** ![Senad\_Aruc](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/senad_aruc/32/8221_2.png) [@Senad\_Aruc](https://community.homey.app/u/Senad_Aruc)\
**Post date:** [March 29, 2019, 7:26pm UTC](https://community.homey.app/t/xiaomi-aqara-zigbee-door-sensor-open-close-timer-functionality/11177/3 "2019-03-29T19:26:53Z")

</div>

Thanks but I don’t see any useful info on that treat which can help me, I can’t find the timer function in the FLOWS.

thanks,.

---

<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:** [March 29, 2019, 7:30pm UTC](https://community.homey.app/t/xiaomi-aqara-zigbee-door-sensor-open-close-timer-functionality/11177/4 "2019-03-29T19:30:25Z")

</div>

Ah well. Here is the [timer app](https://apps.athom.com/app/nl.bevlogenheid.countdown).  
And [here](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889) is an explanation on how to create a timer.  
The link on how to use that timer i alr gave u. Ok ok, [here](https://community.homey.app/t/door-open-thermostate-down/11043/2?u=rocodamelshe) it is again.  
Then we make:  
WHEN door sensor is open THEN start a timer for 10 minutes.  
WHEN door sensor is closed THEN stop timer.  
WHEN timer is empty THEN trigger whatever u like, like the Sonof Basic.
