# Mailbox Flag

**URL:** <https://community.homey.app/t/mailbox-flag/141845>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro, advancedflow\
**Created:** [August 18, 2025, 10:53pm UTC](https://community.homey.app/t/mailbox-flag/141845 "2025-08-18T22:53:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [August 18, 2025, 10:53pm UTC](https://community.homey.app/t/mailbox-flag/141845/1 "2025-08-18T22:53:02Z")

</div>

OK, so I have a tough 1 here, well for me at least!

I want to create a flow that works just like normal mailbox flag, but it’s automatic.

So this is how I’d like it to work.

1. When the mailbox is opened by mailman, “You’ve got mail” switches to TRUE
2. When someone in family opens it, “You’ve got mail” switches to FALSE

The issue I’m having is deciphering who is opening the mailbox, IF it was just me, I’d probably just have a button to press to “put the mailbox flag down” but I know my wife and daughter will NEVER do that. I’m trying to figure something out like:

WHEN mailbox is opened and front door does not open within 1 minute then switch “You’ve got mail” to TRUE, if it does open within 1 minute, switch “You’ve got mail” to FALSE

WHEN mailbox is opened AND front door opens within 1 minute Switch “You’ve got mail” to FALSE. Or,

WHEN front door is opened AND mailbox is opened within 1 minute, switch “You’ve got mail” to FALSE

Also,

When Someone comes Home and “You’ve got mail” is TRUE, notify them, then switch “You’ve got mail” to FALSE but only if they opened the mailbox, if they didn’t open the mailbox, THEN remain TRUE until someone leaves or arrives at home, THEN if the mailbox and door open within 1 minute if each other, switch “You’ve got mail” to FALSE.

Kinda confusing I guess, but that’s why I’m having trouble!

---

<div class="post-metadata">

**Author:** ![GauXu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gauxu/32/121041_2.png) [@GauXu](https://community.homey.app/u/GauXu)\
**Post date:** [August 19, 2025, 3:52am UTC](https://community.homey.app/t/mailbox-flag/141845/2 "2025-08-19T03:52:27Z")

</div>

Flow 1- When mailbox is opened \> switch to false (disable after created)

Flow 2- When front door is opened\> and You’ve got mail is TRUE \> enable flow 1 \> wait 1 min\> disable flow 1

Flow 3- When mailbox is opened \> and flow 1 is disable \> switch to true

Flow 4- When the someone came home \> and You’ve got mail is TRUE\> send notification\> enable flow 5 \> wait x min\> disable flow 5

Flow 5- When mailbox is opened \> wait 1 min\> and flow 1 is enable\> switch to false (disable after created)

---

<div class="post-metadata">

**Author:** ![Cuprum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cuprum/32/41409_2.png) [@Cuprum](https://community.homey.app/u/Cuprum)\
**Post date:** [August 19, 2025, 5:07am UTC](https://community.homey.app/t/mailbox-flag/141845/3 "2025-08-19T05:07:36Z")

</div>

Actually… do You really need the _automatic_ notification, when mail is collected? 😉

I personally use the following system:

- Mailbox’s “mailmans door” is monitored by Fibaro window sensor ( indoor one, but for now ~3 year working totally outside - only cover is the mailbox upper ( mailman ) door
- IF sensor hits, then message inside of house (Google Cromecast) and yellow light on home-made “switch panel”.
- IF someone collects mail - then just pushes switch with yellow light and light ( some analogy of US style mail flag) switches off. Just for fun also the “Mail collected” message

PS. In principles i can use another sensor to automate ( have “get the mail” door also on my mailbox) - but the current system serves me well and do not had a idea to implement second sensor instead my switch.

May be simpler is better 😉 and start with it - allwaysis possibility to improve after.

---

<div class="post-metadata">

**Author:** ![Anders\_Gregow](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anders_gregow/32/61721_2.png) [@Anders\_Gregow](https://community.homey.app/u/Anders_Gregow)\
**Post date:** [August 19, 2025, 8:36am UTC](https://community.homey.app/t/mailbox-flag/141845/4 "2025-08-19T08:36:46Z")

</div>

Is it important to know who fetched the mail?  
That might be tricky to implement.

Your mailbox only have one lid to put and fetch mail?

---

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [August 20, 2025, 1:28am UTC](https://community.homey.app/t/mailbox-flag/141845/5 "2025-08-20T01:28:29Z")

</div>

Flow 1- When mailbox is opened \> switch to false (disable after created)

```auto
* > switch You’ve got mail to FALSE, then disable Flow 1?

```

Flow 2- When front door is opened\> and You’ve got mail is TRUE \> enable flow 1 \> wait 1 min\> disable flow 1

Flow 3- When mailbox is opened \> and flow 1 is disable \> switch to true

```auto
* > Switch You've got mail to TRUE?

```

Flow 4- When the someone came home \> and You’ve got mail is TRUE\> send notification\> enable flow 5 \> wait x min\> disable flow 5

Flow 5- When mailbox is opened \> wait 1 min\> and flow 1 is enable\> switch to false (disable after created)

```auto
* > Switch You've got mail to FALSE, then disable Flow 5?

```

---

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [August 20, 2025, 1:33am UTC](https://community.homey.app/t/mailbox-flag/141845/6 "2025-08-20T01:33:35Z")

</div>

Yeah my wife and daughter will not press anything to disable the “mailbox flag”

And even if they are willing to, they will never remember

I had a simple setup like this, but like I said, they never used it lol

---

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [August 20, 2025, 1:34am UTC](https://community.homey.app/t/mailbox-flag/141845/7 "2025-08-20T01:34:34Z")

</div>

Not important to know who got the mail, just that it has been fetched.

Yes my mailbox only has 1 lid

---

<div class="post-metadata">

**Author:** ![GauXu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gauxu/32/121041_2.png) [@GauXu](https://community.homey.app/u/GauXu)\
**Post date:** [August 20, 2025, 2:58am UTC](https://community.homey.app/t/mailbox-flag/141845/8 "2025-08-20T02:58:16Z")

</div>

Flow 1 and 5 will stay disable until flow 4 and 2 enable its.

Flow 4 and 2 will enable flow 1 and 5 and disable its after x min ( adjust based on the time you going to take the mail before/after you open the front door )

Flow 1- when you exit your house from front door and take the mail. ( switch you’re got mail to false )

Flow 3- When the mailman opened the mailbox ( switch you’re got mail to true )

Flow 5- when you arrived and take the mail then enter the house. ( switch you’re got mail to false )

---

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [August 28, 2025, 9:45pm UTC](https://community.homey.app/t/mailbox-flag/141845/9 "2025-08-28T21:45:46Z")

</div>

I’m trying to avoid using 5 different flows, I feel like you should be able to use variables. I’ve been trying, but I’m having trouble translating the 5 flows into variables.

---

<div class="post-metadata">

**Author:** ![GauXu](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gauxu/32/121041_2.png) [@GauXu](https://community.homey.app/u/GauXu)\
**Post date:** [August 29, 2025, 3:36am UTC](https://community.homey.app/t/mailbox-flag/141845/10 "2025-08-29T03:36:32Z")

</div>

**Advanced Flow**

1.Variable- hasMail (Yes/No)

2.Variable- mailboxAccessWindow(Yes/No)

**Trigger 1: When Mailbox is opened**

→ IF Local Variable mailboxAccessWindow = **Yes**

→ THEN

Set Logic Variable hasMail = **No**

→ ELSE

Set Logic Variable hasMail = **Yes**

⸻

**Trigger 2: When Front Door is opened**

→ AND Logic Variable hasMail = **Yes**

→ THEN

Set Local Variable mailboxAccessWindow = **Yes**

Wait 1 minute

Set Local Variable mailboxAccessWindow = **No**

⸻

**Trigger 3: When Someone came home**

→ AND Logic Variable hasMail = **Yes**

→ THEN

Send push notification:

---

<div class="post-metadata">

**Author:** ![Cuprum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cuprum/32/41409_2.png) [@Cuprum](https://community.homey.app/u/Cuprum)\
**Post date:** [August 29, 2025, 5:16am UTC](https://community.homey.app/t/mailbox-flag/141845/11 "2025-08-29T05:16:56Z")

</div>

First look - it may work. But there are some uncovered scenarious…

- What happens, if mailman comes in Your footsteps? You come home and ~30sec after comes mailman 😉
- What happens, if You small-talk with neigbhour? Out for mail, but then 5 minutes talky-talky and then takes mail.
- What happens, if You come home and take mail before opening door

Hmm, and i’m not talking ‘bout real life, where the signals may delay or totally miss…

PS. One more recommendation - do not use delay in logic to manage mailboxAccessWindow. Better use some of count down timers (there are hmm, at least 3..4 apps with such feature). Just when door opens, start count-down, and if mailbox opened, check, if timer is running. Additional feature - countdown zerro can triger message: You forgot to take mail 😉 Ok, spam, if You really goin’ out when something in mailbox.

---

<div class="post-metadata">

**Author:** ![Luigi\_Colancecco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luigi_colancecco/32/82268_2.png) [@Luigi\_Colancecco](https://community.homey.app/u/Luigi_Colancecco)\
**Post date:** [September 15, 2025, 11:58pm UTC](https://community.homey.app/t/mailbox-flag/141845/12 "2025-09-15T23:58:39Z")

</div>

I’ll this when I get a chance, my life has been WAY TOO BUSY lately! lol
