Homey Community Forum

[Simple] Lights turning on/off based on motion

flow
#1

Simple flow for turning lights on and off based on motion


What to use

  1. Timer app. In this case i used the Countdown app
  2. Motion sensor. Used a Neo Coolcam pir v1 in this case.
  3. 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 3 flows. Call the flows whatever you like. I called them "Light with motion 1, …2 and …3.

Flow 1

WHEN part

We take the trigger from the Neo Coolcam sensor and we choose “The motion alarm turned on”

AND part

There is no AND part in this flow.
There is always room for expanding the flows here with “AND light is off” or “AND Sonos is not playing” but this is the simple version remember?

THEN part

In the last part of this flow we gonna hit the light. Pick a card for the bulb (or dimmer/switch) of your choise and choose “Turn on”. Also we need to stop the timer so add another card and choose “countdown”. Find the timer you just created. Pick “Stop countdown timer”.

First flow is done. For the overview of your first Light with motion flow , here is how it should look by now:

Flow 2

WHEN part

We take the trigger from the Neo Coolcam sensor and we choose “The motion alarm turned off”

AND part

There is no AND part in this flow.
There is always room for expanding the flows here with “AND light is on” or “AND Sonos is playing” but this is the simple version remember?

THEN part

In the last part of this flow we gonna hit the countdown timer. We need it to run so add a card, pick “countdown” and “Start countdown timer”. For the timer name pick the one you just made in the first part of this guide. In my case this is “Badkamer”.

2nd flow is done. For the overview of your 2nd Light with motion flow , here is how it should look by now:

Flow 3

WHEN part

This is the part when the timer reaches zero and there is no more movement. We add a card and find the Countdown again. We choose “Timer reaches zero”.

AND part

There is no AND part in this flow.
Been there, done that.

THEN part

In the last part of this flow we gonna turn the lights off. We add a card in the THEN part, pick the bulb (or dimmer/switch) and choose “Turn off”.

Last flow is done. For the overview of your last Light with motion flow , here is how it should look by now:

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.

6 Likes
Timer Motion
Xiaomi/Aqara ZigBee door sensor open/close timer functionality!
Need help on flow turning lights on based on lux & motion
Countdown timer
Flow garage lichten aan en huisdieren
closed #2
opened #3
#4

Hi,

How can it be done so that the lights turn off after a while if there is no movement, but only after they’ve been turned on at the wall switch first?

e.g. With lights off
20:00: user enters the room. Nothing happens.
20:05: user switches on lights at wall
20:15: movement so = lights stay on
20:20: user switches light off
20:25: lights stay off, irrespective of movement
20:45: user switches lights on again
20:55: no movement = lights auto off

#5

When using a smart switch u can enable/disable the flows. When switch is set to on, enable the motion flows. When switch is set to off, disable the motion flows.

#6

Were do i find the “Add timer”?

#7

Wrong app. Correct app used in this example.

1 Like
#8

Muchos Gracias :smile:

1 Like