# Motion + turn off

**URL:** <https://community.homey.app/t/motion-turn-off/66583>\
**Category:** Flows\
**Created:** [July 27, 2022, 4:52pm UTC](https://community.homey.app/t/motion-turn-off/66583 "2022-07-27T16:52:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damian\_Surma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/damian_surma/32/48817_2.png) [@Damian\_Surma](https://community.homey.app/u/Damian_Surma)\
**Post date:** [July 27, 2022, 4:52pm UTC](https://community.homey.app/t/motion-turn-off/66583/1 "2022-07-27T16:52:21Z")

</div>

Hi, I have such a problem. Very simple flow:  
if:  
the motion sensor does not detect motion  
then:  
turn off the light 1 with a delay of 10 min  
turn off the light 2 with a delay of 10 min

 ![flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/4/341bf90a432562fc51912d1215908c8667381e3c.png)

And now the problem, sometimes the flow works well and sometimes it can, for example, after turning on the light and entering the room and staying in it, it will turn off the light after 3 minutes, other times after 5 minutes. I tested on two fibaro motion sensors and the frient is the same.  
What may be the problem?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [July 27, 2022, 5:12pm UTC](https://community.homey.app/t/motion-turn-off/66583/2 "2022-07-27T17:12:29Z")

</div>

Just a few things to consider: a motion detector detects motion, it’s not a presence detector. So if you’re in a room and you’re not moving (enough), the motion sensor will not notice you and after some time the lights will turn off.

Also, if you’re using delays, the lights will get turned off after 10 minutes _regardless of whether new motion was detected in the mean time_.

So, for example:

- you enter the room and turn the lights on; the motion sensor notices you
- you leave the room for a moment, the motion sensor will not detect motion anymore; a timer for 10 minutes is started (the delay)
- after 7 minutes, you enter the room again
- then, after 3 minutes, the 10-minute timer will expire and the lights will turn off.

There should be lots of posts on this forum about how to solve this problem.

---

<div class="post-metadata">

**Author:** ![Damian\_Surma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/damian_surma/32/48817_2.png) [@Damian\_Surma](https://community.homey.app/u/Damian_Surma)\
**Post date:** [July 27, 2022, 5:52pm UTC](https://community.homey.app/t/motion-turn-off/66583/3 "2022-07-27T17:52:37Z")

</div>

Thank you for your response.  
Yes, I know that it is a motion sensor, not presence sensor. The motion sensor is placed in the bathroom, so I gave a delay of 10 minutes. I created the same flow as I had in smartthings, from which I switched to homey pro. I thought the modus operandi would be similar, but nevertheless I can see that it works differently.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 27, 2022, 7:35pm UTC](https://community.homey.app/t/motion-turn-off/66583/4 "2022-07-27T19:35:16Z")

</div>

This might get you going:

> [@\[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…

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [July 27, 2022, 11:21pm UTC](https://community.homey.app/t/motion-turn-off/66583/5 "2022-07-27T23:21:23Z")

</div>

Or use “The zone has been inactive for xx minutes” card for switching OFF your Bathroom light:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/9/f9d007d472010121b3d0b1d15c14bf9ad30b01f8.png)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [July 28, 2022, 9:49am UTC](https://community.homey.app/t/motion-turn-off/66583/6 "2022-07-28T09:49:38Z")

</div>

The issue the question-starter has, imho, has to do with timers and delays, not being able to stop delays as standaard functionality to be precise.  
@Peter_Kawa 's answer is probably what he needs: you need a Timer app like Countdown, so you can cancel a “started shutdown lights card with delay” when the motion is detected again before the light is shutdown.

---

<div class="post-metadata">

**Author:** ![Damian\_Surma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/damian_surma/32/48817_2.png) [@Damian\_Surma](https://community.homey.app/u/Damian_Surma)\
**Post date:** [August 1, 2022, 9:54am UTC](https://community.homey.app/t/motion-turn-off/66583/7 "2022-08-01T09:54:01Z")

</div>

@JPe4619 thank you, i followed your advice. One simple flow was enough and everything works great.
