# Help needed with simple motion lights off flow

**URL:** <https://community.homey.app/t/help-needed-with-simple-motion-lights-off-flow/70856>\
**Category:** Flows\
**Created:** [October 19, 2022, 6:18pm UTC](https://community.homey.app/t/help-needed-with-simple-motion-lights-off-flow/70856 "2022-10-19T18:18:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pyrzi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pyrzi/32/53091_2.png) [@Pyrzi](https://community.homey.app/u/Pyrzi)\
**Post date:** [October 19, 2022, 6:18pm UTC](https://community.homey.app/t/help-needed-with-simple-motion-lights-off-flow/70856/1 "2022-10-19T18:18:05Z")

</div>

Hi, I am am having a problem with my bathroom mirror light turning off. This has probably very simple solution but cant find it.

I hav a flow [Shared Flow | Homey](https://homey.app/f/9K7rNf)  
When motion is turned off, light turns off after 900seconds. Is it possible some how to set that is starts countdown from zero if motion is detected again? Now if i go bathroom lights turn on \> i go put for a sec and motion detection is turned off \> countdown to 900 begins \> i go back to bathroom to take a shower etc and lights turn off. What kind of flow I need to avoid this? Thanks.

---

<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:** [October 20, 2022, 4:59am UTC](https://community.homey.app/t/help-needed-with-simple-motion-lights-off-flow/70856/2 "2022-10-20T04:59:46Z")

</div>

There are already several solutions in the forum available. This is a simple one:

> [@\[Simple\] Lights turning on/off based on motion](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889):
>
> Simple flow for turning lights on and off based on motion What to use Timer app. In this case i used [the Countdown app](https://apps.athom.com/app/nl.bevlogenheid.countdown) Motion sensor. Used a Neo Coolcam pir v1 in this case. A light to switch on and off. Used a Fibaro Dimmer2 in this case to turn a “dumb bulb”. Start making the timer We click more/apps/Countdown. Then we click configure app. Here we make the timer. Choose a name for your timer. In this case i used “Badkamer” Click “Add timer” Start making the flows In this case i used…
