Detection zones and action rules
An administrator draws areas in Detection zones, then creates actions in Action rules. Zones identify parts of the picture to watch; they do not hide pixels. Use Privacy masks when an area must be concealed.
A camera records events anywhere in its picture until its first zone or line is drawn, and from then on only inside its zones, unless its Record events setting says otherwise (see where events are recorded). Rules decide which of those events raise an alert.
Define the area
Choose a camera in Detection zones, draw the area's boundary on the picture, name it, and save it. Check the outline against the real scene. Zone changes are sent to the detector and restored after detector restarts.
Only these objects narrows what the zone records and counts; nothing selected means anything counts. An enabled rule on the zone that names other objects adds them: a No truck at the loading bay absence rule on a zone set to person also counts trucks there, and records their visits in the zone. A rule with no objects is about whatever the zone counts.
To adjust a zone, select Edit beside it and drag any of its points to a new place; double-click a point to remove it, or click the picture to add one. Nothing changes until you save, and Cancel keeps the zone as it was. A line's ends drag the same way.
Delete removes the zone and every action rule scoped to it, with those rules' alert history; the confirmation names those rules first. Past events are kept. To reshape a zone and keep its rules, use Edit.
When you draw the first zone or line on a camera whose Record events is still the default, a notice above Save warns you. Once you save it, the camera records events only inside that zone or across that line, and in any zones drawn later, not over the whole picture. The notice links to the camera's Detection tab, where you can choose Whole picture, and in zones to keep both.
A camera with no zones says what it records meanwhile. Under the default, every visit anywhere in the picture is an event, and drawing a zone or line narrows that. A camera set to Only in zones records no events until a zone is drawn, and the note says so in warning color, with a link to record over the whole picture instead.
Draw a line
An area is stood in; a line is crossed. Someone walking along the pavement outside a property is inside an area drawn over the pavement and the drive alike, but never crosses a line drawn along the property boundary. Select Draw a line, click the picture at each end of the line (a third click moves the second end), name it, and choose Counts when crossed:
| Choice | Fires for |
|---|---|
| Either way | A crossing in either direction |
| With the arrow | A crossing the way the arrow on the line points |
| Against the arrow | A crossing the other way |
The arrow points a quarter-turn clockwise from the line as it was drawn: a line drawn left to right points down the picture. Draw the line where the ground is, since an object's position is where it meets the ground, the bottom middle of its box. A crossing is counted when that point goes from clearly one side of the line to clearly the other, across the line or just off its ends. Standing on the line crosses it at most once however the box jitters, and an object at rest, such as a parked car or a person standing still, crosses nothing. A detection under the camera's minimum confidence crosses nothing either; if the object was carried over the line only by such detections, the crossing counts when it is next seen clearly on the far side.
A line can carry only Object detected rules, with no minimum dwell: a crossing is recorded as a visit to the line that lasts no time at all, and the rule fires as the object crosses. A line counts no heads, so Occupancy, Absence and Object left rules cannot use one. A zone stays the kind it was drawn as; to turn an area into a line, draw a new one.
Choose a trigger and action
| Trigger | When it runs |
|---|---|
| Object detected | A selected object meets confidence and dwell requirements |
| Object left | An object leaves after the required stay |
| Occupancy | The selected number of objects is present together |
| Absence | No selected objects have been present for the specified time |
| Button | An operator presses the button in Live view |
| Recorder health | A paging fault remains open for two minutes, and when it clears |
| Something unusual | A visit differs from the site's own normal for that camera and time of day |
| Camera reports | The camera itself reports motion, a line crossing, an intrusion, a person, tampering, or another event |
Something unusual compares against the last 28 days, in three-hour bands of the day, and stays quiet until the recorder has two weeks of history, so it will not fire during commissioning. It reports at most once an hour per camera and object, and every departure reaches Alarms and the morning briefing whether or not a rule sends it. The days, the bands and the hour all follow the recorder's clock (Settings → This recorder → Recorder clock), not the host system's zone. Across a daylight-saving change the 28 days still start at the same time of day, and in a zone offset by a half hour the hourly limit follows the local hour. An enabled Something unusual rule for a camera that records no events, because its Record events is Only in zones and it has no zone and no detection rule for the whole picture, is refused when saved: there are no visits for it to judge. Draw a zone on the camera, or set its Record events to record over the whole picture, first.
Absence reports once per absence and once when something returns, and again in each new window of its schedule. It counts only while the area is being watched: while the camera is offline or the detector has stopped, the area is unknown rather than empty, and the time starts again when watching resumes. An absence already reported is not reported again after the recorder restarts.
Camera reports runs on the camera's own ONVIF events. First turn on Camera's own events for the camera (see cameras). Tick the kinds the rule is about, or none for any kind. The rule runs when the camera says something began, or when a one-off event such as a line crossing happens. It does not run when something ends. Detection areas, confidence, and Who don't apply, because the camera judged the event over its own picture. EverNVR does not check the report, so a camera that mistakes headlights for a person triggers the rule anyway. Moving a PTZ camera usually makes it report motion. While a privacy mask is being calibrated or trained on a camera, that camera's reports run no rules.
A visit stays open for as long as the object is in view, and Object detected fires again at each dwell time the site's rules ask about. A rule's dwell time can be any number of seconds above zero: a rule for a two-second stay fires at two seconds, not at the five-second mark the recorder reports on its own. A vehicle that stops and stays still for about 15 seconds is treated as parked and its visit closes as settled, reopening when it moves again, so a parked car does not accrue hours. A vehicle that pauses for less, in traffic or creeping up a driveway, stays one visit. A person or animal standing still is a different matter: the visit stays open and keeps counting, so a loiter rule fires whether they pace or stand, and it settles only after five minutes without movement. A settled object reopens its visit only when it leaves the spot where it settled. If the detector loses a faint object for a few seconds and then sees it again in the same place, the visit does not reopen. Whatever was already in view when detection started on a camera, or when a PTZ camera arrived at a new position, is counted but opens no visit until it moves.
Objects names what a detection rule is about. The editor offers groups first: People, Vehicles (car, truck, bus, and motorcycle) and Animals, then the detector's own vehicle classes and bicycle. Type names separated by commas or pick them from the chips; leave the field blank for any object. A rule written with individual classes keeps working as written. The detector reports every animal as an animal (see animals), so a rule that names a species, such as dog, is saved as an Animals rule. A visit is named by what most of its sightings agreed on, and the detector can call one vehicle a car and then a truck (see object detection), so the Vehicles group is the steadier choice when the exact class does not matter.
Where offered, scope the rule to a camera, zone, and Who: anyone, known, or unrecognized. Identity conditions depend on reviewed examples in Known objects. A person counts as known only when an enrolled face is seen clearly, so a rule about someone known needs face recognition on that camera. An unsure match counts as unrecognized. Visits of a kind are compared only once something of that kind has been tagged on an event; until then they show Not compared yet, and an Unrecognized rule about them never fires. A rule with a Who other than Anyone fires once recognition has decided, a few seconds after the arrival. An Object left rule with a Who fires as the object leaves, or, when recognition decides up to 90 seconds after it left, such as a plate read from the recording of a car that drove straight through, at that decision. An object that comes to rest, such as a parked car, has not left. The editor explains the chosen Who, and what it needs, under the row that holds it. Where face and plate recognition is on, Who also offers someone known by face, a face nobody enrolled, a vehicle known by its plate, and an unknown license plate. For example, "Jenny in the garage" is the Garage camera, Who set to someone known by face, and Jenny.
A rule runs a list of actions, in order, up to ten. Every run is saved in the alert history whether or not the rule does anything else, so a rule with no actions is a log: start there while checking a rule's area and timing, then add what it should do. In the editor's Actions section, Add an action offers each kind; an action can be added more than once, so one rule can post to two webhooks or notify two groups of people differently. Remove takes one out.
| Action | What it does |
|---|---|
| Send notification | Emails, texts or pushes the chosen people |
| Send webhook | POSTs the trigger details to a URL, signed when a secret is set |
| Move a camera to a preset | Recalls a stored PTZ preset, within a minute of the trigger or not at all, and can send the camera back to another preset afterwards |
| Aim a camera at the trigger | Turns a PTZ camera calibrated on the site plan toward where the detected object stood, within a minute of the trigger or not at all |
| Switch a light, siren or output | Switches one of a camera's deterrence outputs on for a number of seconds, on, or off, within a minute of the trigger or not at all |
| Play a message | Plays one of the spoken messages through a camera's speaker, or in every browser that has EverNVR open, one to three times, within a minute of the trigger or not at all |
| Preserve footage | Holds the footage around the trigger against retention |
| Arm or disarm rules | Enables or disables other rules, for a while or until changed |
Move a camera to a preset recalls one of the camera's own presets; EverNVR never creates presets, so make them in the camera's interface first. Then return to names a preset to go back to, or Stay there; with a preset chosen, After is the wait, from 15 seconds to 30 minutes, one minute unless changed, so a camera a rule swung to the gate is back on its own view afterwards. The return happens on its own, restart or not, unless somebody drives the camera in the meantime: an operator who took the panel keeps the view they chose, and a later rule's move replaces the pending return with its own. A camera that is busy or does not answer when the time comes is tried again for up to five minutes, then the return is dropped and logged. A return is a quiet move that neither pauses a patrol nor counts as somebody taking the camera over. Both the recall and the return are camera writes on History → Camera changes, as PTZ preset recalled and PTZ returned after a rule. On a camera with auto tracking, a rule's recall or aim ends a follow in progress without pausing auto tracking, so the camera can take up whatever it finds where the rule pointed it. A follow that starts there keeps the rule's pending return waiting rather than cancelling it: once the follow ends, the camera goes back where the rule said, in place of the follow's own Return to preset.
Aim a camera at the trigger needs a PTZ camera whose heading has been measured on the site plan; until one has, the action says so. Choose the Camera to aim and a Zoom: Keep the camera's zoom, or Widest, 25%, 50%, 75% or Closest. When the rule fires on a camera that has been matched to the plan, the place the object stood, the bottom middle of its box, becomes a plan point and the PTZ turns to look at it; a trigger on the aimed camera itself is centered in its own picture. A trigger with no position, such as a button or a recorder fault, and a triggering camera that is not matched, are refused and say why in the run history. Then return to works as it does for a preset. The aim is a camera write as PTZ aimed, with the plan point and the bearing it worked out.
Switch a light, siren or output needs a camera whose outputs have been found under Deterrence on its Setup tab; until one has, the action says so. Choose the Camera, one of its Outputs, and Switch it: On for a while for a number of Seconds (1 to 300, 10 unless changed), On, until switched off, or Off. A Tapo spotlight switches itself off after a set time, so it offers only On for a while and Off. "Person at night: light for thirty seconds and siren for ten" is two actions on one rule. Like a preset recall, the switch is made within a minute of the trigger or not at all: a camera that did not answer is tried once more within that minute, while one that refused (a wrong password, an output it no longer has) is not, since many cameras count each refused login toward locking themselves. The recorder switches a timed output off on time whatever happens to it in between, and every switch is a camera write on History → Camera changes. A siren is heard by the neighbors, so give such a rule a schedule and a cooldown.
Play a message needs a message saved under Settings → Spoken messages; until one exists, the action says so, with a link that opens that page in a new tab so the rule being edited stays as it is. Come back to the rule's tab and the message made there is already chosen. Once messages exist, Make or change spoken messages under the action opens the same page in a new tab. Under Play on, choose a camera with a speaker EverNVR can talk through (its Setup tab says so under Deterrence) or Every open browser, then the Message and how many Times to play it, with a second between. "Person in the driveway after dark: light for thirty seconds and 'You are on camera'" is two actions on one rule. The message is played within a minute of the trigger or not at all, and if somebody is talking on that camera at the moment, they keep the speaker and the message is skipped. Each play through a camera is a camera write on History → Camera changes with the rule's name. Like a siren, a message is heard beyond the property line; give the rule a schedule and a cooldown.
Every open browser plays the message on every computer, tablet or phone browser that has EverNVR open and is signed in to an account that can see the camera that set the rule off, such as a guard desk or an office screen; when the trigger has no camera, every signed-in browser plays it. One tab per browser plays it, however many EverNVR tabs that browser has open. A typed message is read aloud by the browser's own voice, so it can sound different from the recorder's voice; a browser with no voice of its own, and any recorded message, plays the recording the recorder keeps. Browsers play sound only after someone has clicked on the page: until then, the message appears as a notice, with the rule's name and Play message, and that click allows sound from then on. A browser left open for announcements needs one click after it is opened. A play in browsers is not a camera write. When no browser has EverNVR open, the message is skipped, and its line on History → Notifications says no browser had EverNVR open.
Preserve footage opens a preserved investigation in the rule's name, from Minutes before the trigger to Minutes after, one minute before and five after unless changed, and up to an hour in all. It appears on the Investigation page like any other saved investigation, where it can be reviewed, exported, or released. Runs close together on the same camera extend the same hold rather than opening another, and a trigger with no camera, such as a site-wide button or a recorder fault, holds every camera. Holds are exempt from retention, so release them when they are no longer needed; see events and investigation.
Arm or disarm rules sets the chosen Rules to Armed or Disarmed (Set them to), For a chosen time from 15 minutes to a week, or Until changed. A disarmed rule does not run; its events are still recorded. A timed change ends on its own, even if the recorder restarts, and returns each rule to the state it was in before; saving the affected rule by hand ends it early. Arming a rule that is already armed, or disarming one that is already off, with no timer running changes nothing, so the end of the time never switches it the other way. Like a preset recall, the change is made within a minute of the trigger or not at all. The usual shapes are a button that quiets the driveway for an hour while contractors work, and an "everyone has left" rule that arms the interior rules. A rule under a timed change shows Armed until or Disarmed until with the time, and its editor says which way it was set and that saving ends the timer.
Switching a rule off by hand also drops any of its messages still waiting to be sent. A timed disarm by another rule does not. A rule that disarms itself, for a while or until changed, still sends the messages of the run that disarmed it: a button that notifies someone and then quiets its own rule still sends that message.
The Action rules page lists rules by camera on the left; choose one to open it beside the list, or New rule to start another. With nothing open, the page shows every rule in one table with its trigger, place, schedule, actions, runs in the last 24 hours, last run, and status. On a narrow screen the list and the open rule take turns, with All rules to go back. Opening another rule, New rule, Cancel, or closing the editor with unsaved changes asks before discarding them.
Schedules, cooldowns, and delivery
Schedules use the recorder's local time, in the zone shown in Settings → This recorder, even on a host whose own clock is set to another zone such as UTC. Cooldown is the minimum time between runs per camera; a cap limits runs per camera within a window. Check overnight rules against the time zone in Settings → This recorder.
An Occupancy rule reports once when the count reaches its number and once when it drops back under. A count reached during the cooldown, or before the schedule opens, is reported when the cooldown ends or the schedule opens, if it still holds then. The report that the count dropped back under is never held back. Editing an occupancy rule while its count is reported as reached keeps that report, so a count now under the new number is reported as back under.
For notifications, configure both the provider and recipients. See notifications. In a Send notification action, tick Urgent: an alarm, not an update for the few rules that need someone now, such as a person inside after hours. The rule's summary then ends in · urgent. An urgent push to the EverNVR app on iPhone is time-sensitive, so it shows even during Focus and Do Not Disturb; in a browser that supports it, the notification stays on screen until dismissed. Email and text are unchanged; see urgent alerts. For webhooks, set a signing secret and verify the timestamp and HMAC at the receiver. Each webhook action has its own secret; a save that leaves the secret field empty keeps the saved one for that webhook, even when another webhook on the rule is removed, and Remove the saved secret clears it. Targets cannot be the recorder itself, its own cameras, or link-local addresses.
Before any of a detection rule's actions run, the recorder may check the alert against the camera's learned false alarms and, where the site has asked for it, take a second look at the recording; alerts close together are told to each person once, as one incident. See alert screening.
Ask the AI agent first can hold every action of a detection rule when the agent returns a concern below the configured threshold. If the agent is unavailable, over budget, or fails to answer within two minutes, the actions run as they would have without asking. Presets, outputs, spoken messages and arming wait with the alert, and their minute starts when it is sent. See AI security agent.
With the agent on, the Action rules page also accepts a rule as a sentence — "text me when someone I don't know is in the garage after 10pm" — and Write the rule fills the editor from it. Nothing is saved until an administrator checks the trigger, camera, zone, schedule, and actions and selects Save. Treat it as a first draft, not a finished rule.
Finally, walk through the scene and review History for rule runs and notification delivery. History → Rules lists every run; History → Notifications lists each action of the run with its outcome, labeled Email, Text, Push, Webhook, Camera preset, Camera aimed, Camera output, Spoken message, Preserve footage, Arm or disarm rules, or Logged for a rule with no actions. A rule being saved is not evidence that its destination received anything.