# Homey Pro / Advanced Flow logic problem

**URL:** <https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773>\
**Category:** Flows\
**Tags:** advancedflow\
**Created:** [June 20, 2024, 7:05pm UTC](https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773 "2024-06-20T19:05:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Athomed](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Athomed](https://community.homey.app/u/Athomed)\
**Post date:** [June 20, 2024, 7:05pm UTC](https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773/1 "2024-06-20T19:05:00Z")

</div>

Hello,

I have a little problem here.  
My “Weather” should have been set to “No” as currently there’s a “Thunderstorm”.  
Unfortunately, it’s showing a “Yes”…

Any idea about what I’m doing wrong?

 ![Screenshot 2024-06-20 at 21.03.08](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/d/1dc5811155e98252f907d9054bb916085baef831.png)  
 ![Screenshot 2024-06-20 at 21.03.15](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/1/81b52488d96b97a42f573e7e8d7df5bcef733129.png)

---

<div class="post-metadata">

**Author:** ![Athomed](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Athomed](https://community.homey.app/u/Athomed)\
**Post date:** [June 20, 2024, 8:06pm UTC](https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773/2 "2024-06-20T20:06:37Z")

</div>

I wonder how could I add several And…

When Dusk starts  
And it’s cloudy  
And we’re Monday  
Then do something  
Elsewhere do something else

---

<div class="post-metadata">

**Author:** ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)\
**Post date:** [June 21, 2024, 5:51am UTC](https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773/3 "2024-06-21T05:51:42Z")

</div>

Not all four can be true in the same time. There will be at least one path leading to no. This because your flow starts with checking all 4 cards directly. The checks needs to be ion an order. So first check top action. If true set weather to yes. If not true, check the next condition.

---

<div class="post-metadata">

**Author:** ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)\
**Post date:** [June 21, 2024, 5:52am UTC](https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773/4 "2024-06-21T05:52:32Z")

</div>

Maybe check: [https://www.youtube.com/watch?v=GdvPs9Jd8Ts](https://www.youtube.com/watch?v=GdvPs9Jd8Ts)

But if action card is true (top line) then add and-card

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [June 21, 2024, 8:12am UTC](https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773/5 "2024-06-21T08:12:36Z")

</div>

> [@Athomed](#):
>
> I wonder how could I add several And…

In normal flows you have more than 1 AND cards.  
In advanced flows I think you use the ALL card, to make shure ALL inputs are true. With the ANY card the flow continues if one of the inputs is true.  
When you run your flow as test, you will see what happens and in which order the cards are executed.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [June 21, 2024, 1:39pm UTC](https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773/6 "2024-06-21T13:39:34Z")

</div>

> [@Hielke\_de\_Jong](#):
>
> Not all four can be true in the same time.

There are not four but tree conditions, and they can all be true at the moment Dusk starts. Adding the two And cards will work fine.

---

<div class="post-metadata">

**Author:** ![Athomed](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@Athomed](https://community.homey.app/u/Athomed)\
**Post date:** [June 21, 2024, 1:54pm UTC](https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773/7 "2024-06-21T13:54:17Z")

</div>

Thanks guys, very powerful, it’s working like a charm!

 ![Screenshot 2024-06-21 at 15.53.50](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/4/c4e0025c71f9b1147d0210c6bbf7382644c11e85.png)

---

<div class="post-metadata">

**Author:** ![Hielke\_de\_Jong](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/hielke_de_jong/32/79029_2.png) [@Hielke\_de\_Jong](https://community.homey.app/u/Hielke_de_Jong)\
**Post date:** [June 22, 2024, 10:01am UTC](https://community.homey.app/t/homey-pro-advanced-flow-logic-problem/111773/8 "2024-06-22T10:01:38Z")

</div>

My reaction was about the screenprint not about the text.
