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

I use an “if power changes” as the starting point but an “AND” after that, that “AND” has a better logic card that checks a specific status, so you can have:"

  • power changes and the dishwasher was off (so set status to on now, its running)

  • power changes and the dishwaser was on (so set status to “cooldown” now, it seems to have finished cleaning but is still “on”, the amount of time after that timestamp is fixed so set a countdown;

  • when power changes, the status is cooldown and the countdown is finished then it must be finished, so set atatus to off again and tell me its done (the dishwasher itself beeps within 10 seconds of that notification_

And yes: My dishwasher allready beeps when its done but this is WAY WAY COOLER !!!

Haha yeah, way cooler to setup Homey flows. But still don’t get why the 3rd would ever trigger, since the power never changes again after it starts the cooldown right?

It does, what happens is:

  1. cleaning cycle
  2. wait a bit
  3. some shit I do not know what it is doing, but 5 seconds of dishwasher noise again
  4. couple of beeps to indicate finished

Number 3 triggers a power change… But basically I could also just trigger that last one on the countdown only… The effect would be the same I think…

Ah okay, so yeah if the power does change it would trigger again and there is no issue, for example my dishwasher beeps for 2 min after it is done, then turns completely off, so there won’t be any power change afterwards. I’ll just keep using my old flows with the separate when trigger then, Don’t fix it if it ain’t broken haha

Understand… still some kind of loops would also be nice… Sometimes you need something in a loop… I am now doing that by making use of statusses… I mainly use it combined with automation triggered by power usage, so "when power changes"is always my start, that makes loops work, but a “real loop” would be even nicer I think !

You could fake it… instead of looping back set a variable or increase a number and create a second flow that looks for such a change…:

our of the primary loop: set variable to “loopback”
secundary loop: check if variable is set to “loopback”, if so then make variable empty again and restart primary flow.

1 Like

question on the else part:
image

in understand the “then” part, so if all conditions are true, then execute the 4 actions on the right, that means if only 3 conditions are true no action will take place.
but the else part would ONLY fire if ALL conditions are false and i guess you want an else whenever the then is false.
do you understand what i mean?
you have x different states of you conditions and only one state leads to execute the then, x-1 states leads to else which is only fired in 1 single state.

1 Like

I have not been able to test this one out, its basically just my old flows combined into one (and those worked), but lets see if I understand:

For what you have circled withe the red line:

When this part of the flow is reached the logic thinks the car is in cooldown mode, next step should be that charging is finished. If after the timer runs out the car has started to use power again then it was not finished but the car apparently decided to pause charging (maybe it got to hot or something), in that case the status should be “Aan” (meaning its charging).

In other words: The bottom flow should EITHER finish the charging cycle (THEN) or just put the car in charging mode again (ELSE)…

I get you… I would be better off just saying “ANY” at the "ELSE"here instead of ALL right ?

1 Like

exactly! so else should come when at least ONE condition fails, not ALL…

1 Like

Fixed it, thanks!

No no… always fix… more new flow is more better :slight_smile:

1 Like

but you inspired me to restructure my advanced flow.
i started with having triggers multible and conditions only once, but now i changed like you to have each trigger only once, but conditions can be more often in one flow. feels better…

so from here:

to here:

1 Like

More wrinkly lines is more better :slight_smile:

You way worked also…

I notice this:

image

Does “any” work in both ways ? I figured it worked “left to right”, any condition met would lead to the flow continuing, it also works the other way around? So all actions will be taken ?

Would it not also work without the ANY ?

yes it works in both directions, all actions will be taken.
i only use it for more structure :slight_smile:

1 Like

I’m missing a card in “ALS” (IF) → “FLOW” when i use Advanced Flow.
It’s the card with only “Deze flow is gestart” (This flow did start).

I did try a view times but i don’t see this card any more in Advanced Flow, i still can see it in the “normal” Flow.

Do i something wrong or is it a error in Advanced Flow?
Thanks for helping.

In “normal” Flow:

In Advanced Flow:

That one has been replaced by the play(Start)-button.
image

2 Likes

You just use the Start option instead
image

image

3 Likes

I can’t understand how I can start an Advanced Flow with a “When” or “And” card :face_with_raised_eyebrow:
I can only select standard “old” flows…

As @Dijker said, you need to add the Start button to your advanced flow for them to show up in the list.

1 Like

Starting another flow is always done with an action card aka Then card. That is no difference from a simple Flow.