# \[Simple\] Lights turning on/off based on motion

**URL:** <https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889>\
**Category:** Flows\
**Tags:** flow\
**Created:** [March 21, 2019, 5:36pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889 "2019-03-21T17:36:00Z")\
**Posts on this page:** 1\
**Showing post:** 54

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [June 14, 2020, 1:22am UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/54 "2020-06-14T01:22:15Z")

</div>

I have a similar needs as you and with almost the same hardware. But my flow setup uses tags and segregation of flows but I hope this can give you the idea on how to do what you want -

[https://homey.app/f/2odrMa](https://homey.app/f/2odrMa)

Easy enough so far, when the garage is active turn everything on and start a timer for 10 minutes.

[https://homey.app/f/uwQpMa](https://homey.app/f/uwQpMa)

When the timer runs out - turn very thing off.

[https://homey.app/f/UR5qMa](https://homey.app/f/UR5qMa)

When I press the garage button - reset the timer which turns everything off to start counting down from 1 hour.

[https://homey.app/f/JvYrMa](https://homey.app/f/JvYrMa)

I also have a flow for when the switch is pressed twice - completely disable the timer. So the garage light doesn’t automatically turn off. This is similar to what you want to do.

[https://homey.app/f/L48wMa](https://homey.app/f/L48wMa)

But just in case I forget to turn it off - at 2am turn it off for me.

—

Rather then disable the timer I have been meaning to instead disable the flow if I double tap, and then reenable each night at 2am when it does the sanity check.

---

_[View the full topic](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889)._
