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.
Show running flows / stop them / turn on light after triggering motion sensor
Frakke
Member
Hi All,
The thing that I want to accomplish is the following:
When there's movement on my Fibaro motion sensor: Turn the lights on.
When there isn't movement anymore in the last 5 minutes, turn the lights off.
Someone already thought of something like this?
The thing is, you can do this in 1 flow, and set a delay. But the problem is, when the motion sensor is triggered again, within the 5 minutes. An extra flow is going to run. So it still will turn the lights off after the first 5 minutes are over..
So maybe there's a possibility to stop certain flows that are running in the background?
Regards!
The thing that I want to accomplish is the following:
When there's movement on my Fibaro motion sensor: Turn the lights on.
When there isn't movement anymore in the last 5 minutes, turn the lights off.
Someone already thought of something like this?
The thing is, you can do this in 1 flow, and set a delay. But the problem is, when the motion sensor is triggered again, within the 5 minutes. An extra flow is going to run. So it still will turn the lights off after the first 5 minutes are over..
So maybe there's a possibility to stop certain flows that are running in the background?
Regards!
Comments
When triggering with the "on" state, it won't send another signal to reset the countdown if it sees motion between the default 8 en 30 seconds but stays on until no further movement after 30 seconds.
So with triggering on the "on" state it only resets the count down when motion sensor is off (after 30 seconds no movement) then on again
- Turn on lamp
- Start countdown
- Turn off lamp
It is the most reliable way i can think of, to have the light on when you are in the room at least.
(i had it with 2 flows before as wel, and had multiple times the light went off while still in the room)
You could put the count down timer very high and just use 2 flows, but that will keep the light on pretty long after you left again.
https://forum.athom.com/uploads/editor/5i/82ldysdaacf4.pdf
working great but so may flows ARGHH
(not sure if it will be renamed later by athom or that it is brand specific)
But much more important it is working YEEEHHHH
Glad to hear people are liking the app!
Maybe some of you already touched this solution or I missed the point. In that case sorry for my misunderstanding.
I am using the "light on after motion"-case with a combination of the following two flows.
your way will work, but with one thing happens that i don't like.
It doesn't send the "on" signal (reset the timer) every time it still sees motion. (it keeps the alarm on when seeing motion)
It only gets send when the "alarm cancel" time is reached (default 30 seconds) and after the alarm is off, get triggered again to reset the timer.
so if you keep moving for at least 60 seconds the counter will reach 0 and the light will turn off.
And you will need wait after the lights are off until "alarm cancel" time is triggered to stop the alarm, after that you can move again to get the lights on again.
the Fibaro motion sensor (atleast the v2.7) has 2 alarms inside it self, a Tamper alarm, and a Motion alarm.
But are combined into 1 alarm (Generic alarm).
I believe they are send with a different extra byte to know which alarm is triggered, but this is not implemented (yet) by homey.
But the jokes aside.. that must have been one hard "(s)tamper".!
6. Motion detection - alarm cancellation delay
Time period after which the motion alarm will be cancelled in the main controller and associated devices.
Any motion detected during this period resets the timer.
I understand from this parameter that it's exactly doing what is needed: renewing the on-signal during the motion detecting period, 60 sec. in my situation, when I set parameter 6 as 6,2,60
How should I look at this in your opinion?
So as long as the sensor detects motion (itself) and resets its internal timer (default 30 seconds)... the countdown timer will not start. Once the generic alarm is reset, Homey's countdown timer will start.
See for example the way I've setup my flows: https://forum.athom.com/uploads/editor/2b/559gc1iljpow.pdf
One note: as indicated in the Fibaro Motion Sensor (FGMS-001), not possible to add to Homey topic: