I tried a different Flow but it was working both ways I only want it to work in a specific way when Sensor 1 triggers first then within ___time if sensor 2 trigger continue with the Flow.
Im using the Hue hub with Matter code into Homey, I tried the Official Homey Hue App but it keeps freezing after a few restart I deleted it and did the Matter option and so far is been working great.
Every trigger in a flow will start an individual flow, this is why your flow doesn’t work.
I should suggest using e.g. FlowBits.
Hallway sensor sets state “Hallway” in set “Motion” for 5 seconds.
Master bedroom sensor sets “Bedroom” state in the same set.
Then trigger on “All states in set is activated” for the set “Motion” to turn on the lamp.
There is of course other ways to solve this using variable and timers.
Like; sensor “Hallway” starts a timer for 5 seconds.
When the “Bedroom” sensor triggers it checks whether the timer is running, and if and only if it will turn on the lamp.
If I understand you correctly you want to turn on a bedroom light on to 100% if you are walking from the hallway into the bedroom.
So the hallwaymotionsensor alarm is already on when the bedroommotionsensor triggers?
And if there’s only motion in the bedroom you want to dim the light to 40%?
IMHO the flow can be as simple as this:
I downloaded Flowbits but could not figure out the exacts cards to use to make it look like suggestion. and in the blank spaces, there was no drop down to choose I have to type something and it works?
And the second suggestion with variable and timers, I also fail miserably.
I been trying to understand how they work, what to type in the blank space but was not able to complete the flow.
That suggestion the way you mention I believe is exactly what I am looking to do I could easily set it for 15sec. But could not figure it out.
I been tinkering here for a few hours I feel a bit defeated lol.
I tried different flows from other user suggestions, and was able to do the sequence but unable to add the (Within time) as a sequence before triggering the 2nd Sensor.
I think i did the way you suggested, but not working as planned.
Because of the Delay, if I increase the delay to 15sec the way I want by the time I trigger the 2nd sensor is still dark. If I reduce the time and walk slower then it wont trigger.
That why im looking for active time window not a delay in this case.
Cant figure it out yet.
Please realize that once the 10s delay-card in the top row is started, it can’t be interrupted.
I think you are trying with the other delay-card to extend the 10s delay-card.This will not work.
If you want to have the light on as long as there’s movement in the bedroom consider using ‘zone-activity’
A motion-sensor can make a zone (in this case the zone ‘bedroom’). Check the sensor-settings.
So
WHEN
zone-bedroom became active
AND
zone-hallway is active
THEN
turn on light
WHEN
zone-bedroom became inactive (for 1 minute)
THEN
turn off light
I had to disable the last card on the second flow because it was turning the light in the wrong direction I only wanted it to work one way. In this case when I walked in the room.
It was turning the light On as I left the room.
I would had never figure that out, more advance than what I had in mind.
Later I have to keep adjusting it to add (And..) if some lights are Off continue the flow if not skip/stop and also add (And…) if luminance is less than ___, that way it only works when is dark.
that makes sense with the delays, I was trying to figure out how to simulate the sensor was still active for longer so when I walk past the 2nd sensor the flow would trigger.
Anders posted a screenshot that I duplicate and is working now. I posted the updated screenshot.
In case you also want to do something similar with 2 sensors in sequence in the future with adjustable time.
Yes, I was trying to keep the Sensor/zone active for longer. I could not think of something else. on my own I would had never figure it out.
I was trying to simulate the Automation from the Aqara app.
Some scenarios that this work pretty good:
If sensor 1 triggers and within 20sec sensor 2 trigger then = Lights red that way I know the kids when downstairs into the pantry.
If sensor 1 triggers and within 20sec sensor 2 trigger then = Light On 100 as I am walking from the family to the room. But if I am in the room I dont always want the lights 100 when the sensor in the room triggers.
I also only wanted it to work in sequence only one direction.
But this type of flow is much harder to achieve in Homey, in the Aqara app is super easy.
But with the help of Anders I was able to duplicate the flow and now is working, I posted a screenshot in case you want to try something similar using two triggers with adjustable time.
This was just an example. You do need to adjust it to fit your need of course.
E.g. add a state in the Set that shows whether the lamp has been turned on, so it will not be retriggered when you pass the second sensor changing the luminance level wrong.
In the next few days I would try to adjust the flow like you mention and add that if the light is On skip, or luminance.
Hopefully that wont be too complicated.
Today im dealing with a new Flow if the sensor have been inactive for 5 minutes, but I need that in an And… card. I found it in the When.. card.
Let see if I can figure that one out if not I guess I be asking for some more guidance.
Maybe you can use “countdown” app by Ralf Van Dooren for this kind of functions. I have been using it a lot. A bennefit is that you can put all timers in a separate folder to keep the main flows clean.