Explaining the Homey Advanced Flow Logic

There might be many questions, but I need to clear them for myself.

  1. What will happen if we define multiple WHEN triggers in one flow?
    If one is applied, then it will be triggered or as soon as the first one is triggered, others will be ignored. If one is applied, then the others will be ignored. My thermostat has multiple triggers based on time that work, but the one that’s related to presence doesn’t work. I made a trick and changed the trigger to time (every x min), but it is not an efficient way to check every 30 minutes.

  2. Is there a difference between having all flows in one flow or multiple flows?
    Following the above question, I divided multiple flows into different ones, but there is no change in the result. I have the same question, if the trigger of a follow is met, what will happen to others?

  3. Is there a method to prioritize a flow?

Some points:

  • I have multiple phones. I decided to exclude some because usually, I do not take all phones with me.

Here are my current flows I have.



I think it would be better if you showed examples of the flows you are discussing.

  1. when the event in a WHEN card has occurred, the flow will start from this WHEN card
  2. events will never happen at the same time. So you cannot have a flow start with two or more WHEN cards, by combining them in an ALL card.
  3. more then one flow can be one one canvas. However you can only disable a canvas
  4. you cannot prioritize flows

No, if you have multipe triggers in an advanced flow, each will be triggered if the occurrence happens. It also doesn’t matter in what order you place the triggers in a flow.

[each 30 min] wil run each 30 min
[when 13:00] wil run at 13:00

if at 13:00 is exactly 30 min after the last [30 min] they will run both

it works the same as if you put each trigger in a separate flow.

So you’re issue is caused by something else…

“Conditions” is not the right term in this context. The cards that start a flow are the “When/If” or imo trigger cards. Just to be correct.

@Alee_H as @Rmb already mentioned, please post a screenshot from your flow.

I am just strugling how to describe that the trigger cards fires, that an event has happend, that an interrupt has occurred etc.
I agree that a condition is mostly mentioned in IF statements. However Homey does not use statements but flow cards with a less strict syntax.

1 Like

This simple flow tells 2 of my lamps how to react when i come home or go away, go to sleep or wake up or the light drops under or rises above a certain lux value.

Thanks. I have added my flows to the question and added more explanations.

Previously, I had all in one flow and now in different flows. However, I still miss it when I leave home. It doesn’t turn off when I leave the house. Do you see any issues with it?

Bedankt Wim :raised_hands:

But the issue is that mine doesn’t work when I leave the house. It doesn’t turn off when I leave.

Dear @Rmb,

Thanks for your reaction. I have added screenshots and more explanations. The main issue that I have is that my thermostat doesn’t get off when I leave.

Dear @DirkG,
It is done :slight_smile: Please check it and let me know what you think.

It looks like your presence/away detection is not working properly.

I am using the iOs -app ‘locative’ to manage my presence, as the built in Homey-presence is not working reliable.

( is your household one person? ‘A home’. Is that you or one of phones?)

1 Like

In that case the event in the WHEN card never occurs. You can easily see that to add a time line card directly after the WHEN card with a usefull message.

Btw you ‘when time is 22:00’. Any and All output both point at tempnight.

Sure you want that ? Like, it it doesn’t matter if your at home, if temp is below limit or if its between october and April, in any of the cases it will trigger.
If so, you can omit the All …

1 Like

When the time is 22:00 all routes always end in setting temperature to midnight. So just skip all the AND cards in between.

If the first flow is the only one which doesn’t work, then there seems to be something wrong with the Homey presence, like @Wim_Post already mentioned. Maybe because you use(ed) multiple phones.

@Rmb Thanks for your message. I have simplified the flow to share here. I have many messages for any situation. I am uncertain as to why the “not present” component functions.

I had a flow with the trigger of “checks every 30 minutes,” which worked, but I would rather not check it every 30 minutes, so I just triggered it when I was done.

Currently, I am writing a script to see if it works or not.

It is a test at this stage. I want to check the core functionality which doesn’t work. Later, I can adjust the logic.

I am going to check it but it is so weird because as I explained with the “every 30 mins” trigger, it works.

Just make two test flows. One flow that starts with the event some one leaves home and then writes a message to the time line. Another flow that checks every minute the state of the presence of the same person and writes this state to the time line too.
I cannot imagine that the presence status changes whilst not triggering the WHEN event.

You also might add a third flow that starts when somebody comes home and writing a message to the time line. Just to see what works and what not.