# Motion based flow help

**URL:** <https://community.homey.app/t/motion-based-flow-help/33490>\
**Category:** Questions & Help\
**Created:** [August 11, 2020, 1:33pm UTC](https://community.homey.app/t/motion-based-flow-help/33490 "2020-08-11T13:33:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tommo/32/16506_2.png) [@tommo](https://community.homey.app/u/tommo)\
**Post date:** [August 11, 2020, 1:33pm UTC](https://community.homey.app/t/motion-based-flow-help/33490/1 "2020-08-11T13:33:18Z")

</div>

Hello  
I am looking for some help with setting up a flow. I have a motion sensor in the bedroom and a motion sensor in the bathroom. I would like for the motion sensor in the bedroom to switch on the light in the bathroom but if after 30 seconds no motion is detected in the bathroom then switch the light off. If within that 30sec motion is detected in the bathroom that the light should start on until no more motion is detected.

Any ideas

Thanks

---

<div class="post-metadata">

**Author:** ![Igy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/igy/32/22144_2.png) [@Igy](https://community.homey.app/u/Igy)\
**Post date:** [August 11, 2020, 1:45pm UTC](https://community.homey.app/t/motion-based-flow-help/33490/2 "2020-08-11T13:45:55Z")

</div>

Do it in combination with timers.  
1st flow: Motion in bedroom detected, turn on bathroom light and start 30sec timer.  
2nd flow: Motion in bathroom detected, stop timer.  
3rd flow: When timer reached 0, turn off bathroom light.

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [August 11, 2020, 1:53pm UTC](https://community.homey.app/t/motion-based-flow-help/33490/3 "2020-08-11T13:53:25Z")

</div>

FLOW Bathroom on with timer  
WHEN motion sensor bedroom goes on  
THEN light bathroom on  
Start Timer bathroom 30 sec  
Disable flow Bathroom on with timer

FLOW Bathroom off  
WHEN timer bathroom is empty  
AND motion sensor bathroom is off  
THEN lights bathroom off  
Enable flow bathroom on with timer

WHEN motion sensor bathroom goes off  
AND timer bathroom is empty  
THEN turn light bathroom off  
Enable flow bathroom on with timer

---

<div class="post-metadata">

**Author:** ![tommo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tommo/32/16506_2.png) [@tommo](https://community.homey.app/u/tommo)\
**Post date:** [August 11, 2020, 2:03pm UTC](https://community.homey.app/t/motion-based-flow-help/33490/4 "2020-08-11T14:03:15Z")

</div>

Thanks so much for the quick response.

---

<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:** [August 11, 2020, 7:08pm UTC](https://community.homey.app/t/motion-based-flow-help/33490/5 "2020-08-11T19:08:34Z")

</div>

Let’s re-invent [the wheel](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889) again!

---

<div class="post-metadata">

**Author:** ![tommo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tommo/32/16506_2.png) [@tommo](https://community.homey.app/u/tommo)\
**Post date:** [August 11, 2020, 10:18pm UTC](https://community.homey.app/t/motion-based-flow-help/33490/6 "2020-08-11T22:18:55Z")

</div>

Even with your passive aggressiveness you still provided a link. Thanks
