# \[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:** 20\
**Page:** 4

<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:** [February 28, 2021, 6:19am UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/73 "2021-02-28T06:19:36Z")

</div>

I agree with @Rocodamelshekima, for homey I don’t think it matters.  
You need to decide what works best for your use…

For simple cases zone activity works the same as timers.  
But timers are much more configurable (and the app store hase many timer apps… (Search for timer in the [app store](https://homey.app/nl-nl/apps/))

Just switching one light using one motion sensor? Zone activity will work fine

Multiple motion sensors switching one ligt, zone activity is easier

If you have many lights in one zone and you want them all to switch on and off at the same time, zone activity is good.

If you want to switch them (Off) at different times Zone activity will Require you to split the flows

If you have motion sensors triggering lights in other zones, zone activity will be more complicated then timers

If you have triggers that homey does not recognize as zone activity it will not work (You smart dishwasher being opened is not recognized as activity?)

Example  
I have lights on my driveway, And a motion sensor at the driveway (zone driveway).

And a few Lights on the garage wall  
I have a second motion sensor in the garden (zone garden)

When I walk in the garden toward the garage only want the garage lights to go on.

When I drive onto the driveway the ligths (driveway and garage) turn on.

While unpacking my car the driveway sensor (that switched on the lights) is no longer triggered.  
So that zo e activity will switch off turning off the lights

But I want to keep them on! Because the garden motion sensor is still being triggered.

Using zone activity makes it complex.  
Managing the garage lights and driveway Lights with seperate timers it much easier (both sensors can reset the same timer)

---

<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:** [February 28, 2021, 6:29am UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/74 "2021-02-28T06:29:03Z")

</div>

> [@Caseda](#):
>
> The biggest difference is just that you have “infinite” possibilities for times you want your lights to go off with timers. With zone inactivity you only have a few set values with a _minimum_ of 1 minute.

Timers will even allow you to use a logic variable as a value.  
Bij changing this variable you can configure the timers.

Example:  
During breakfast lunch and diner we sit at the table. Motion sensors dont pick up a lot of movement, but we are there..  
I increase the timer value during timeslot I expect to be sitting there.

---

<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:** [February 28, 2021, 6:35am UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/75 "2021-02-28T06:35:14Z")

</div>

> [@Paul\_Scholte](#):
>
> I was wondering since you tried to minimize the running time of timers in one of your examples by starting a timer when “movement stops”

Dont think this is to minimize the timers…

Be aware:  
You switch on you lights when activity starts  
You start the timer when activity stops

You do not want to start the timer when activity starts…!  
What if the activity does not stop?

Imagine a dance-floor with continuous activity

You switch on the light when activity start  
And after 10 minutes you switch off the lights…

You better switch off the lights 3 min after activity stops…

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [March 2, 2021, 7:28pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/76 "2021-03-02T19:28:24Z")

</div>

Zone activity based solution here:

> [@\[Tutorial\] Simple movement-triggered automatic light with zone activity cards (just 2 flows!)](https://community.homey.app/t/tutorial-simple-movement-triggered-automatic-light-with-zone-activity-cards-just-2-flows/39651):
>
> Hi everyone, It’s time to share back what I learned here. I have -in the past- tried several strategies to use lights that automatically trigger when movement is detected. Also, a lot has been written about this topic, for example: [Tutorial - Advanced automatic light control with flows](https://community.homey.app/t/tutorial-advanced-automatic-light-control-with-flows/21877)[[Simple] Lights turning on/off based on motion - #33 by EvR](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/33) and many more. All of these either use the CountDown App -or- the Timer App This allows for a lot of flexibility. But it can be tricky to config…

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [March 2, 2021, 7:36pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/77 "2021-03-02T19:36:37Z")

</div>

This simple flow is to show peeps how to run some flows and get their lights on and off with motion detection. Linking to other solutions does not bring anything good to this specific topic.

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [March 2, 2021, 7:43pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/78 "2021-03-02T19:43:58Z")

</div>

Hi @Rocodamelshekima,  
Some of the posts here refer to zone-activity based light switching. I use the referred implementation to do just that, without any custom timers, only using zone activity.  
If it needs to be simple… this is simple. And of course there are pros and cons.  
But simple it is.  
R.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [March 2, 2021, 7:44pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/79 "2021-03-02T19:44:55Z")

</div>

Whatever suits u best m8. Lets get this complicated!

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [March 2, 2021, 7:46pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/80 "2021-03-02T19:46:32Z")

</div>

" **Disclaimer**  
These flow examples are just for helping other people to make some simple flows and have fun with Homey. Please don’t react with “i don’t like the countdown app” or something like that. Just trying to help peeps to enjoy their Home automation with Homey."

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [March 2, 2021, 7:49pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/81 "2021-03-02T19:49:10Z")

</div>

@Rocodamelshekima in this topic I never gave an opinion on specific apps or solutions. I just gave a reference to an alternative solution.  
And yes in that alternative solution post I referred that I have used Timer and other apps before, but was looking for a simple solution. Zone activity worked for me m8.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [March 2, 2021, 7:52pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/82 "2021-03-02T19:52:28Z")

</div>

> [@RogerSt](#):
>
> I just gave a reference to an alternative solution.

Exactly that! That is not what this topic is about m8. This is just some examples to help peeps getting started. If u wanna use zone activity then that’s fine with me. But again: that’s not what this topic is about.  
Gonna ask [@moderators](https://community.homey.app/groups/moderators) to delete offtopic posts here.

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [March 2, 2021, 7:53pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/83 "2021-03-02T19:53:27Z")

</div>

It must be me.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [March 2, 2021, 7:54pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/84 "2021-03-02T19:54:15Z")

</div>

Almost wanna say open ur own topic but u alr did haha.

---

<div class="post-metadata">

**Author:** ![BertSP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bertsp/32/33015_2.png) [@BertSP](https://community.homey.app/u/BertSP)\
**Post date:** [April 27, 2021, 11:17am UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/85 "2021-04-27T11:17:48Z")

</div>

Great explain, now i finally understand how to use the countdown app.  
Thanks for it…

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [September 12, 2021, 9:53am UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/87 "2021-09-12T09:53:09Z")

</div>

Then just show us ur flows.

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [September 12, 2021, 11:21am UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/89 "2021-09-12T11:21:04Z")

</div>

You should check if the timer actually get’s started. In my experience the ‘motion sensor off’ doesn’t work at all times. Haven’t figured out why this is. But you could try and start the timer when motion get’s turned on and remove the ‘stop timer’ or delay the ‘start’ with a couple of seconds.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [September 12, 2021, 11:31am UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/90 "2021-09-12T11:31:42Z")

</div>

And maybe check the “lamp wc” in devices. There it should tell u who turned the light off after a minute.

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [September 12, 2021, 5:54pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/92 "2021-09-12T17:54:20Z")

</div>

Let me get my glass bowl… it’s windy and cloudy now I guess it’s an entirely different device wit its own apps and circumstances …

---

<div class="post-metadata">

**Author:** ![Rob\_van\_der\_Poel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_van_der_poel/32/7801_2.png) [@Rob\_van\_der\_Poel](https://community.homey.app/u/Rob_van_der_Poel)\
**Post date:** [October 27, 2021, 2:26pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/93 "2021-10-27T14:26:07Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![Otto](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/otto/32/47855_2.png) [@Otto](https://community.homey.app/u/Otto)\
**Post date:** [December 2, 2021, 12:27pm UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/94 "2021-12-02T12:27:34Z")

</div>

Hallo,

De Flow werken niet bij mij.  
Zou dit kunnen liggen aan dat ik niet exact dezelfde bewegingsmelder heb als die van jou??  
Ik heb het volgende : beweging melder van Ikea en lamp van ikea

Wat ik gaarne wil is het volgende.  
De lamp gaat 10 of 15 seconden aan als ik binnen loop.  
Als ik op het toilet zit dan gaat ie dus na 10 of 15 seconden uit.  
Als ik weer terug loop van de toilet over de trapopgang (na 30 of 40 seconden of zoiets) moet het licht weer aanspringen voor die 10 of 15 seconden.

Nu heb ik een flow gemaakt dat de beweging melder aangaat de lamp aangaat.  
En een flow als de beweging melder uitgaat de lamp ook uitgaat.  
Werkt goed hoor, alleen blijft de lamp 1 a 2 munten aan. Ikk dacht dit te kunnen verkorten!?

Zou je mij kunnen helpen ermee??  
b.v.d.

Hey,

The Flow doesn’t work for me.  
Could this be because I don’t have the exact same motion detector as yours?  
I have the following: motion detector from Ikea and lamp from Ikea

What I would like is the following.  
The light comes on for 10 or 15 seconds when I walk in.  
When I sit on the toilet it turns off after 10 or 15 seconds.  
When I walk back from the toilet and up the stairs (after 30 or 40 seconds or something) the light has to come on again for those 10 or 15 seconds.

Now I have made a flow that the motion detector switches on and the lamp switches on.  
And a flow when the motion detector goes out, the lamp also goes out.  
Works well, only the lamp stays on for 1 or 2 coins. I thought I could shorten this!?

Could you help me with it??  
e.g.

---

<div class="post-metadata">

**Author:** ![Blooddrunk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/blooddrunk/32/82094_2.png) [@Blooddrunk](https://community.homey.app/u/Blooddrunk)\
**Post date:** [July 22, 2023, 8:44am UTC](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889/96 "2023-07-22T08:44:32Z")

</div>

Hello,  
when using these three flows, but want it to be based on time and luminance level, do I have to add AND condition time and logic to all three flows or it is sufficient to add it only in to the first one?  
Thanks in advance.

 ![IMG_6241](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/8404fc0671304ce83230e06ed92b170bf0d9c47e.jpeg)

[Previous page](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889.md?page=3)

[Next page](https://community.homey.app/t/simple-lights-turning-on-off-based-on-motion/10889.md?page=5)
