Rules and triggers
The seven kinds of notification rule — detection, sensor, occupancy, sound, device events, system and alarm — when each one fires, which to pick, and what happens to rules when a device is deleted.
This page helps you pick the right kind of rule, and explains when each kind fires and what it can know at that moment.
Pick the kind first
The kind decides everything else: which conditions exist, whether there is a picture, and when the rule is evaluated.
| Kind | Fires on | Picture | Use it for |
|---|---|---|---|
| Detection | Something the camera saw: a person, vehicle, animal, parcel. | Yes | Almost everything. |
| Sensor | A doorbell press or a linked sensor changing state — a contact, a water leak, smoke, a button. | Yes, from the linked cameras | "The front door opened", "water under the sink". |
| Occupancy | A count crossing a line in a frame or a zone. | Yes | "A car arrived on the empty drive", "the parking space is free". |
| Sound | Something the camera heard, or sustained loudness. | A photograph taken at that moment | "Glass breaking", "the baby has been crying for 10 s". |
| Device events | A device or stream going away or coming back, switched off or on; a low battery, a worn consumable, a vacuum tank; a camera detecting nothing. | No | Health of the things in the house. |
| System | A node leaving, an addon crash-looping, an update available or installed, a backup or export finishing. | No | Health of the installation itself. |
| Alarm | The alarm panel: refused, arming, armed, entry delay, triggered, re-armed, sensor bypass, disarmed. | Only when a rule set it off | Being told what the alarm does. |
Device events, System and Alarm are admin-only in the app; a non-admin can create the first four as personal rules.
Timelapses, summaries and calendar-events rules are not in this list: they are scheduled, not triggered by a camera or sensor edge. See Timelapses and summaries.
In the admin UI the Rules page opens with a type picker (ordinary rule / summary / timelapse) and then the kind filters for ordinary rules — All rules · Detections & devices · Sound · Occupancy · Device events · System events · Alarm. New … rule creates one of the tab's kind; sensor rules live under Detections & devices with the trigger Device event. In the app, New rule asks What should this rule watch? first, and the kind is then fixed: to change it, create a new rule.
Detection rules and their three triggers
A detection rule has a trigger, and the trigger is the most consequential choice you make: it decides latency, and it decides what the rule can know.
Immediate
Fires on the first matching moment of a track — a subject entering or crossing a zone, starting to move, stopping, loitering — as soon as it is written. The lowest-latency option.
- A track fires an immediate rule at most once per target, however long it lasts. One visit, one notification.
- It fires on a fresh moment, so later enrichment is not there yet: a face is usually recognised several seconds into a visit (about 11 s is typical), and the text of a notification is fixed when it is queued. See Wait for recognition in Conditions.
- It is the only trigger with a Zone crossing direction (entering, leaving, either).
- It never fires on a parcel. Parcels have their own trigger.
Use it where being told promptly is the point: someone in the garden at night, a car at the gate.
Track end
Evaluated when the track finishes, against the finished record. You give up promptness and gain everything the track learned:
- Minimum dwell — "stayed at least 30 s". This is what separates a courier walking past from someone standing at your door.
- Minimum importance — a score computed for the finished track.
- Minimum label confidence — how sure the face or plate match was.
- Zones mean every zone the subject passed through, not the zone at one instant.
Use it for anything that is not urgent, and for anything about who. Most notifications do not need to be immediate, and track-end rules are far better filtered.
Package event
Fires on a parcel being delivered (a new parcel appeared and stayed) or picked up (it left), chosen with Package phase. It needs package detection enabled on the camera. A pick-up notification carries a picture of the person who collected it, not of the empty doormat.
Two rules on the same camera is a normal pattern: an immediate one that says someone is here, and a track-end one that says it was Anna, and she stayed four minutes. Neither replaces the other.
Sensor rules
Fire on a device event: a doorbell press or a sensor changing state. The sensor has to be known to the hub — imported from Home Assistant or another integration, or built into the camera.
- Which sensor. A sensor rule's device scope matches either the sensor or the camera it is linked to. Pick the sensor for "when the front door contact opens"; pick the camera for "anything on the front-door camera".
- Which kind. Sensor kinds narrows to doorbells, contacts, buttons and so on; Notify when chooses the raise, the clear, or both — water detected without back to dry.
- Pictures. A sensor linked to one or more cameras is photographed through all of them at the moment it fires, in one notification (a mosaic by default — see The message). Cameras that are offline or asleep are left out.
- A sensor linked to no camera still notifies, text-only. A rule scoped to a camera does not fire for it — scope such a rule to the sensor itself.
Occupancy rules
Fire when the number of objects in a camera frame — or in one zone — crosses your line and holds, rather than on any single detection.
| Fires when | Meaning |
|---|---|
| Became occupied (default) | The count went from below Count to at least Count. |
| Became free | It went from at least Count to below it. |
| Count ≥ / Count ≤ | It is at or over / at or under Count. |
The new state must hold for Hold for seconds (15 by default) before the rule fires, so a person walking through does not flip it. Pick the camera first: the zone list is that camera's. The class is one of the four detection classes (person, vehicle, animal, package) — a sub-type such as car is never counted and a rule scoped to one never fires.
A parked car already there when you create the rule does not announce itself: the first reading is taken as the starting point. When the scene empties (Became free), the notification carries a fresh photograph of the empty space.
Sound rules
Fire on audio, never on a picture. The cameras must have audio analysis enabled. Two modes, chosen by what you fill in:
| Mode | Fires when | Settings |
|---|---|---|
| Sounds | The classifier names one of your sounds in enough frames of a short window. | Sounds; Confirm after (default 2 frames) within (default 5 s). |
| Volume | The level stays above a floor for long enough. | Louder than (dBFS); Hits in the window (default 60 %); Window (default 10 s). |
dBFS runs negative: 0 is the loudest possible, −96 is silence. A higher number is a narrower filter — −30 hears much less than −50. A new sound rule opens with a level floor already filled in. With neither sounds nor a level the rule can never fire, and the editor says so.
Everything about pictures — classes, zones, faces, plates — does not apply to a sound and is removed when you save. The notification carries a photograph of the camera taken at the moment of the match, and the GIF or clip cut around it.
Device-event, system and alarm rules
These three are system rules: there is no camera frame behind "a node went offline", so they carry no picture. The alarm notification is the exception: it carries a mosaic of what your alarm rules saw. They share one editor: pick the events, then narrow them. Each rule belongs to exactly one family, chosen when you create it.
| Family | Events | Can be narrowed by |
|---|---|---|
| Device events | Device offline / online, switched off / on; stream offline / online; battery low / back to normal; consumable low / replaced; tank low / full / back to normal; camera detecting nothing. | Devices, excluded devices, device types, consumable threshold. |
| System | Node offline / online; node restarting; node updating; node has no usable inference device; addon stopped after repeated crashes; addon, server or container update available; addons updated, server updated; backup completed; export completed. | Nodes, packages. |
| Alarm | Arm refused, check failed, arming, armed, entry delay started, triggered, re-armed, sensor bypass, disarmed. | The camera whose rule set it off. |
Battery, consumable and tank alerts are covered on their own page: Batteries, consumables and tanks. The alarm is covered in The alarm.
A camera detecting nothing event means a camera that is running and being analysed but has produced no detection for a long time — the one failure that otherwise looks exactly like a quiet night. Node has no usable inference device is the same kind of silent failure one level up.
Node restarting and Node updating tell you a node is about to go down on purpose, a few seconds before it does. Node restarting is a plain restart. Node updating is a restart that installs a new version, and names the node, the package and the versions from and to. If the update has already finished by the time the notification would go out, Node updating is not sent; you get Server updated instead.
"To recreate"
An older rule may mix events from more than one family. It keeps firing exactly as it did, and appears under To recreate, but it can no longer be edited — only switched off or deleted. Create one rule per family, then delete it.
Managing rules
- Enabled switches a rule off without losing anything it says.
- Duplicate (admin UI) copies a rule as a new one — the quickest way to make a night version of a day rule.
- The rules list shows each rule's trigger, targets, Last run and priority, and a History action. See Testing and history.
- When a condition cannot apply to the kind you picked (a zone on a sound rule, say), the editor lists it and removes it on save, with the reason. Keeping it would leave the rule silently unable to fire.
Tags and grouping
Rules carry tags, the same tags as Build-your-self and devices: add them on the editor's Rule tab, with autocomplete of the tags already in use and the same colour and icon. The rules list has a Tags column and a tag filter, and switches between List and By tag — useful once you have dozens of rules. Summary, timelapse and calendar rules carry tags too.
Editing any other field of a rule keeps its tags; emptying the tag field clears them.
When a camera, sensor or target is deleted
Dominevo removes a deleted device from every rule that names it, but it never widens a rule to make up for it:
- A rule naming several devices simply loses the deleted one.
- A rule whose last device was deleted keeps that device, which can never fire, and is switched off. The rule shows Disabled on <date>: its last device (#id) was deleted until you change it. The device appears in the picker as Device #id — removed: remove it and pick a new one.
- A deleted device in excluded devices is simply dropped; the rule stays on.
- A device a rule was gated on (see Device state) is kept and the rule is switched off, for the same reason.
- An action step on a deleted device is removed, with any button that ran only that sequence.
- The same applies to a deleted target: a rule whose last target is gone is switched off and says so.
A device that is only offline, or briefly missing, is never pruned: Dominevo acts only on a device the hub confirms is gone. If you switch such a rule back on, it is not switched off again.
Then
- Every notification — the full list of triggers, sensor changes and system events.
- Conditions — every filter, per kind.
- The message — what arrives.
- Actions and buttons — shared sequences and the Device→Action picker.
- Calendar-events — scheduled from a Home Assistant calendar.
- Timelapses and summaries — the other scheduled families.
- Supported devices — the device types a rule can watch, and what each reports.