This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Flow - turning lights on and off with countdown timer
malysanuy
Member
Hello everybody, how are you today ?
I have been struggling for a while with Homey and its flows. I set up two flows for the lightning :
1/ When The Motion Alarm Turned On... Then... Start Countdown Timer (180 sec) + Turn On Living Room Light
2/ When The Motion Alarm Turned Off ...And... Timer Not Running (Countdown Timer) ...Then... Turn OFF Living Room Light.
But it does not work. I have also read and tried many flows like this one here : https://forum.athom.com/discussion/3199/solved-switch-off-after-60-min-no-movement but still not working
Could you help me to solve this problem, please ? Have I done something wrong with my flows ?
Thank you
I have been struggling for a while with Homey and its flows. I set up two flows for the lightning :
1/ When The Motion Alarm Turned On... Then... Start Countdown Timer (180 sec) + Turn On Living Room Light
2/ When The Motion Alarm Turned Off ...And... Timer Not Running (Countdown Timer) ...Then... Turn OFF Living Room Light.
But it does not work. I have also read and tried many flows like this one here : https://forum.athom.com/discussion/3199/solved-switch-off-after-60-min-no-movement but still not working
Could you help me to solve this problem, please ? Have I done something wrong with my flows ?
Thank you
Comments
1. If motion is detected, turn on light and Stop the timer.
2. If motion stops, start the timer
3. If timer is zero then turn off lights
1. IF motion - THEN turn on light + start timer 300 sec.
2. IF timer is empty - THEN turn loght off.
This works great! And you only need 2 flows.
p.s. flow 1 resets the timer everytime there is motion. So flow 2 is really only started as there is really no motion for 300 seconds.
-edit- I've posted an example in the examples-topic. That example is a bit more advanced, but I think you get the point.
https://forum.athom.com/discussion/comment/59830/#Comment_59830
Like this: if motion stops -> turn light off (with a delay of 2 minutes)
The only thing is that you cannot cancel this action afaik, something you can do with a timer.
There is only 1 good option for this and that is @caseda 's option.
U just answered ur own Eric!
I hope you guys can help me I want to use the countdown timer. This is what is has to do. Lights in my garden have to turn on when my light sensor goes lower as 50 lux. Lights have to turn off at 1 a.m. When the motion sensor detects no motion for one hour, lights have to turn off( probably i am at sleep). When the motion sensor detects no motion during 1 day the lights in the garden have to stay off.(probably i am on a vacation) Is this possible? I use several motion sensors, light sensors.
WHEN motion stops——THEN start timers.
WHEN timer 1 ( 1 hour) is empty THEN kill lights.
WHEN timer 2 (24hour) is empty ——THEN kill the flow which turn ur lights on.
Thats the one u use with something like:
WHEN motion—— THEN stop timers And put on the lights.
Nice!
I see some good use for this. Tx. Often I think around something obvious like flow "uitschakelen". A very nice feature it is!
Sorry for the late reply. I've just got the time to set up and try those flows again.
It is working perfectly well. Thank you very much for your support
Can u show us ur flows in a screenshot so we can look at it?
- Hue light has been turned on (with a switch) / and it's at night / then stop timer, set brightness to 70 and turn timer to 1200 sec.
- If timer is empty / and it's at night / then set brightness to 1%
Apparently the timer doesn't restart and I don't know why. When using the test button the flow works and the timer restarts. But when I manually switch off the light with the light switch and then switch it on the timer doesn't restart.Please advise!
Please advise. Are there alternatives?
1 for the flow that works and 1 for the flow that doesn't work?
WHEN hue lamp turns on AND.... THEN Turn Counter to1200 AND set brightness to 70
Looks like Baboonen is killing the power with a switch
IF the switch is killed then in homey the HUE lights stays at on.(Maybe a BUG?)
So:
IF timer is empty THEN put all the HUE lights (the ones wich are turned on because of the switch) OFF.
Then it workes :-)
Or at the end , some flow has to turn the Hue lights to OFF.