Vigiora

Αυτή η σελίδα δεν είναι ακόμη διαθέσιμη στη γλώσσα Ελληνικά. Εμφανίζεται στα αγγλικά.

AutomationsΑπό την 1.8.0

Draw rules that start on an event, check conditions and then act, from ready-made ones or from scratch, with a run log and a sensitive-step confirmation.

Στην εφαρμογή: /automations

An automation is a rule you draw: a trigger starts it, conditions decide whether it goes on, and actions do things. For example: when a person is seen in the garden between 22:00 and 06:00, flash a light and notify everyone.

Admins and operators open Devices in the left menu, then the Automations tab (the other tab is Devices). Automations are new in Vigiora Server 1.8.0. Your existing alert rules, automatic lights, alert speaker and patrol settings keep working as before, and no old rule is changed. The page lists them under Built-in behaviours with links to their own pages.

The list#

Each automation shows its state, a one-line summary, its last run and these buttons:

  • an On/Off switch,
  • Run now,
  • Confirm (for admins, when the automation has a sensitive step),
  • Delete.

The state is On, Off, Waiting for an admin or Last run failed. The last run shows Done, Partly done, Failed, Conditions not met, Nothing to do or Never ran.

Create an automation#

Click New automation. You can:

  • start from a ready-made one (below),
  • click Import a file to load a blueprint file,
  • click Draw from scratch.

A ready-made automation opens as a guided form. It asks each question in turn, such as which camera or which light. When only one camera or device fits a question, Vigiora fills it in. Click Create automation at the end.

The 8 ready-made automations#

NameWhat it does
Welcome homeThe front door opens between 17:00 and 06:00: turn a light on.
Nobody home, motionA person is seen while nobody is home: notify, with a 5-minute pause between runs.
DoorbellThe doorbell rings: notify everyone, and Guardian looks at the door camera. A chime is optional.
Camera offlineA camera (or any camera) is offline for 5 minutes: notify.
Night gardenA person is seen in the garden between 22:00 and 06:00: strobe a light and notify. An optional siren is off by default.
Garage open lateAt 22:00 (you can change the time) the garage door is still open: notify. Closing it is optional.
Person arrivesA known face is seen: notify, with a 30-minute pause.
Door forced (access control)The access control system reports a door forced open: notify everyone, open the door camera and let Guardian look, with a 2-minute pause between runs.

The editor#

Open an automation, or choose Draw from scratch, to open the editor. It has a palette of steps, a canvas, the settings of the selected step and a line in plain words that says what is wrong. Add steps from the palette, join them with wires, then click Save.

  • A trigger starts the automation, so no wire can lead into a trigger.
  • A wire cannot make a loop.
  • An automation can have at most 40 steps.
  • Steps run from the trigger on, and a condition that is not met stops only its own branch.

On a phone, the drawing is view only. The list and the guided form work fully on a phone.

Triggers#

StepStarts when
Camera seesA camera detects a label (such as person, or a known face or plate) with at least the confidence you set. You can limit it to alerts only.
Device changesA device changes state, optionally from and to a value you choose.
Camera online / offlineA camera goes offline or online, optionally for a number of minutes.
At a timeA time of day on the days you choose, in the server's time zone.
Web address calledSomething on your local network calls the automation's web address.
Run by handYou click Run now, or call it with the API.

Conditions#

StepChecks
Between timesThe time is inside a window on the days you choose. The window can cross midnight.
Device isA device is, or is not, in a state.
Camera isA camera is online or offline.
Not too oftenThe automation has not run in the last number of minutes.
Someone homeSomeone is home, or nobody is. This needs a person or phone tracker that Home Assistant shares with Vigiora. Without one, the condition does not pass.

Actions#

StepDoes
NotifySends a push notification to admins and operators, or to everyone. The message can use {camera}, {label}, {device}, {state}, {time} and {automation}. The notification opens the alert with its picture.
Control a deviceSends a command to a device that is shared with Vigiora for control.
Light effectBlinks, pulses, strobes or flashes SOS on a light or switch.
Camera soundPlays a chime or a spoken message, or sounds the siren, on a camera speaker.
Turn camera to presetMoves a PTZ camera to a preset.
Guardian takes a lookGuardian looks at the camera now and saves a picture and a clip.
Call a web addressCalls an https web address.
WaitPauses that branch for 1 to 300 seconds.

No action sends a raw camera picture out. The notification links to the alert's stored picture, and the outgoing web call carries no picture.

Run now, Test and the run log#

  • Run now runs the automation at once.
  • Test in the editor is a dry run. It checks the conditions now and lists what the actions would do, without doing it.
  • The Run log lists the last 200 runs of the automation. Each step shows Started, Met, Not met, Done, Failed, Blocked or Would run.

Web address trigger#

The Web address called trigger gives the automation a web address. Open the editor and click New address to make one. Vigiora shows the address once: copy it then. A new address replaces the old one, which stops working.

You run it with a POST request from your local network. It does not work from the internet. The remote-access address, the Cloudflare tunnel and LAN HTTPS refuse it. Each address accepts a small number of calls a minute, and the answers give no detail.

Sensitive steps need an admin#

A step is sensitive when it can unlock a door, arm or disarm the alarm, open a garage door or gate, or sound a siren. When an automation has one:

  • It is saved, but its sensitive steps stay off. The list shows Waiting for an admin.
  • An admin clicks Confirm in a signed-in web session. Other steps still run in the meantime.
  • If someone changes a sensitive step later, an admin must confirm again.
  • An API key or an AI agent can never confirm. Running a sensitive automation through the API needs an extra acknowledgement, and an agent always asks you first.

The guided form has the option I am an admin and confirm them now for admins.

Import and export#

Click Export in the editor to save the automation as a blueprint file. Cameras, devices, faces, plates and presets become questions, so the file works on another server. Web addresses are always removed, and the web address of the trigger is never in the file.

Import a file reads a blueprint and asks the questions again. An imported blueprint starts unconfirmed, so its sensitive steps stay off until an admin confirms them. Vigiora refuses a file that is not a valid blueprint.

Limits#

  • At most 40 steps and 80 wires per automation.
  • An automation does not run again on an event about a device or camera it changed itself in the last 5 seconds.
  • All automations together run at most 60 actions a minute. More are refused and logged as failed.

API#

From API 1.111.0, /api/v1/automations lists, creates, changes and deletes automations, and has operations to run, validate, import and export them, to read the run log and to make a new web address. Reading needs devices:read, changing needs devices:write and running needs devices:control. Confirming sensitive steps is only possible from an admin's web session. See API v1.

Επεξεργασία αυτής της σελίδας στο GitHub