- 文档
- Home Assistant
- Vigiora and Home Assistant
此页面暂无简体中文版本,以英文显示。
Vigiora and Home Assistant自 1.6.13 起
What the Vigiora integration adds to Home Assistant, and how Vigiora can use Home Assistant's devices in return.
在应用中: /system/integrations
Vigiora works with Home Assistant in both directions:
| Direction | What it does | Page |
|---|---|---|
| Vigiora → Home Assistant | The Vigiora integration brings your cameras, motion, people in view, Guardian alerts and scene descriptions into Home Assistant, for dashboards and automations. | This page, Install Home Assistant for me, Connect your own Home Assistant |
| Home Assistant → Vigiora | The bridge lets Vigiora use devices Home Assistant knows: door contacts and motion sensors as AI context and triggers, lights, sirens and notifications as alert actions. From 1.6.20 you can also control lights, covers, locks and the rest from the IoT devices page. | Use Home Assistant devices in Vigiora, Control a device |
| Zigbee through Home Assistant | From 1.6.19: a Zigbee dongle in the server is set up in the Home Assistant Vigiora installed for you, and devices are paired and managed from Vigiora. Every device then shows on the Devices page and on floor plans. | Zigbee devices, IoT devices |
Everything is set up under Settings → System → Integrations → Home Assistant (admins only). The Set up tab installs or connects Home Assistant; the Devices tab is the bridge. From version 1.6.19, the Devices page in the left menu shows the same devices with their live values, and its Home Assistant sharing and Zigbee network tabs are the bridge's sharing list and the Zigbee pairing page.
There is a third way, without the Vigiora integration: from version 1.6.15, Vigiora can publish its cameras to Home Assistant over MQTT, with MQTT discovery. See Integrations. From version 1.6.16, the bridge can use several Home Assistant instances, such as one at home and one at the shop.
The Vigiora integration#
The integration is version 0.2.1. Vigiora Server 1.6.13 carries it inside the server, so the one-click install adds it to Home Assistant for you, and Update Vigiora integration installs a newer version when a later server carries one. It uses only the public API v1 with a scoped API key.
Live changes are pushed: the integration follows the server's event stream and reconnects on its own. If the stream is down, it checks every 60 seconds instead.
What appears in Home Assistant#
A Vigiora device for the server (its name, version and id), with one device under it for each camera and room.
Per camera:
| Entity | What it shows |
|---|---|
| Camera | A snapshot and live video. The video is a short-lived HLS link that Vigiora signs and the integration renews before it expires; your camera's address and password never reach Home Assistant. |
| Online | Whether the camera is connected. |
| Motion | On while Vigiora's motion detection sees motion. |
| Person in view | On while a person detector reports a person (presence). |
| Guardian (event) | Fires alert for an alert and scene_description for each Guardian description, with the text, severity, rule and a picture link valid for 15 minutes. |
| Recording (switch) | Turns recording on or off. |
| AI Guardian (switch) | Turns AI on or off for the camera. |
For the server and analytics:
| Entity | What it shows |
|---|---|
| Unacknowledged alerts | Alerts nobody has acknowledged yet. |
| Cameras online | How many cameras are connected. |
| Visitors today | People counted in today, when you use Analytics. |
| Occupancy and Visitors today per area | One pair per Analytics area. Needs the Analytics add-on. |
Per room, an AI mode select switches the room between AI Live, AI Guardian or both. See Rooms.
USB microphones appear without a camera or motion entity.
Actions#
| Action | What it does |
|---|---|
vigiora.speak | Says a text through a camera's speaker, or in a room. |
vigiora.ptz_goto_preset | Moves a PTZ camera to a preset, by name. |
vigiora.ptz_move | Moves a PTZ camera (pan, tilt, zoom, duration). |
vigiora.describe_camera | Asks Guardian to describe what a camera sees now, and returns the text. Uses AI credits. |
vigiora.detect_objects | Runs object recognition on a camera and returns what it found. |
vigiora.acknowledge_alert | Acknowledges an alert. |
Options#
In Home Assistant, Settings → Devices & services → Vigiora → Configure chooses which cameras appear, which event types fire, and whether every detection or only alerts fire the alert event.
The API key and its scopes#
The integration signs in with a Vigiora API key named Home Assistant (local). Vigiora creates it for you when it installs or connects Home Assistant, with these scopes:
cameras:read cameras:write cameras:control alerts:read analytics:read guardian:read settings:read events:read
Entities and actions the key can't use are simply not created. Describe camera needs guardian:write and Acknowledge alert needs alerts:write, which this key doesn't have; create a key with them under API keys if you want those two actions. Removing or uninstalling Home Assistant in Vigiora revokes the key.
Human in the loop#
Human in the loop is on by default. While it is on for the integration's key, the risky operations (the Recording and AI Guardian switches, the room AI mode, speak and PTZ) don't run: Home Assistant shows an approval_required error and Vigiora never approves anything on your behalf. Reading cameras, sensors and events works either way.
To let Home Assistant run them, an admin opens Settings → People and access → API keys and sets Ask before actions of the key Home Assistant (local) to Never ask, or turns human in the loop off for the server under Settings → AI and add-ons → AI agents.