Hey everyone, I’m trying to set up an automation rule for my garage door using RM4. The goal is to have the garage door open when either my wife or I arrive home, detected by our smartphones’ presence. I’ve got it working to some extent, but there’s a hiccup when both of us are in the same car. The garage door opens when the first person arrives, but then it tries to close when the second person’s arrival is detected. That’s not ideal because we usually come in together and don’t want the door to close prematurely.
Here’s what I’ve set up so far:
- Trigger: When either User A (me) or User B (my wife) arrives home.
- Action: If the time is between 7:30 AM and 10:30 PM, open the garage door.
I want to add a condition where if both User A and User B arrive within 2 minutes of each other, the garage door should only open once and not attempt to close immediately. However, I’m not sure how to implement this logic within the rule editor. I’ve tried using a repeat/until statement, but it doesn’t seem to handle the dual arrival scenario correctly.
I’m using a Sonoff SV as a pulse relay to control the garage door opener. The setup works fine when only one of us is home, but the issue arises when we’re both present. I’d really appreciate any advice or suggestions on how to refine this rule to prevent the garage door from closing when both of us are arriving together. Thanks in advance for your help!