real quick because i want to post the entire thing later but essentially everyone in my house knows this is setup and they don't check the mailbox in the morning. I know the mailman comes sometime after 10am so any open/close event prior to that is ignored and likewise any open/close event after the mail has been retrieved is ignored as open/close events are turned off at 10pm and then all 4 events are fully reset at midnight each day. This eliminates almost all false positives.
The 4 events below do most of the heavy lifting:
- mailman open event (reset to active every day at midnight)
- mailman close event (reset to active every day at midnight)
- other person open event (reset to inactive every day at 10pm)
- other person close event (reset to inactive every day at 10pm)
So really all I had to do is wait for the first time mailbox opens event after 10am and play the blues clues clip, email and text notifications and activate the other person open event
Next when the mailman closes the mailbox (2nd e vent above) i activate other person close event and inactivate the mailman open event.
Now the mailbox is ready for someone who was notified to pick the mail up. The other person open event plays the 'you just got a letter, notifications, texts etc. and inactivate the mailman close event. When closed i deactivate the other person opened mailbox and we're done. The other person closed mailbox is technically still in an active state until the nightly reset but it doesn't hurt anything to be left on.
The beauty of this solution is
A. if nobody ever picks up the mail, no worries, the midnight reset gets the mailbox ready for the next day regardless
B. if someone picks the mail up after 10PM i don't blast the house w/ Sonos because I disable the triggers at that time WAF required me to fix this almost from day one.
C. if more than one person opens the mailbox because they didn't get the text, no worries as the trigger will only fire once.