Most home security camera systems are built around a fairly straightforward question: What happened?
A camera detects motion, records a clip, and perhaps sends a notification when someone approaches the front door. Later, if something needs investigating, I can look through the footage.
That’s useful. But as I added cameras around the house, I started wondering whether I could take the idea further.
Could one system recognize an object, another decide whether the event mattered, and a third preserve the video for investigation? Could I build something closer to an enterprise video-surveillance architecture without losing the practicality of a home system?
That question led me to an experiment involving Frigate, Home Assistant, and Milestone XProtect. What interested me wasn’t simply running three applications. It was understanding what each did best—and what should happen when one of them stopped working.
More than one way to watch a camera #
I already had IP cameras around the property, including Axis cameras and a Reolink doorbell. Rather than replacing them with one all-encompassing platform, I wanted to make use of the systems already available in my home lab.
Each brought something different to the project.
Frigate gave me local AI analysis. My installation runs on a Raspberry Pi 5 with a Hailo-8L accelerator. It can analyze video for objects such as people and vehicles, helping distinguish activity of interest from ordinary motion. This work stays local rather than depending on a cloud AI service.
Home Assistant offered an automation layer. It is known for lights, switches, and home devices, but I was interested in its ability to react to events, examine conditions, and coordinate responses. A detected person at the front door might merit a different response depending on the camera, time, or other information available to the system.
Milestone XProtect provided professional video management. Its role in this design is to keep dependable recordings available for review and investigation, regardless of whether an AI detection or automation succeeds.
I liked the idea that these components could specialize rather than compete to do everything.
Thinking in five layers #
One habit I brought from cybersecurity was to separate a complicated system into responsibilities. It’s easier to troubleshoot a problem—and to reason about failure—when each part has a clearly defined job.
For this project, I thought about five layers:
| Layer | Responsibility |
|---|---|
| Cameras | Capture activity through Axis and Reolink devices |
| AI analysis — Frigate | Detect relevant objects and activity in video streams |
| Messaging — MQTT | Provide an event-delivery mechanism between components |
| Automation — Home Assistant | Add context and coordinate useful responses |
| Video management — Milestone XProtect | Record and support review and investigation |
This is a conceptual architecture, not a claim that every possible connection among the five layers is already implemented.
The event path is more than a diagram. I configured Frigate-generated events to pass through MQTT and Home Assistant into Milestone’s event-handling system, and I was able to see those events in Milestone Smart Client.
That confirms the systems were communicating in a useful way. It does not, by itself, establish whether Smart Client presented each event as a bookmark, alarm, or another event type—or that all of the more advanced investigative workflows are complete. I want to distinguish what I observed from what I still intend to build.
When motion becomes an event #
The interesting question isn’t whether a camera sees something move. It’s what the rest of the system can do with a meaningful observation.
Imagine a person walking up to the front door.
Frigate can identify the person and make event information available. MQTT provides a way to deliver that event to another system. Home Assistant can then evaluate the event in context rather than treating every motion alert alike.
The same idea could eventually help distinguish a delivery in the afternoon from activity near a restricted area late at night. In both cases a camera has seen a person, but the circumstances may call for different responses.
That starts to resemble a familiar cybersecurity concept: event correlation. A security information and event management system becomes useful not just because it collects events, but because it helps identify which combinations deserve attention.
I don’t need more notifications simply because my cameras are capable of producing them. I want better information and fewer unnecessary interruptions.
The broader event-correlation workflows are still part of what I want to develop. The point of this design is to create a foundation for them without assuming they’re already operational.
Getting Frigate events into Milestone #
One of the more satisfying milestones was seeing information move beyond Frigate and Home Assistant into the video-management environment.
I configured an event path in which Frigate’s detections were carried through MQTT and Home Assistant to Milestone XProtect’s event-handling system. After working through the event configuration and rules, I could see the resulting events in Milestone Smart Client.
That was a meaningful change. The platforms were no longer merely viewing or recording some of the same camera feeds. An AI detection produced in one system could now be surfaced in another, professionally oriented application.
I don’t want to overstate that result. I confirmed event visibility in Smart Client, but I haven’t established from the available project record exactly how each event was represented there—whether as a bookmark, alarm, or another entry. More elaborate event handling and cross-camera correlation remain areas to refine.
Even so, getting the events across that boundary was an important proof of the architecture: independent tools could exchange useful detection information without making the recorder dependent on the detector.
Don’t make recording depend on AI #
One architectural choice became especially important as I considered the relationship between Frigate and Milestone.
It would be tempting to have object detection tell the video-management system when to start recording. But what happens if the detection is late? What if the AI service restarts, or an event never arrives?
If preserving video depends entirely on a successful detection, the footage I most need could be the footage I never recorded.
Instead, I chose to treat recording and intelligent detection as separate responsibilities. Milestone can maintain recording independently while Frigate helps identify activity worth investigating.
With detection events already reaching Milestone and appearing in Smart Client, I can continue refining how they support investigation. Whether the next step is improving event presentation, associating events more precisely with recordings, or making them easier to navigate, the underlying recording should already be there.
I keep coming back to a principle that extends well beyond video surveillance:
An intelligent feature should improve a reliable system—not become the condition that allows the reliable system to work.
If Frigate or Home Assistant is unavailable, that should not automatically stop Milestone from performing its core recording function.
Watching the video pipeline, too #
There was another practical question: how many times should the same camera have to deliver its video to different applications?
IP cameras have finite processing resources. When multiple services request streams independently, the load can add up.
Frigate’s integration with go2rtc gave me an opportunity to examine video restreaming. Instead of asking each downstream application to establish its own independent connection to a camera, a restreaming component can distribute an existing stream to the consumers that need it.
That doesn’t mean every recording or analysis workflow should use an identical stream. Lower-resolution video may be appropriate for object detection, while a higher-resolution stream may be better for reviewing details afterward.
This is another kind of architectural separation: match the stream and its resource cost to the task.
In the lab, I have observed video-stream dependencies involving Home Assistant and Milestone. Understanding those paths is important before changing the stream configuration or restricting network access. A port that looks unnecessary in isolation may still be serving another application.
What makes it enterprise-style? #
I wouldn’t call a home setup an enterprise security system simply because it includes professional software.
For me, the useful enterprise ideas are clear responsibilities, independent recording, controlled communications, observability, and recovery from failures.
The hardware doesn’t have to be extravagant to explore those ideas. A Raspberry Pi can provide accelerated object detection. Home Assistant can coordinate automation. Milestone can handle video management. Cameras and stream distribution remain separately understandable parts of the system.
And because this is also a cybersecurity lab, the project naturally raises questions about authentication, network segmentation, service exposure, logs, and the consequences of an unavailable component.
That’s part of what keeps it interesting: a camera project becomes an exercise in systems engineering.
Where I want to take it next #
There are working pieces of this system, and there are integrations I still want to finish.
The existing camera feeds, Frigate analysis, Milestone recording, and Frigate-originated events visible in Milestone Smart Client provide the foundation. My next challenge is to refine how those events are presented and used during an investigation, including confirming the precise bookmark or alarm behavior and developing more sophisticated event correlation.
I’m particularly interested in whether several observations can tell a more meaningful story than a single detection. One person passing one camera may mean very little. A sequence of events across several cameras, under particular circumstances, could be worth a closer look.
But there is a balance to strike. Overly aggressive rules can create false alarms, and systems that attempt to identify people can make mistakes. I don’t want an AI inference to become the sole basis for a consequential physical-security decision.
For now, my priorities are dependable video, useful event information, and integrations I can test and understand.
What I took away from the project #
I started by asking whether I could do more with the cameras already installed around my home.
I ended up thinking much more about architecture than cameras.
Frigate, Home Assistant, MQTT, and Milestone approach the problem from different directions. That isn’t a disadvantage. It gives me an opportunity to assign responsibilities deliberately and see how the pieces work together.
The most valuable lesson wasn’t that I could assemble a list of impressive products. It was that I could make a more useful system by understanding what each component contributes—and by making sure the basic functions don’t depend on the clever ones.
That’s one of the reasons I enjoy maintaining a home lab. A modest experiment can turn into a surprisingly rich engineering problem.
Sometimes a camera on the garage is where the next lesson in enterprise security architecture begins.