Best Smart Home Automations for Security (2026)
Best Smart Home Automations for Security (2026)
A smart security system is only as good as the automations running behind it. Cameras and sensors are reactive—they record after something happens. But well-designed automations are proactive. They deter break-ins before they occur, alert you instantly when something is wrong, and respond faster than any human could.
These eight security automations work across Alexa, Google Home, and Home Assistant. You don’t need a professional monitoring plan. You just need the right devices and a few minutes to set up each automation.
If you’re still building your system from scratch, start with our guide on how to start a smart home from scratch before adding security automations.
1. Auto-Lock Doors After X Minutes
Forgetting to lock the door is one of the most common security lapses. This automation locks your smart lock automatically after a set period—typically 2 to 10 minutes after the door closes or after it was last unlocked.
How it works: A door contact sensor detects the door closing. After your chosen delay, the smart lock engages. Some locks like the August WiFi Smart Lock have this built in, but an external automation gives you more control—like only auto-locking at night or when nobody is home.
Platform setup:
- Alexa: Use Routines → Trigger: Smart Lock unlocked → Wait 5 minutes → Action: Lock door
- Google Home: Use household routines with a time-based starter and lock action
- Home Assistant: Create an automation with a state trigger on the door sensor and a delay action before calling the lock service
Devices required: Smart lock (August, Yale, Schlage), door contact sensor (optional but recommended)
2. Arm Security When Everyone Leaves (Geofence)
Geofencing uses your phone’s location to detect when the last person leaves home. Once triggered, the automation arms your security system, locks all doors, and adjusts cameras to record mode.
How it works: Each household member’s phone is tracked. When the last phone exits the geofence radius (typically 150–300 meters from home), the automation fires. This eliminates the need to remember to arm anything manually.
Platform setup:
- Alexa: Limited native geofencing—use IFTTT or Life360 integration
- Google Home: Use “When everyone leaves” as a household routine starter
- Home Assistant: Use the Person entity with zone triggers and conditions checking all tracked persons are away
Devices required: Smartphones for all household members, smart lock, security system or camera with arm/disarm capability
3. Turn On Lights Randomly When Away (Presence Simulation)
An empty house with all lights off is an invitation. Presence simulation turns lights on and off in patterns that mimic someone being home—random timing, different rooms, matching your typical evening schedule.
How it works: When your home enters “away mode” (triggered by geofence or manual activation) and it’s after sunset, lights cycle on and off at randomized intervals across different rooms. The randomization is key—a perfectly timed schedule is obvious to anyone watching.
Platform setup:
- Alexa: Use “Away Lighting” feature in Alexa Guard Plus, or create multiple routines with staggered schedules
- Google Home: Set up scheduled routines for different lights with varied times
- Home Assistant: Use the random delay function in automations, or install the “Presence Simulation” custom component that replays your actual usage history
Devices required: Smart bulbs or smart switches in 3–5 rooms, smart plug for a living room lamp
4. Camera Alerts When Motion Detected and Nobody Is Home
Getting motion alerts while you’re home is annoying. This automation only sends camera alerts when the home is in “away” mode, reducing false notifications to near zero while ensuring you never miss an actual intrusion.
How it works: Cameras detect motion continuously, but notifications are suppressed while anyone is home. When the geofence triggers away mode, notifications become active. Some setups go further—recording to a different storage location or increasing camera resolution during away mode.
Platform setup:
- Alexa: Use Alexa Guard with Ring cameras—automatically adjusts alert sensitivity when Guard is in Away mode
- Google Home: Nest cameras allow presence-aware alerts through the Home/Away Assist feature
- Home Assistant: Use a condition in your notification automation that checks if anyone is home before sending alerts via the mobile app
Devices required: Security camera with motion detection, smartphone for geofencing, notification-capable hub
5. Front Light Turns On With Doorbell Press
When someone presses your video doorbell at night, this automation floods the porch with light. It improves camera footage quality and deters anyone with bad intentions by making it clear they’re visible.
How it works: The video doorbell’s button press event triggers nearby outdoor lights to full brightness. Lights stay on for 5–10 minutes before returning to their previous state. Pair this with the camera’s built-in spotlight for maximum coverage.
Platform setup:
- Alexa: Routine → Trigger: Doorbell pressed → Action: Turn on porch lights to 100%
- Google Home: Routine → Starter: Nest Doorbell ring → Action: Set outdoor lights to 100%
- Home Assistant: Trigger on doorbell button press event, call light.turn_on for porch group at full brightness with a 10-minute auto-off timer
Devices required: Video doorbell (Ring, Nest, Eufy), smart outdoor light or porch smart bulb
6. All Lights On + Siren If Alarm Triggered
If your security system’s alarm trips, this automation turns every light in the house to full brightness and activates sirens. The combination disorients intruders and signals to neighbors that something is wrong.
How it works: When your alarm system enters the “triggered” state, every smart light in the house turns on to 100% (some flash red for extra effect). Smart sirens or speakers sound a loud alarm. Simultaneously, you receive an urgent push notification with a camera snapshot.
Platform setup:
- Alexa: Ring Alarm integrates natively—set up a Routine triggered by alarm state change
- Google Home: Limited native alarm integration—use Nest Guard or third-party via IFTTT
- Home Assistant: Trigger on alarm_control_panel state change to “triggered,” call light.turn_on for all lights, media_player for siren sound, and notify for phone alerts
Devices required: Security system with alarm state reporting, all smart lights, smart siren or speaker, smart sensors on entry points
7. Notify If Door or Window Opens When Away
This is the simplest and most valuable security automation. If anyone opens a door or window while you’re away, you get an instant notification on your phone.
How it works: Contact sensors on doors and windows detect open/close states. While the home is in away mode, any “open” event triggers an immediate push notification with the specific door or window name. Pair with a camera snapshot for complete context.
Platform setup:
- Alexa: Routine → Trigger: Contact sensor opens → Condition: Guard in Away mode → Action: Send notification
- Google Home: Nest Detect sensors notify through the Nest app when armed
- Home Assistant: Trigger on binary_sensor state change to “on” for any contact sensor group, condition: nobody home, action: notify with entity name in the message
Devices required: Contact sensors on all exterior doors and accessible windows (budget: $15–20 each), hub for Zigbee/Z-Wave sensors
8. Auto-Close Garage If Left Open 10+ Minutes
An open garage is a massive vulnerability—it provides direct access to your home and its contents. This automation closes the garage automatically if it’s been open longer than a set threshold, and notifies you that it took action.
How it works: A garage tilt sensor or smart garage controller detects the open state. A timer starts. If the garage stays open past your threshold (10 minutes is common), the automation closes it and sends you a notification. For safety, many implementations include a warning beep 30 seconds before closing.
Platform setup:
- Alexa: Routine → Trigger: Garage sensor open for 10 minutes → Action: Close garage, send notification
- Google Home: Limited native support—use MyQ or similar smart garage controller with scheduling
- Home Assistant: Trigger on garage cover state “open” with a for: 10 minutes duration, action: cover.close_cover, with a 30-second delay and notification before closing
Devices required: Smart garage door controller (MyQ, Meross, Tailwind iQ3), tilt sensor or contact sensor on garage door
Security Automations Comparison Table
| Automation | Devices Needed | Platform Support | Difficulty | Deterrent Value |
|---|---|---|---|---|
| Auto-lock doors after X minutes | Smart lock, door sensor | Alexa ✓ Google ✓ HA ✓ | Easy | Medium |
| Arm security on everyone leaving | Phones, lock, security system | Alexa ◐ Google ✓ HA ✓ | Medium | High |
| Presence simulation (random lights) | 3–5 smart lights/plugs | Alexa ✓ Google ✓ HA ✓ | Medium | Very High |
| Camera alerts when away | Camera, phone | Alexa ✓ Google ✓ HA ✓ | Easy | Medium |
| Porch light on doorbell press | Doorbell, outdoor light | Alexa ✓ Google ✓ HA ✓ | Easy | High |
| All lights + siren on alarm | All lights, siren, alarm | Alexa ✓ Google ◐ HA ✓ | Hard | Very High |
| Door/window open notification | Contact sensors, hub | Alexa ✓ Google ✓ HA ✓ | Easy | Medium |
| Auto-close garage after 10 min | Garage controller, sensor | Alexa ✓ Google ◐ HA ✓ | Medium | High |
Legend: ✓ = Full native support | ◐ = Partial or requires workaround
Getting Started: Priority Order
If you’re setting these up from scratch, start with the highest impact and lowest effort:
- Door/window notifications — cheapest sensors, immediate value
- Auto-lock doors — most locks support this natively
- Porch light on doorbell — single routine, big deterrent
- Geofence arm/disarm — eliminates human error
- Presence simulation — best deterrent for extended absences
- Camera alerts when away — reduces alert fatigue
- Auto-close garage — prevents the most common oversight
- All lights + siren — last line of defense
For more automation ideas beyond security, see our list of essential automations to set up first.
Tips for Reliable Security Automations
Use local processing when possible. Cloud-dependent automations can fail during internet outages—exactly when you’re most vulnerable. Home Assistant runs locally. Alexa and Google require internet for most routines.
Build redundancy. Don’t rely on a single automation for critical security. Layer door notifications with camera alerts and auto-locking.
Test regularly. Walk through each automation monthly. Open a window while in away mode and verify you get the notification. Leave the garage open and confirm it closes.
Use battery backups. A UPS for your hub and router keeps security automations running during power outages.
FAQ
Do smart home security automations replace a traditional alarm system?
No. They complement one, but they don’t replace monitored security for most people. Automations like presence simulation and auto-locking are deterrents and conveniences. If you need police dispatch during a break-in, you still want professional monitoring or at least a self-monitored siren system. That said, combining these automations with cameras and contact sensors gives you 90% of a professional system’s capability without monthly fees.
Which platform is best for security automations?
Home Assistant offers the most flexibility and local processing, which means your security automations work even if your internet goes down. For ease of setup, Alexa with Ring devices provides the most integrated experience. Google Home is improving but still has gaps in alarm and lock integration. If you’re serious about security automation, Home Assistant is worth the learning curve.
Will presence simulation actually deter burglars?
Yes. Research from the University of North Carolina found that 60% of convicted burglars said they would choose a different target if they believed someone was home. Randomized lighting patterns, especially combined with a TV simulator plug and audio from smart speakers, create a convincing impression of occupancy. The key is randomization—perfectly timed schedules are detectable.
How many contact sensors do I need?
At minimum, put sensors on every exterior door and any ground-floor windows that open. For a typical home, that’s 3–4 doors and 4–8 windows, costing $60–160 total for Zigbee sensors. You don’t need sensors on second-floor windows that aren’t accessible from a roof or balcony. Start with doors and add windows over time.
Can these automations cause false alerts?
Yes, especially camera motion alerts. Reduce false positives by combining triggers—motion plus nobody home, or door open plus after 11 PM. Activity zones on cameras help exclude trees, roads, and animals. Auto-close garage automations should include safety mechanisms like a warning beep and the ability to cancel via voice or app within a 30-second window.