Cool, I am going to borrow this I think
Doesn’t the sensor triggercard just have a “motion detector goes On” output and a “motion detector goes Off” output?
It seems “old fashioned” if you have to use a triggercard for each state.
No, an “Event” is something that happened, and in some cases it produces a Token (The Dim Level Changed => Token = DimLevel ) but all triggers have only one output and what you suggest is a Trigger with a Condition in one. resulting in On or Of, True or False. What if the Thermostat has 7 modes? do you want 7 outputs?
Would be nice just for simple OnOff devices like PIR or contact sensors, or (wall) switches f.i.
The trigger can be
On → do this
Off → do that
As I see some questions on “Performance” I tested some delays that the different conditions take in execution. We all see the nice animations during developing but what takes a Delay of 0 seconds? a Any or an All?
Luck the Copy - Paste works great and 5 x 5 is 25 …
Here the flows and the results:
25 x Delay 0 Seconds: On Canvas ~ 29 seconds , Normal 53 ms.
25x Any: On Canvas ~ 29 seconds , Normal 20ms.
25x All: On Canvas ~ 35 seconds , Normal 39 ms.
So I guess we don’t need to worry about speed
(Homey Early 2016)
Updated to 8.0.1 and it works, though it takes around 45 seconds after the mark I set in the flow before the lights actually turns off. I tried with a very simple advanced flow, and it was about the same, so I guess this could be modified even better. But at least the inactivity cards triggers the advanced flow now
I am afraid some members will be a little disappointed reading this or call it Less Advanced Flows
̶N̶o̶t̶ ̶y̶e̶t̶ ̶v̶e̶r̶i̶f̶i̶e̶d̶,̶ but I guess I can Explain it this way: (Edit: verified, I think I got a 9+ )
- A Flow runs from the Trigger until all cards in the chain have been evaluated, or the chain stops.
So when (following the Flow Chain) all triggered conditions (cards and Operators) have been evaluated and all triggered Actions triggered by the Flow have been done and all delays are done the flow will stop.
So a flow should be able to run at least ~16 hours (One Delay from 999 Min.) or maybe multiple chained Delays, up until Homey Restarts
You could try that this way:
But I can’t change the input of the ALL during the execution. If one of the input’s was No it will never become Yes during that Flow execution.
A Condition can’t change from outside the flow during that it runs. cq Once it was triggered.
From within the flow it can,
fe: Then: Toggle MyYesNo-Tag, then if MyYesNo-Tag is YES then… but these actions and conditions are chained.
WHAT DOESNT Work:
The second Timeline notification “End” will NEVER run,
I Start it as Favorite Flow or by turning a Light ON.
But it is impossible to start Both triggers the same time.
So even if the Light is Off and within ~ ms it is turned ON, that triggers the Flow to run a second time.
But that runs a New Flow evaluation
You see it here: After starting it turns on the Light and in a Second (1 Sec.) it tries an ALL with 3 inputs.
But the 3rd input WAS triggered in a separate Execution, (See Notification: Light Was Turned ON!)
So both Flow Executions will stop. The First Started by hand after ~ 1 second delay. The second is started if the Light was turned ON but also stopped after a couple of ms.
Amazing feature. I just replaced like 20 flows into one view for all my light automations. Exactly what was missing.
Monetization of this feature is a bit weird though. I get that they need to make money, so maybe a sub of a 2-3 euro would make more sense, and bundle it with their backup sub…
Just trying to get used to the concept a little more. I think I have been a bit over-enthusiastic in combining flows on one canvas.
Do I understand these things correct? :
- The “start” card in a flow is what was the “this flow was started” card in the “old” flows;
- You can combine flows that have an automated trigger (condition change or whatever) on one canvas. That would be, flows that you would never want to start manually from the app or with a switch;
- For flows with the “start” card, you should better not have more than 1 trigger card / flows on the canvas;
- For structural and overview reasons it looks nice to combine flows on one canvas. But from a performance point of view I can imagine that separate flows would be better?
Correct, There is only one “Start” for fe if You make it a Favorite Flow.
I haven’t tested anything but cant imaging any performance thing in execution except editing a very Large combined Flow in the Browser. And Disable/Enable will work more global if you combine more.
I do this with flow event bus, eg: create an event with value
event loop, value motion alarm name.
then trigger loop with when event with value received.
Is it possible start a flow with multiple variables? Like Start flow Test(Text,Number).
You can use different triggers to start a single flow. But you can’t use several triggers as a condition to start a flow. eg:
when trigger x and trigger y start at the same time run flow won’t work.
neither will when trigger x fired wait for trigger y to fire to run flow.
I hope this isn’t chinese ;D
Isn’t chinese, i’m wondering if it was possible with the advange flow and get two parameters.
This lamp (design) was definately “advanced” a lot more than 2 years ago…
This is great guys, is there a possibility to migrate my current flows to advanced ones, so I can start reducing flows from there?
We wish there was, but currently the answer seems “no”.
Hopefully Athom sees the need for it too and can provide us with it at some point.
Let’s hope they answer this question in the upcoming Ask Me Anything, next tuesday, 19.00 CEST
Hm I might have been too enthusiastic. After combining my light flows nothing triggers properly anymore. I guess there is some kind of limit to how much an advanced flow can do, or I have a bug?
Only flows I have in there is stuff that happens after motion sensors trigger.
EDIT: Seems to be a bug with the ‘countdown’ app in the store. I informed the dev.