Illustrative image, not evidence of a product test.
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.