Simple flow for turning lights on and off based on motion
What to use
- Timer app. In this case i used the Countdown app
- 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 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.