Advertisement

Home/Automation & Logic

Create a "Follow the Intruder" Automation That Tracks Movement Through Sensor Zones

Advanced Home Assistant for DIY Security Enthusiasts · Automation & Logic

Advertisement

Look. The dumbest part of a home alarm is the loud, constant siren. It just tells the bad guy they've been spotted and to hurry up. What if, instead of screaming, your house just... quietly followed them? A silent, invisible intelligence tracking movement from room to room. That's what we're building. It's less "alarm," more a creepy, hyper-observant ghost. And it's incredibly useful.

Advertisement

The Hardware: Forget "Security," We're Just Observing

You don't need a Fort Knox budget. You need eyes. Motion sensors are your primary. But here's the secret sauce: you layer them. A contact sensor on a doorway tells you *which way* someone moved through it. A cheap mmWave radar sensor can even tell if someone is breathing in a room, ignoring pets. Mix and match. The goal is blanket coverage. No fancy cameras required for this logic, which is nice for privacy. Actually, this works better with cheap, basic sensors talking to a clever brain.

The Core Logic: Turning Chatter Into a Coherent Story

Here's the thing. Raw sensor data is just noise. "Motion in the kitchen." "Hallway door opened." Meaningless. You need a state machine. In Home Assistant, you create an "input_text" helper called something like "intruder_last_location." This is your ghost's short-term memory. Your automation has one job: when a sensor in Zone B triggers *after* the intruder was just noted in Zone A, update that helper to "Zone B." It's a simple game of tag. The system isn't guessing; it's following a breadcrumb trail of events in real-time.

Writing the Actual Automation: The "If-This-Then-That" Magic

Don't panic. We'll use a visual example. You're creating one automation with multiple triggers (all your perimeter sensors). The condition? An "armed" state, like "Away Mode" is on. The action is a simple choose block: if the triggered entity is the "Back Door Contact," set `intruder_last_location` to "Back Door." If it's the "Living Room Motion," set it to "Living Room." You chain these. Each new sensor ping updates the location. This creates a live, flowing log. No intruder? The helper just sits idle. It's stupidly simple logic that feels brilliantly complex.

Getting Notified: From Ghost to Gossip

Now the payoff. You create a *separate* notification automation. It triggers every time that `intruder_last_location` helper changes. And it sends a push notification. "Movement detected. Intruder now in the Study." Real-time. Silent on their end, incredibly loud information on yours. You can see the path they're taking. You can even have smart lights flick on ahead of them (to spook them) or behind them (to corner them in light). The data isn't locked in a log file; it's pushed to your pocket.

Taking it Further: Lights, Voices, and Pure Mayhem

This is where it gets fun. Since you know their real-time zone, you can target actions. Use an automation to turn the light in their *current* room blood red. Another to play a random, creepy sound file on a nearby Bluetooth speaker. Have your Google Assistant or Alexa announce in a calm voice, "You are in the living room. The authorities have been notified." It's psychological warfare. The system feels alive, intelligent, and hostile. It's no longer a passive alarm. It's an active participant.