# Explanations on Flow logic

**URL:** <https://community.homey.app/t/explanations-on-flow-logic/55190>\
**Category:** Flows\
**Created:** [November 21, 2021, 1:30pm UTC](https://community.homey.app/t/explanations-on-flow-logic/55190 "2021-11-21T13:30:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kempo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kempo/32/36522_2.png) [@Kempo](https://community.homey.app/u/Kempo)\
**Post date:** [November 21, 2021, 1:30pm UTC](https://community.homey.app/t/explanations-on-flow-logic/55190/1 "2021-11-21T13:30:08Z")

</div>

Hi,

I need a little help to better understand flow logic about these 3 points:

- Is it possible to use “OR” between 2 triggers to launch a flow? I know i can use “OR” but only for the 3rd trigger, i want to use “When trigger 1 OR trigger 2 Then”
- I dont understand very well the difference of possibilities between “WHEN” section and “AND” section. For instance, in “WHEN” i have possibilities on my Netatmo thermostat to detect a change in temperature status, but in “AND” section i dont have the same possibilities…
- How can I check a status to control if the flow should be executed? To give an example, i want to create a Flow which will be triggered if the variable “Alarm Status” changed to “No” but only if my Netatmo mode is on the “Away” mode. I can store this status in a variable to check it but it’s a bit unconvenient…

Thx in advance! (And sorry for my bad english)

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [November 21, 2021, 1:54pm UTC](https://community.homey.app/t/explanations-on-flow-logic/55190/2 "2021-11-21T13:54:38Z")

</div>

For 1: not possible. Just one trigger per flow.  
For 2 and 3: maybe read [this topic](https://community.homey.app/t/how-to-use-tags-in-a-flow/9285) first. Explains a lot me thinks.

---

<div class="post-metadata">

**Author:** ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)\
**Post date:** [November 21, 2021, 2:05pm UTC](https://community.homey.app/t/explanations-on-flow-logic/55190/3 "2021-11-21T14:05:09Z")

</div>

> [@Kempo](#):
>
> Is it possible to use “OR” between 2 triggers to launch a flow? I know i can use “OR” but only for the 3rd trigger, i want to use “When trigger 1 OR trigger 2 Then”

No, what you can do is create a second flow, that calls the first one as the action if the first flow is a complex one. On a second note: You call the And part a trigger, but it is not. See my answer to question number two:

> [@Kempo](#):
>
> I dont understand very well the difference of possibilities between “WHEN” section and “AND” section.

The when is an event: the flow is checked when a change happens. The And is a state, so something that (already) is, or is not. So WHEN a light is TURNED on is not exactly the same as AND the light is on.

So if a light is turned on, Homey checks only those flows that have that “light is turned on” event in the When part. It will not look for any flows that check for the light being on in the and part.

> [@Kempo](#):
>
> How can I check a status to control if the flow should be executed? To give an example, i want to create a Flow which will be triggered if the variable “Alarm Status” changed to “No” but only if my Netatmo mode is on the “Away” mode

The variable change of “alarm status” is the trigger, so the When. the netatmo state away is something that should also be true for the action to be executed. You seem to be thinking in the wrong order, the event will always trigger the flow, but the action won’t occur if the and clauses are not met.

---

<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:** [November 21, 2021, 4:46pm UTC](https://community.homey.app/t/explanations-on-flow-logic/55190/4 "2021-11-21T16:46:27Z")

</div>

> [@Kempo](#):
>
> Is it possible to use “OR” between 2 triggers to launch a flow?

That, and more, is possible using the H.O.O.P. app

> **[Homey Community Store](https://store.homey.community/app/nl.qluster-it.HOOP)**
>
> The Homey Community Store (HCS) provides an alternative App Store for your Homey.

Forum topic with examples:

> [@H.O.O.P. (Hope) - Homey Object Oriented Programming](https://community.homey.app/t/h-o-o-p-hope-homey-object-oriented-programming/43709):
>
> UPDATE: Triggers (and condition-triggers) with argument Time! This way you can have one flow trigger at different times. Update: Its Live: [H.O.O.P. | Homey Community Store](https://store.homey.community/app/nl.qluster-it.HOOP)Bringing you H.O.O.P (Dutch for Hope). Homey Object Oriented Programming (for advanced users). This apps transforms your Homey in a programmable object, changing standard flow behavior. Take a look at the diagrams, examples and overal usages explanations. Create one (or more) Method Group device(s) and use it like…

---

<div class="post-metadata">

**Author:** ![Kempo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kempo/32/36522_2.png) [@Kempo](https://community.homey.app/u/Kempo)\
**Post date:** [November 21, 2021, 7:30pm UTC](https://community.homey.app/t/explanations-on-flow-logic/55190/5 "2021-11-21T19:30:09Z")

</div>

Hi thanks a lot for all your quick answers!  
@Edwin_D for the last point, the thing is that i was expected to find my Netatmo thermostat status available in the “AND” part as it is a status, but i cant find it… Whatever, i did what i said and record the status in a variable with an over flow.

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [November 21, 2021, 7:39pm UTC](https://community.homey.app/t/explanations-on-flow-logic/55190/6 "2021-11-21T19:39:10Z")

</div>

> [@Kempo](#):
>
> but i cant find it…

So u took a logic card and looked for the Netatmo tag and it wasn’t there?  
Like the logic card “is exactly”

 ![chrome_kqX1gD91vJ](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c028e5de345f8abbf35bce4eb5a71e11b084e938.png)

Must say i don’t have Netatmo but i expect there must be some tag available aye?

---

<div class="post-metadata">

**Author:** ![Kempo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kempo/32/36522_2.png) [@Kempo](https://community.homey.app/u/Kempo)\
**Post date:** [November 21, 2021, 9:25pm UTC](https://community.homey.app/t/explanations-on-flow-logic/55190/7 "2021-11-21T21:25:50Z")

</div>

Wow, that really helps thx!!!  
I just find the status of the thermostat.  
Though I don’t understand very well why I can’t find it through the object itself…  
Each time I’m searching for a status I should use the way you mention?
