- Dokumentasjon
- AI
- Add-ons, AI Tools and the Tool Log
Denne siden finnes ikke på Norsk bokmål ennå. Den vises på engelsk.
Add-ons, AI Tools and the Tool Log
Manage the add-ons running for your cameras, give the AI tools to call your own systems, and check every tool call it made.
I appen: /tools
Three pages in Settings control what the AI runs and what it can do:
| Page | What it's for | Who can open it |
|---|---|---|
| Add-ons (Settings → AI and add-ons) | The add-ons running for your cameras, and which cameras each one serves. Called HAL before version 1.7.0. | Admins and operators |
| AI Tools (Settings → Cameras and recording → Speakers, sirens and lights) | Functions the AI may call: your own REST APIs or Home Assistant. | Admins |
| Tool Log (Settings → AI and add-ons → Tool log) | Every tool call the AI or an operator made, and its result. | Admins |
Add-ons#
An add-on is one AI module that works on your cameras. It runs on your server, on its GPU, on an edge device such as a Jetson, or on another machine. Before version 1.7.0 the app called add-ons Runners, HAL services and Vision Engine. The old addresses /hal and /runners open the Add-ons page. The API keeps the older names (runners and the hal-… service codes) for compatibility.
Add-ons do the AI work. Vigiora has two kinds:
- Built-in add-ons run inside your server:
core-ai(Core AI),motion-detect(Motion detection),hal-video(AI scene alerts),hal-audio(Voice detection) andhal-live(AI live watch); before 1.6.19 the last three weregemini-video,gemini-audioandgemini-live. - Installed add-ons run as separate programs, often on a machine with a GPU, and connect to your server by themselves. The four Vigiora add-ons are Objects (
hal-objects, a preview from version 1.6.10), Plates (hal-license-plate), Faces (hal-face) and Vision. Others are people counting (hal-tracker), weapons (hal-weapon) and smart motion (hal-smart-motion).
What each add-on does, how to install one and how object recognition works: Add-ons and object recognition. Every add-on card shows a Free or Paid label.
Assign cameras to an add-on#
Open Add-ons
Open Settings → AI and add-ons → Add-ons.
Pick cameras
On the add-on's card, click camera chips under Assigned monitors to add or remove them.
Save
Click Save.
This is the same as switching the add-on on or off in each camera's AI Guardian tab. Plan limits apply either way.
Add-on controls#
| Control | Beskrivelse |
|---|---|
| Stop / Start | Stop or start the add-on's workers. The process stays alive. Takes effect within about 30 seconds. |
| Restart | Restart the add-on process. |
| Revoke | Revoke the add-on's access token. An installed add-on enrols again on its next restart. |
| Tuning config | Add-on-wide settings, when the add-on has any. |
Click an add-on to open its detail page: system metrics, assigned cameras with detections per hour, and recent events.
Connect a new add-on#
The install page does this for you. An add-on you start yourself enrols itself the first time it starts, using your server's enrolment key. The installer doesn't create one: an admin sets VIGIORA_ENROLL_KEY in the server's settings file (/etc/vigiora.env on Linux) and restarts the server. Until an add-on enrols, the page shows No add-ons installed yet.
AI Tools#
AI Tools let Guardian chat and AI live watch call your own systems: look up a product, read a sensor, switch on a light. The AI decides when to call a tool from its description.
Add a REST API tool#
Open AI Tools
Open Settings → Cameras and recording → Speakers, sirens and lights, find AI Tools, then click New tool.
Describe it
Fill in the name, display name and description. Be specific in the description: the AI uses it to decide when to call the tool.
Set the request
Choose the Method and enter the URL template. Put parameters in braces, for example
https://api.example.com/products?q={query}.Describe the parameters
Fill in Parameters as a JSON schema, and Headers if the API needs a key.
Test it
Enter sample values in Test args (JSON), for example
{"query":"ibuprofen"}, and click Test call. Check the result.Save
Tick Enabled and click Save.
| Field | Beskrivelse | Standard |
|---|---|---|
| Type | REST API or Home Assistant. | REST API |
| Tool name | The function name the AI calls. Use snake_case, e.g. search_products. | — |
| Display name | The name people see in the app and the Tool Log. | — |
| Description | Tells the AI what the tool does and when to use it. | — |
| Method | GET or POST. | GET |
| URL template | An http or https address. Parameters go in braces and are URL-encoded. | — |
| Parameters | JSON schema of the arguments the AI must supply. | — |
| Headers | JSON object of request headers. May include API keys for the target service. | — |
| AI Live scope | Leave all cameras unticked to make the tool available everywhere. Tick cameras to limit it to AI live watch on those cameras. Guardian chat can always use it. | Global |
| Enabled | Untick to hide the tool from the AI without deleting it. | On |
Add a Home Assistant tool#
Home Assistant tools run on the Vigiora Client next to Home Assistant.
Start from the preset
On AI Tools, click Home Assistant.
Choose a capability
Pick Read entity state (ha_get_state) or Call a service (ha_call_service).
Connect Home Assistant
Enter the Base URL, for example
http://homeassistant.local:8123, and a Long-Lived Access Token. Create the token in Home Assistant under your profile → Security → Long-Lived Access Tokens.Save
Click Save, then try it from Guardian chat or AI live watch. Home Assistant tools can't be test-called from the form.
Tool Log#
The Tool Log lists every tool execution — Home Assistant, external APIs, camera movement (PTZ) and speakers — with its outcome.
| Column | Meaning |
|---|---|
| When | Time of the call. |
| Tool | The tool that was called. |
| Source | ai when the AI called it, operator when a person did. |
| Result | ok, warning or error, with details. |
The counters at the top show errors and warnings in the last 24 hours. Filter by result (all, error, warning, ok) or by tool name, and click Refresh to load new calls.