# Advanced Flow — Community Q&A (from Ask Me Anything 05-07-2022)

**URL:** <https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [July 5, 2022, 7:38pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579 "2022-07-05T19:38:10Z")\
**Posts on this page:** 20\
**Page:** 10

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [July 3, 2022, 3:10pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/181 "2022-07-03T15:10:32Z")

</div>

Here is another techical question:  
The manual describes the usage of the tokens for a flow action passing back to the flow:

> **[Tokens](https://apps.developer.homey.app/the-basics/flow/tokens#tokens-for-advanced-flow)**
>
> Flow Tokens allow users to pass information between different Flow cards when creating their Flows.

But how should an error returned?  
`throw new Error()` or just `return false`?

I assume a throw new Error is the correct usage, because real exceptions are passed to the canvas. But an example for that would be nice in the manual.

Update: Got a confirmation via Slack: Throwing an error is the correct usage.

---

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [July 3, 2022, 3:40pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/182 "2022-07-03T15:40:17Z")

</div>

Currently I have several (standard) flows that cooperate, by enabling/disabling (standard) flows for some fixed amount of time, when something happens.

(How) Can I combine them all in one single Advanced Flow?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [July 3, 2022, 3:46pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/183 "2022-07-03T15:46:39Z")

</div>

It’s not really an error, it’s basically the broker saying that there are no users configured (which is correct).

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [July 3, 2022, 6:13pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/184 "2022-07-03T18:13:25Z")

</div>

> [@prosumer](#):
>
> enabling/disabling (standard) flows

Enabling and disabling flows is still on flow basis.  
So combining these into an advanced flow isn’t possible unles you rewrite it in another way.  
This isn’t something where one answer fits without knowledge of your old flows.  
Depending on your scenario it maybe even isn’t possible in one flow unless you do things radically different.

---

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [July 3, 2022, 7:36pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/185 "2022-07-03T19:36:19Z")

</div>

Are the notifications actually working. I can’t read Dutch but it looks like the latest entry was 2 days ago. I have the same thing. There are no recent real time timeline/notifications.

Actually there are a lot of weird things go8ng on with the web app at the moment which look to me performance based issues. I’m wondering if Athom systems aren’t suffering some load issues with the large uptake of advanced flows.

I absolutely love AF by the way. In migrating my flows I found a few errors and a lot of redundancy.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [July 3, 2022, 7:44pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/186 "2022-07-03T19:44:55Z")

</div>

> [@Peter\_Bittner](#):
>
> Are the notifications actually working.

I have tested around today since the AF announcement also with notifications to verify Advanced Flows and the Web App frontend. I have not noticed anything strange and the Notifications worked when I needed them.

---

<div class="post-metadata">

**Author:** ![Jo\_San](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_san/32/3732_2.png) [@Jo\_San](https://community.homey.app/u/Jo_San)\
**Post date:** [July 3, 2022, 7:56pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/187 "2022-07-03T19:56:36Z")

</div>

I found out that Safari on the Mac was a bit buggy after I was working on AF for a while. Duplicating flows did not show and notifications were not updated.  
On Firefox no issues.

Oh, yes there was a moment that my notification cards were throwing errors this afternoon and I had to reboot Homey to get it working again. But I assumed that had something to do with a loop I created myself.

---

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [July 3, 2022, 8:10pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/188 "2022-07-03T20:10:25Z")

</div>

Thanks for the Safari hint on the Mac, that is exactly what I was using.

---

<div class="post-metadata">

**Author:** ![joobz94](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@joobz94](https://community.homey.app/u/joobz94)\
**Post date:** [July 4, 2022, 8:11am UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/189 "2022-07-04T08:11:37Z")

</div>

Is there also the option to turn off a when card? like turn off a flow.

---

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [July 4, 2022, 9:21am UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/190 "2022-07-04T09:21:47Z")

</div>

> [@Advanced Flow — Ask Me Anything](https://community.homey.app/t/advanced-flow-ask-me-anything/65167/290):
>
> Is there also the option to turn off a when card?

Probably not?

[https://community.homey.app/t/advanced-flow-ask-me-anything/65167/285?u=prosumer](https://community.homey.app/t/advanced-flow-ask-me-anything/65167/285)

---

<div class="post-metadata">

**Author:** ![Jo\_San](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_san/32/3732_2.png) [@Jo\_San](https://community.homey.app/u/Jo_San)\
**Post date:** [July 4, 2022, 9:52am UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/191 "2022-07-04T09:52:43Z")

</div>

No, but you could make something similar by using a boolean value and checking that in an ALL construction.  
So for instance I have a time period of 3 minutes after a Homey reboot that I do not want most of my flows (triggers / WHEN cards) to be executed. I created a boolean “RebootHold” for that and combined that with almost any WHEN card. If RebootHold is true, the WHEN will not be executed.  
Similar for all different kind of modes, like “holiday”, “christmas”, etc.

---

<div class="post-metadata">

**Author:** ![Jero](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jero/32/17556_2.png) [@Jero](https://community.homey.app/u/Jero)\
**Post date:** [July 4, 2022, 11:26am UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/192 "2022-07-04T11:26:33Z")

</div>

No they are not saved. If you restart your Homey any pending delays are gone in Advanced Flow.

---

<div class="post-metadata">

**Author:** ![Ysald\_Zuidema](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ysald_zuidema/32/55047_2.png) [@Ysald\_Zuidema](https://community.homey.app/u/Ysald_Zuidema)\
**Post date:** [July 4, 2022, 11:33am UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/193 "2022-07-04T11:33:04Z")

</div>

Try to make the first advanced flow, but the flow does not change the VW We-Connect parameters.  
The max charging level will not change.

 ![firefox_Ab6Ujm6YGK](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/3/13e2b4e996b7bcc2d80a415946304ff9420b9f96.png)

---

<div class="post-metadata">

**Author:** ![Jo\_San](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jo_san/32/3732_2.png) [@Jo\_San](https://community.homey.app/u/Jo_San)\
**Post date:** [July 4, 2022, 12:38pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/194 "2022-07-04T12:38:58Z")

</div>

At the first glance I would say it would always stay at 16A. Try switching the blue and yellow of that first condition.

Or, inverse the card to “is greater than”.

---

<div class="post-metadata">

**Author:** ![Robin\_van\_Kekem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_van_kekem/32/8187_2.png) [@Robin\_van\_Kekem](https://community.homey.app/u/Robin_van_Kekem)\
**Post date:** [July 4, 2022, 12:52pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/195 "2022-07-04T12:52:26Z")

</div>

Every 2 minutes, that’s a tough one for your Homey.  
I always try to avoid these kind of triggers.

Isn’t it possible to use another trigger, like ‘Started Charging’ ?

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [July 4, 2022, 12:57pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/196 "2022-07-04T12:57:10Z")

</div>

> [@Robin\_van\_Kekem](#):
>
> Every 2 minutes, that’s a tough one for your Homey.

That shouldn’t be a problem at all, providing it takes less than 2 minutes to process the flow.

---

<div class="post-metadata">

**Author:** ![Robin\_van\_Kekem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_van_kekem/32/8187_2.png) [@Robin\_van\_Kekem](https://community.homey.app/u/Robin_van_Kekem)\
**Post date:** [July 4, 2022, 2:13pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/197 "2022-07-04T14:13:49Z")

</div>

When you only have one flow doing stuff every 2 min, then yes.  
But I’m fairly positive this isn’t the only flow on his Homey and probably not the last. 😄

I try and avoid these kind of triggers.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [July 4, 2022, 2:41pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/198 "2022-07-04T14:41:40Z")

</div>

I have many flows that will trigger much more frequently than that and my Homey is still idle most of the time. For example, I monitor the light level to open / close curtains and switch lights on / off and that flow will trigger every 15 to 30 seconds due to the light fluctuations. 2 minutes is an eternity for Homey

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [July 4, 2022, 2:43pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/199 "2022-07-04T14:43:32Z")

</div>

Of course you should use time triggers with care if you use tons of 'em.  
I think using intervals smaller than 10s can get tricky.

To avoid all kinds of flows triggering at exact 1, 5, 15, 30, 60 seconds / minutes, I vary the time.  
For ‘every minute’ I use 59 or 61s (if that’s possible for the flow function ofc).  
For ‘every 10s’ I use 11s  
For ‘every hour’ I use 59 or 61 minutes etc.  
Maybe that’s overkill, but might help if Homey is very busy at specific times.

---

<div class="post-metadata">

**Author:** ![Ysald\_Zuidema](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ysald_zuidema/32/55047_2.png) [@Ysald\_Zuidema](https://community.homey.app/u/Ysald_Zuidema)\
**Post date:** [July 4, 2022, 3:47pm UTC](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579/200 "2022-07-04T15:47:11Z")

</div>

Its not about if it is good to use a timer for every 2 minutes.  
But the flow works in principle fine.  
Because i want to change the charging level depending on the power thats available after all the power thats used in house.

I had placed also notification to check if the flow is working correctly.  
But the flow is not changing the parameters of the car.

But the normal flows works fine, but that are so many and with the advanced flow i can combine them all to one.

[Previous page](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579.md?page=9)

[Next page](https://community.homey.app/t/advanced-flow-community-q-a-from-ask-me-anything-05-07-2022/65579.md?page=11)
