# How to debug flow(s)?

**URL:** https://community.homey.app/t/how-to-debug-flow-s/41883
**Category:** Questions & Help
**Created:** [January 27, 2021, 4:55pm UTC](https://community.homey.app/t/how-to-debug-flow-s/41883 "2021-01-27T16:55:31Z")
**Posts on this page:** 7
**Page:** 2

<div class="post-metadata">

### Author: ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)
#### Post date: [February 3, 2021, 10:51am UTC](https://community.homey.app/t/how-to-debug-flow-s/41883/22 "2021-02-03T10:51:27Z")

</div>

@Dijker Please check previous post. Am I doing it wrong, or should I submit an [issue](https://github.com/Dijker/nu.dijker.PaperTrails/issues)?

---

<div class="post-metadata">

### Author: ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)
#### Post date: [February 3, 2021, 9:54pm UTC](https://community.homey.app/t/how-to-debug-flow-s/41883/23 "2021-02-03T21:54:32Z")

</div>

Today I got mail; it triggered the vibration sensor alarms, but when the mail dropped on the floor it also triggered the motion sensor… (so no new mail notification)

I need to think whether putting the motion sensor somewhere else can help; otherwise I might end up needing to buy that door sensor…

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [February 4, 2021, 5:55am UTC](https://community.homey.app/t/how-to-debug-flow-s/41883/24 "2021-02-04T05:55:38Z")

</div>

Almost every motion sensor is based on differential detection (differences in heat energy), so it’s likely that it noticed some cold air coming in the house through the letterbox, instead of the actual motion of the mail dropping on the floor.

---

<div class="post-metadata">

### Author: ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)
#### Post date: [February 4, 2021, 6:10am UTC](https://community.homey.app/t/how-to-debug-flow-s/41883/25 "2021-02-04T06:10:10Z")

</div>

> [@prosumer](#):
>
> I thought the `$` was for that, so I tried: `$mailbox Mail!` as message and expected:

Guess you use the default add to the log and forward all to syllogism.  
This is only implemented in the send a syslog msg card.

 ![Screenshot_20210204-070722_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f141851fd8d012c9d57b713d561ff7e92e45a689.jpeg)

---

<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 4, 2021, 6:20am UTC](https://community.homey.app/t/how-to-debug-flow-s/41883/26 "2021-02-04T06:20:12Z")

</div>

> [@robertklep](#):
>
> Almost every motion sensor is based on differential detection (differences in heat energy),

Was just thinking the same: must have been some “hot news” dropping in 😆  
(Bit probably ineed, cold air or very cold package)

---

<div class="post-metadata">

### Author: ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)
#### Post date: [February 4, 2021, 8:14pm UTC](https://community.homey.app/t/how-to-debug-flow-s/41883/27 "2021-02-04T20:14:48Z")

</div>

> Guess you use the default add to the log and forward all to syllogism.  
> This is only implemented in the send a syslog msg card.

I was indeed using the wrong log option.

However, now that I use the syslog msg (with `$mailbox` in front of the message), the word “mailbox” does still not appear on the log server (rsyslog on Raspberry Pi).

(it does show up in the log in the App itself, but it already did that with the wrong log option)

---

<div class="post-metadata">

### Author: ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)
#### Post date: [February 17, 2021, 12:43pm UTC](https://community.homey.app/t/how-to-debug-flow-s/41883/28 "2021-02-17T12:43:56Z")

</div>

I ended up with this much simpler setup, which seems to work, so far:

1. When vibration alarm, send a notification
2. When I arrive at home, disable flow 1 and re-enable it after 5 minutes
3. When movement detected in hall, disable flow 1 and re-enable after 2 minutes

(Homey’s “native” location awareness does not work for me, but webhooks in [Geofency](https://geofency.com/) work fine)

[Previous page](https://community.homey.app/t/how-to-debug-flow-s/41883.md?page=1)
