# The light is on as long as there is movement in the room with a motion sensor

**URL:** <https://community.homey.app/t/the-light-is-on-as-long-as-there-is-movement-in-the-room-with-a-motion-sensor/108089>\
**Category:** Questions & Help\
**Tags:** homey-pro, homey-pro-2023\
**Created:** [April 12, 2024, 6:50am UTC](https://community.homey.app/t/the-light-is-on-as-long-as-there-is-movement-in-the-room-with-a-motion-sensor/108089 "2024-04-12T06:50:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAlmbris](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jalmbris/32/79652_2.png) [@JAlmbris](https://community.homey.app/u/JAlmbris)\
**Post date:** [April 12, 2024, 6:50am UTC](https://community.homey.app/t/the-light-is-on-as-long-as-there-is-movement-in-the-room-with-a-motion-sensor/108089/1 "2024-04-12T06:50:25Z")

</div>

I don’t know if I’ve done something wrong or if it’s just not working the way I thought it would.  
Posting my flow image so it’s easier to understand what I’m trying to achieve see image.

The purpose of this flow is that it should light the sink lightstrip when I enter the kitchen and as long as there is movement at the sink the, the lightstrip should be lit.

by the sink, I have a motion sensor that will turn on the lightstrip above the sink when I enter if the luminans is low enough for the lightstrip to turn on,  
and it seems to work.

I have put in a countdown for the lightstrip to be on for a certain amount of time before it goes off, and no movement has been noted at the sink.  
This almost works…  
Sometimes I feel that the loop is not lit for the time that I have set in the countdown, for example day time 900 seconds,  
and the lightstrip is turned off when the countdown has reached 0, that’s what I think anyway.

I have tried dividing this flow into two different ones where the countdown reaches 0 → turn off the lightstrip is in its own flow and also  
tried with the card to activate sink flow at the end but it has not helped.

My devices are Philips hue and I have moved the motion sensor and the lightstrip from the Philips Hue router to the Homey Pro 2023 and put them in the app “Philips Hue, without the bridge”  
because I had hoped to be able to shut down the Philips Hue router.

 ![Kökets Flow](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/2/b2c7db53905df51130cbcd5accf99d519dec7543.jpeg)

---

<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:** [April 12, 2024, 10:05am UTC](https://community.homey.app/t/the-light-is-on-as-long-as-there-is-movement-in-the-room-with-a-motion-sensor/108089/2 "2024-04-12T10:05:47Z")

</div>

> First of all, welcome to the Homey Community!
> 
> To make sure you are aware of the forum rules, please read the _ **Welcome to the forum!** _ post [here](https://community.homey.app/t/welcome-to-the-forum/31).

---

<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:** [April 12, 2024, 11:18am UTC](https://community.homey.app/t/the-light-is-on-as-long-as-there-is-movement-in-the-room-with-a-motion-sensor/108089/3 "2024-04-12T11:18:27Z")

</div>

Hi Joar and welcome!

I don’t use the CountDown App, but I rebuild the first row of your flow with the Chronograph App:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/5/c5309cf0a53bf1c3d94da1314b6c346829c0f8eb.png)

So if motion is detected (card #1) then stop countdown. But if no countdown is running, which will be definitely the case if the ms detects the first time motion, then the flow stops.

It is a very old topic, but you can still use these flows as a basis:

> [@\[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:** ![Jim\_McAtear](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jim_mcatear/32/96184_2.png) [@Jim\_McAtear](https://community.homey.app/u/Jim_McAtear)\
**Post date:** [April 12, 2024, 1:50pm UTC](https://community.homey.app/t/the-light-is-on-as-long-as-there-is-movement-in-the-room-with-a-motion-sensor/108089/4 "2024-04-12T13:50:51Z")

</div>

Try watching this video

[![](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9d040438027e1cdcab16d3a5fa02c9d390711df1.jpeg "Motion sensors the right way - Smarter Homey") ](https://www.youtube.com/watch?v=1VYkhSW5NTU)

In the video it uses the countdown app , however I use it with the chronograph app and it works just as well. The concept is when movement is detected and it’s dark enough, switch the light on and pause the timer.then when no motion detected restart the timer and only if no motion detected and the timer ends will it switch the lights off. If however motion is detected, again before the timer ends the whole process starts again.

---

<div class="post-metadata">

**Author:** ![JAlmbris](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jalmbris/32/79652_2.png) [@JAlmbris](https://community.homey.app/u/JAlmbris)\
**Post date:** [April 12, 2024, 1:52pm UTC](https://community.homey.app/t/the-light-is-on-as-long-as-there-is-movement-in-the-room-with-a-motion-sensor/108089/5 "2024-04-12T13:52:55Z")

</div>

Thanks so much @Jim_McAtear and @DirkG

thanks for the help, I’ll have a look at that app as well and see if it starts working as I have intended.

Regards  
Joar

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [June 24, 2024, 1:53pm UTC](https://community.homey.app/t/the-light-is-on-as-long-as-there-is-movement-in-the-room-with-a-motion-sensor/108089/6 "2024-06-24T13:53:13Z")

</div>

I have completeley switched to [zone activity](https://community.homey.app/t/zone-activity-vs-motion-alarm/103213), works really well and mucht simpler
