# Basic flow setup. Do I need two flows or can I sue the "or and else"?

**URL:** <https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484>\
**Category:** Flows\
**Created:** [February 27, 2020, 8:18am UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484 "2020-02-27T08:18:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [February 27, 2020, 8:18am UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/1 "2020-02-27T08:18:33Z")

</div>

Hi all

Okay, I dare to say I’m quite an advanced homey user. I’'m trying to decrease the amount of flows I need.  
Say, trash is being collected tomorrow (thanks trashcan app!) I want that to be announced when I’m home.  
However, when I’m not home (or say, my GF is home) I just want a push notification (she is okay with my smart home, but, well, devices telling me what to do is next level :P.

Do I have to make two flows, one with her presence on, and one with her presence off?  
Or can I reduce that?

vkr  
victor

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 27, 2020, 9:30am UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/2 "2020-02-27T09:30:15Z")

</div>

No. You can do that with one flow.  
What you want is announce this when you are home but your GF is not.  
So just add both these conditions to the second section of the flow as AND condition.  
Cond1: You are home  
Cond2: GF not home  
in the THEN section you can then just do the announce and the push notify as ELSE action

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [February 27, 2020, 9:44am UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/3 "2020-02-27T09:44:51Z")

</div>

I’ll try this. Thanks! 🙂  
What would be the OR section then? Just for my info

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 27, 2020, 9:47am UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/4 "2020-02-27T09:47:25Z")

</div>

if you drag the flowcards a little down you will see the CONDITION area or the THEN area split up into two sections

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 27, 2020, 9:48am UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/5 "2020-02-27T09:48:27Z")

</div>

like ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/5/258798b7e3f1a38545b06c52a07a1c52d119ab3a.png)

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [February 27, 2020, 9:50am UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/6 "2020-02-27T09:50:43Z")

</div>

yeah, I found it. Sorry,. what I meant was, for what would I use the OR section?  
Think that else solution from you is perfect! Did a small test!🙂

---

<div class="post-metadata">

**Author:** ![Shakesbeard](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shakesbeard/32/15112_2.png) [@Shakesbeard](https://community.homey.app/u/Shakesbeard)\
**Post date:** [February 27, 2020, 9:55am UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/7 "2020-02-27T09:55:15Z")

</div>

Oh yes. Well you won’t need it for this usecase, but you could define two sets of “AND”-ed conditions in the condition section of the flow. So if you have two different sets of conditions which would trigger the “THEN” part you could do that.

Let’s say you additionally wanted to that you get an announcement if your GF is flagged sleeping. you could add that condition in the OR part of the condition block.

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [February 27, 2020, 10:23am UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/8 "2020-02-27T10:23:47Z")

</div>

Ah, I see, I have a another question but that is different to this one so I’ll keep it on topic. Thanks man!

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [February 27, 2020, 6:49pm UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/9 "2020-02-27T18:49:01Z")

</div>

> [@victoroos](#):
>
> I’'m trying to decrease the amount of flows I need.

Can I ask why?  
My experience is having less flows as a goal makes the flows more complex, errorproje and hard to debug.  
So i would suggest, think before you start doing that (and maybe take a look at my post [on how to structure your flows](https://community.homey.app/t/how-to-structure-your-flows/25109) (which does result in much more flows…))

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [February 27, 2020, 6:54pm UTC](https://community.homey.app/t/basic-flow-setup-do-i-need-two-flows-or-can-i-sue-the-or-and-else/26484/10 "2020-02-27T18:54:03Z")

</div>

I’ll look. Thanks. Mostly because I lost overviews as well. But I’ll look into your post. Thanks! 🙂
