# Advance flow suggestions

**URL:** <https://community.homey.app/t/advance-flow-suggestions/129925>\
**Category:** Flows\
**Created:** [February 6, 2025, 7:00pm UTC](https://community.homey.app/t/advance-flow-suggestions/129925 "2025-02-06T19:00:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LasseRy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lassery/32/104532_2.png) [@LasseRy](https://community.homey.app/u/LasseRy)\
**Post date:** [February 6, 2025, 7:00pm UTC](https://community.homey.app/t/advance-flow-suggestions/129925/1 "2025-02-06T19:00:23Z")

</div>

Hi, Like to have some suggestion how to do this.

A room with 3 motion detection that I want to keep the light on when motion is present and with no motion it will turn lights off after 2min. And if the door is closed (door sensor) the light should be on as long as the door is closed. but when the door is opened again and no motion is detected the light should turn off after 2min. Thanks

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [February 6, 2025, 9:18pm UTC](https://community.homey.app/t/advance-flow-suggestions/129925/2 "2025-02-06T21:18:07Z")

</div>

I would use the Chronograph app timer to do the following:

WHEN  
Motion sensor 1 detects motion  
Or Motion sensor 2 detects motion  
Or Motion sensor 3 detects motion  
Or door opens  
THEN  
Start timer 2 minutes

WHEN  
timer is started  
AND  
door is open  
light is off  
THEN  
Turn light on

WHEN  
timer ends  
AND  
door is open  
THEN  
turn light off

WHEN  
Door is closed  
THEN  
stop timer

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [February 6, 2025, 10:36pm UTC](https://community.homey.app/t/advance-flow-suggestions/129925/3 "2025-02-06T22:36:55Z")

</div>

I would use zone activity. However you have to invert the state of the door sensor. Maybe that is an option on the hardware device or the software device. Or you can make virtual device to reflect the inverse state of the sensor.

---

<div class="post-metadata">

**Author:** ![LasseRy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/lassery/32/104532_2.png) [@LasseRy](https://community.homey.app/u/LasseRy)\
**Post date:** [February 12, 2025, 9:56pm UTC](https://community.homey.app/t/advance-flow-suggestions/129925/4 "2025-02-12T21:56:01Z")

</div>

Here is how I did (door sensor inverse) - thanks for your help.

 ![Screenshot 2025-02-12 at 22.52.54](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/4/f4826eb3314264f6b9e7053be634f644f4514676.png)

---

<div class="post-metadata">

**Author:** ![dsdevries](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dsdevries/32/80220_2.png) [@dsdevries](https://community.homey.app/u/dsdevries)\
**Post date:** [October 14, 2025, 10:14am UTC](https://community.homey.app/t/advance-flow-suggestions/129925/5 "2025-10-14T10:14:08Z")

</div>

@LasseRy  
Did you figured it out yet?  
I think I would also follow @Rmb ‘s advice and use the Zone Activity App for this. I just wrote a tutorial on how I implemented in my setup with one motion sensor in one zone, but you can easily extend this with multiple sensors and adjust timings. Hope this helps:

> [@\[HOW TO\] Gain full control over Zone Activity using Motion Sensors (PIR) and Virtual Motion Triggers](https://community.homey.app/t/advanced-flow-for-full-control-over-zone-activity-using-motion-sensors-pir-and-virtual-motion-triggers/144082):
>
> Introduction This is not a guide on how to implement a specific use case, but rather a framework that will give you full control over zone activity. Many flows like turning on/off lights could be done much simpler. However, when my personal flows became more complex, I ran into a lot of caveats and quirks that caused me to rethink how I work with motion sensors. I came up with this system which allowed me to solve all the bugs I ran into and I would like to share it with all of you. The problem…
