Multi advanced flow?

Hi,

Is it correct to program all the triggers for a blind in a single advanced flow: opening in the morning, adjusting when the sun rises, closing at night, etc.? Or is it better to create separate flows? I would fill out a long list of flows if I had to do them separately. I look forward to your opinions.

Thanks.

2 Likes

Yes, this is a great use of advanced flows and I have my whole system set up this way. In my opinion this is one of the best things about advanced flows because you get to keep all of the logic associated with a single device or set of devices together, making it a lot easier to both build and maintain.

One thing to note its that it won’t work if you have multiple triggers feeding into the same set of and / then cards. I.e. you can’t ‘reuse’ a set of logic for multiple triggers. Given that, it’s really handy that in advanced flows you can select any set of cards together and copy and paste them (along with all links amongst them) elsewhere in the same advanced flow.

2 Likes

Indeed. That is because of a basic design principle: each flow card will be executed only once (or not) during an execution of that flow.

Also connecting multiple triggers (WHEN cards) to an ALL card will cause the flow to never execute. As Homey expects all WHEN conditions to occur at exactly the same time. This will never be te case. That is why you need to split up flows or combine multiple triggers in an ANY card (instead of an ALL card).

Finally, an Advanced Flow is actually a canvas that can contain multiple flows with their own triggers. This greatly helps in organizing flows that are closely related.

2 Likes

Hi Sunbeach, I guess you mean the ALL card. I connect several triggers(WHEN) to AND cards very often and it works well.

1 Like

Same here, if very much related I put them on one canvas.
But if only slightly related, I do not.

Like, I have one canvas for smoke, fire(temperature) alarm and to dismiss the alarm, but another one for the smoke/firealarm test…

Als depends on if I want to be able to switch a flow off or not…

Yes, of course! You are correct. My bad :blush:. I corrected my post. Thanks for pointing that out to me.

Great thread! Without negating what you wrote allow me to add to this, even if it was already solved.

The above quote is technically incorrect, it depends really on what the logic contains but I am sure you meant that.

  1. It is very normal for multiple triggers to feed into the same, central logic (see here for an example). But of course, when your cards in the logic contain device specific information, you need to be careful.
  2. Another way to re-use logic is with Advanced Triggers. You can pass on up to 10 number/text/boolean) variables and use those in the central logic to select what to do. See below
  3. Important for any solution you apply, you will need to be aware that an almost simultaneous execution of logic to control multiple blinds could lead to a lot of radio broadcasting (eg. zwave) to the various blinds devices at the same time. This may cause a slower reaction on each device or on other time sensitive functions controlled by Homey (eg. motion related actions). One way to avoid this is also provided by Advanced Triggers which allows the execution of the central logic in for example a sequential manner or a debounce which limits applying the logic too many times, when there are almost simultaneous triggers).

1 Like