# My flow keeps firing even though an AND statement is not met

**URL:** <https://community.homey.app/t/my-flow-keeps-firing-even-though-an-and-statement-is-not-met/11841>\
**Category:** Questions & Help\
**Created:** [April 14, 2019, 3:17pm UTC](https://community.homey.app/t/my-flow-keeps-firing-even-though-an-and-statement-is-not-met/11841 "2019-04-14T15:17:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoda99](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yoda99/32/9045_2.png) [@Yoda99](https://community.homey.app/u/Yoda99)\
**Post date:** [April 14, 2019, 3:17pm UTC](https://community.homey.app/t/my-flow-keeps-firing-even-though-an-and-statement-is-not-met/11841/1 "2019-04-14T15:17:01Z")

</div>

My new cleaning lady was in total shock 🙂 Lights flashing, alarm blaring, homey talking …

When my Nest sets itself to away an alarm flow is triggered but it should only trigger when ‘today is not monday’. It does it anyway. What am i doing wrong? See flow below.

 ![flowmonday](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/8/8a2a7b9a574f250f8a8e8409be715699ed6c94b0.jpeg)

---

<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:** [April 14, 2019, 3:30pm UTC](https://community.homey.app/t/my-flow-keeps-firing-even-though-an-and-statement-is-not-met/11841/3 "2019-04-14T15:30:34Z")

</div>

Maybe best discribe what u wanna achieve.  
If the cleaning lady is there on Monday and u guys are away then the flows should have like:  
When it’s not Monday AND we are both not at home. Not OR.  
But maybe u have other thoughts about this.

---

<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:** [April 14, 2019, 3:41pm UTC](https://community.homey.app/t/my-flow-keeps-firing-even-though-an-and-statement-is-not-met/11841/4 "2019-04-14T15:41:38Z")

</div>

> [@Yoda99](#):
>
> ut it should only trigger when ‘today is not monday’

As mentioned above, this is not what you build in your flow.  
The ORs make the flow fire even if the AND is not true.  
So probably one of the ORs where true at that time.  
You can add papertrails (see appstore) for making debugging easier

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [April 14, 2019, 4:18pm UTC](https://community.homey.app/t/my-flow-keeps-firing-even-though-an-and-statement-is-not-met/11841/5 "2019-04-14T16:18:10Z")

</div>

(And when your flows behave how you want them to behave, have a look at [Heimdall - Let Homey watch over your home](https://community.homey.app/t/heimdall-let-homey-watch-over-your-home/134) and [https://apps.athom.com/app/com.uc.heimdall](https://apps.athom.com/app/com.uc.heimdall) as I’m guessing you want to use your Homey as an Alarmsystem)

---

<div class="post-metadata">

**Author:** ![Yoda99](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yoda99/32/9045_2.png) [@Yoda99](https://community.homey.app/u/Yoda99)\
**Post date:** [April 14, 2019, 8:52pm UTC](https://community.homey.app/t/my-flow-keeps-firing-even-though-an-and-statement-is-not-met/11841/6 "2019-04-14T20:52:49Z")

</div>

I now see how my ANd - OR - OR is indeed the issue 🙂

So i dumped the ORs and just did ‘and if today is not monday’ and added an AND “Send a push confirmation” card.

Now tomorrow is monday 😄 lets see how it goes. Should I give her a heads up or… 🤪

Thx for all the tips, i’ve been checking Heimdall for a while but I was so proud of my gazillion flows that do the same … 😉
