Homey Community Forum

[Simple] Lights turning on/off based on motion

It all depends on what u wanna do with it. This is a simple version to help peeps understand the working of it. When u want the lights to go off after 10 minutes, no matter what, u can also do:
WHEN motion detected THEN turn lights on AND turn lights off (with a delay of 10 minutes).
I even have a lot more flows for bathroom lights. Like turning on the Sonos speakers and play 538 (het foute uur) UNLESS there is an mp3 playing in the attic. Then they have to join the attic speakers ofc. When walking into the bedroom AND Sonos is playing in the bathroom THEN join them, ELSE play 538.
And walking into the bathroom while it’s still before 6am THEN the lights have to be low and Sonos needs to be off.
But that’s not what this topic is about actually. It is more to help peeps a bit in the right direction to understand flows.

1 Like

Hi again - okay, thank you very much for fast answer👍 I will explore the different solutions. Keep safe and sound👍

Like os på Facebook og LinkedIn – vi spotter trends, deler viden og inspirerende artikler.

De bedste hilsner

[mod break, removed all personal data]

Maybe better to remove the phonenumber

Ahh - I guess you mean I did not need to provide the phone number :wink: I am sorry - that was my autosignature from my phone :joy:

lol yup :joy: :joy: :joy: :joy:

Having more flows is not bad.
In my opinion, its even better. Want to know why? … read my post about how to structure your flows.

Thanks!

For now i have made a flow that if i open the door the light turns on, countdown stops, and if i close the door, the countdown runs and the light turns of. If i open the door before the light turns of the countdown starts over. So this works fine.
But how can i add something that the light stays on by closing the door if i had turn the light on before opening and closing the door? By the Homey app or toggle switch. Wallswitch is a Fibaro 223. Double switch 2x1500…

I have a similar needs as you and with almost the same hardware. But my flow setup uses tags and segregation of flows but I hope this can give you the idea on how to do what you want -

Easy enough so far, when the garage is active turn everything on and start a timer for 10 minutes.

When the timer runs out - turn very thing off.

When I press the garage button - reset the timer which turns everything off to start counting down from 1 hour.

I also have a flow for when the switch is pressed twice - completely disable the timer. So the garage light doesn’t automatically turn off. This is similar to what you want to do.

But just in case I forget to turn it off - at 2am turn it off for me.

Rather then disable the timer I have been meaning to instead disable the flow if I double tap, and then reenable each night at 2am when it does the sanity check.

Thank you, I will give it a try with my setup.

I use this flow for my lights in my house. It’s 2 flows instead of 3. Maybe it’s usefull for someone so i thought it’s nice to share.

It works perfect but if it is in any way incorrect, please tell me. :blush:

This is possible ofc. Only disavantage is that ur timer will be running as long as ur inside. The timer in the OP will only run when motion is stopped so will run way less then urs.

1 Like

Why would you turn on the light when it is already on?

I noticed this flaw a few months ago and corrected it. But thanks.

1 Like

I’ve tried to make the flows in TS. But when i want to create flow 2 of the tutorial, i dont see a option to “Start Countdown timer”.

I only see this:

Je kunt “ draai zandloper om” gebruiken. Wel eerst een timer aanmaken die je kunt omdraaien

1 Like

Like Frank says: use “draai zandloper om”.

1 Like

Thank you. I got the logic now. It got it working.

I have my “Eettafel lamp” turned on and off with countdown and a xiaomi motion sensor.

But i also have flows with the “Eettafel lamp” and a switch. Is it possible to not use the motion sensor with countdown when the switch has turns on the “Eettafel lamp”? Because when ur sitting at the dining table, the motion detector doesnt sees any motion. So the Eettafel lamp turns off after a while.

When button is pressed, then turn on lamp and disable flow …
When button is pressed then turn off lamp and activate flow…

2 Likes

I also use this flow with a door sensor. The light works also with a TBK Home TZ Dual Relay Module. As long as the flow is running I need to push the toggle switch on and off, before the light turns off. Is there a possibilty to fix this ?