# 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:** 1\
**Showing post:** 3

<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…

---

_[View the full topic](https://community.homey.app/t/the-light-is-on-as-long-as-there-is-movement-in-the-room-with-a-motion-sensor/108089)._
