Create your first pipelines
A pipeline is a flow that takes input, processes it, and produces an output. In first-use terms, it is how a camera image becomes an event, notification, stored image, or Home Assistant action.
In Toposync, mapped camera pipelines can produce Spatial Events: events that carry camera, area, position, object state, lifecycle, and image context instead of only a generic detection message.
This page is only a first pass. The full pipeline reference lives in Pipelines.
Start from the camera
The easiest first pipeline usually starts from a camera. Camera screens may offer presets or helpers that generate a pipeline for common cases.
Use those helpers when available. They keep the first graph simpler and reduce configuration mistakes.
Camera presets
Camera presets are the safest starting point for camera event pipelines. They
also encode the current product contract: downstream storage, throttling, and
notifications should use payload.subject.id, not a raw tracker id.
| Preset | Mapping | Use when |
|---|---|---|
| Simple people detection | Not required | You want a first smoke test or an unmapped camera pipeline. |
| Spatial Events for individual people | Required | You want one event per tracked person, with camera, area, and position context. |
| Grouped Spatial Events for presence | Required | You want fewer notifications during one continuous activity session. |
| Presence by area | Required | You want mapped people or pets grouped by proximity in the camera area. |
| Vehicle stopped | Required | You want vehicle detection plus speed/stopped logic. |
Choose the simple preset first when the camera is not calibrated yet. Choose a mapped preset when you need areas, world coordinates, quieter grouped presence, or speed-based rules.
A simple first graph
A useful first pipeline can be:
- Read a camera image or stream frame.
- Detect motion or objects.
- Restrict the result to one or more areas.
- Store a useful image or crop.
- Send a notification or expose a result.
Do not start with many branches, many cameras, or custom models. Validate one simple result first.
Use areas to reduce noise
Areas are one of the best ways to make pipelines useful.
Examples:
- person in
Sidewalkmay be normal; - person in
Backyardmay be important; - vehicle in
Drivewaymay matter only if it stopped; - motion near
Poolmay need a different rule.
If your pipeline is noisy, improve areas before adding more logic.
Keep outputs modest
For the first test, choose one output:
- store an image;
- send a notification;
- show an event;
- update a Home Assistant entity or automation later.
Avoid storing too many images or running many high-frequency flows until you understand storage and CPU usage.
When to use a processing server
Use the main Toposync instance for the first simple flow. Consider a processing server later when:
- CPU usage is high;
- you run multiple cameras;
- you add vision models;
- the Home Assistant add-on runs on low-power hardware;
- you want a stronger machine to handle camera or AI work.
See Processing server on Linux and macOS when you are ready.
Next: Next steps.