Successfully Adding a Delay to Intrusion Alerts

I wanted to share my experience in successfully adding a delay to my Smart Home Monitor (SHM) intrusion alerts. This was a bit of a challenge, but I managed to figure it out with some trial and error. Here’s how I did it:

The Problem:
I noticed that when I unlock my front door using the keypad, the SHM system would sometimes trigger an intruder alert even though I was just entering the house. This was frustrating because it would happen even when I was in a hurry and didn’t have time to disarm the system properly.

The Solution:
After some research, I found a way to add a 20-second delay before the SHM system issues an intruder alert. This delay gives me enough time to unlock the door and disarm the system without triggering a false alarm. Here’s a breakdown of the steps I took:

  1. Create Virtual Switches:

    • I created two virtual switches in the IDE: one called “S1” and another called “S2”. These switches act as triggers for the automation process.
  2. Configure Open/Close Sensors:

    • I set up all my open/close sensors to trigger “S1” when they detect an opening. This means that whenever a door or window is opened, “S1” turns on.
  3. Set a Timer for “S1”:

    • Using the Power Allowance SmartApp, I configured “S1” to turn off automatically after 20 seconds. This creates a brief window during which I can unlock the door without triggering an alert.
  4. Trigger “S2” When “S1” Turns Off:

    • Once “S1” turns off, it triggers “S2” to turn on. This second virtual switch is essential for the next step.
  5. Activate a Virtual Motion Sensor:

    • I created a virtual motion sensor in the IDE. When “S2” turns on, it activates this virtual motion sensor, which SHM monitors for intrusion alerts.
  6. Configure SHM to Monitor the Virtual Motion Sensor:

    • I updated my SHM settings to only monitor the virtual motion sensor for intrusion alerts. This ensures that the system doesn’t react to real-time sensor data until the delay has passed.
  7. Reset the System After a Few Minutes:

    • To prevent the system from staying active indefinitely, I set up another automation to turn off “S2” and reset the virtual motion sensor after a few minutes.

The Outcome:
This setup has been working perfectly for me. The 20-second delay gives me enough time to unlock the door and disarm the system without triggering a false alarm. It’s a simple yet effective solution that has significantly reduced the number of false alerts I receive.

I hope this helps anyone else who’s struggling with similar issues. If you have any questions or need further clarification, feel free to ask!