# Using “AND” or “enable/disable flow” a trade-off

**URL:** <https://community.homey.app/t/using-and-or-enable-disable-flow-a-trade-off/9473>\
**Category:** Flows\
**Created:** [February 20, 2019, 8:14pm UTC](https://community.homey.app/t/using-and-or-enable-disable-flow-a-trade-off/9473 "2019-02-20T20:14:20Z")\
**Posts on this page:** 1\
**Page:** 1

<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 20, 2019, 8:14pm UTC](https://community.homey.app/t/using-and-or-enable-disable-flow-a-trade-off/9473/1 "2019-02-20T20:14:21Z")

</div>

**Description of the flow (what are you trying to achieve)**  
The flows below are example of how to use enable/disable flow OR the “AND” card

**What is needed to create this flow?**  
Standard functionality  
although the example does show the use of the  
timer app: [https://apps.athom.com/app/com.synplyworks.thenmor](https://apps.athom.com/app/com.synplyworks.thenmor)  
Betterlogic app for variables “radio timer” “radio timer schoonmaak”: [https://apps.athom.com/app/net.i-dev.betterlogic](https://apps.athom.com/app/net.i-dev.betterlogic)  
Virtual device app to create a virtual device “playing”: [https://apps.athom.com/app/com.arjankranenburg.virtual](https://apps.athom.com/app/com.arjankranenburg.virtual)

When creating a flow that should not always run you have two options:  
1 use the “AND” card  
2 enable or disable the flow  
For motion controller triggered flow I tend to use enable/disable. It prevents triggering a flow every time motion is detected (although I never experienced processor overload issues with homey)  
Although it requires more flows

Using the “AND” card the flow would look like this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/6a4e851e78bd80c2bb4034857e532c91d319b584.jpeg)  
(The “Then” card contains a timer that triggers the a device called “playing”. It is triggered for a time period specified by a variable created in the better logic app. The variable is used via the “tag” option)

Using enable disable the flows look like this:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/d9a550a61f6d01656f570d38ebcb79ca51ef9bf4.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/2/2c469bf2d2acce76e59985029b5ad347276d622e.jpeg)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/3/34c7358e68bb21494c4a0481d890548a45af2d26.jpeg)  
Notice the “AND” column is empty now

This does require 2 extra flows.  
BUT an advantage is also that you can add a different “AND” card.  
I needed that because I wanted a longer time period when the cleaning lady (virtual device “schoonmaak”) is in.  
A combination of “radio on” and “schoonmaak on” in the “AND” card would not work (if one of the two is false it would trigger the “ELSE” card.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/9df4a76f14c4f43a541f5dc99abdb1af8f3e1d54.jpeg)
