Event Engine User Manual

Event Engine User Manual

Comprehensive reference for all triggers, conditions, actions, and settings.

Overview

Event Engine is an If-This-Then-That style automation engine that runs directly on your Axis camera as an ACAP application. It replaces and extends the built-in Axis event system with a flexible rule engine that reacts to camera events, schedules, MQTT messages, and webhooks, then responds with notifications, camera commands, logic operations, and more.

Each Rule is composed of three parts:

  • Triggers — what starts the rule (one or more, evaluated as OR or AND)
  • Conditions — optional checks that must pass before actions run
  • Actions — what happens when the rule fires (run in sequence)

Rules take effect immediately when saved — no restart required.

Accessing the UI

Open a browser and navigate to:

http://<camera-ip>/local/acap_event_engine/index.html

You will be prompted for camera credentials (admin-level account required). The UI has five sections accessible via the top tab bar:

  • Rules — create, manage, and monitor your automation rules
  • Event Log — per-rule firing history
  • Variables — named variables and counters
  • Settings — MQTT broker, SMTP, location, proxy, and backup
  • API Docs — interactive OpenAPI documentation

How Rules Work

A rule fires when any of its triggers activate (OR logic by default, switchable to AND). Before actions run, conditions are checked — by default all must evaluate to true (AND logic), but condition logic can be switched to OR so that any passing condition allows execution. Actions then execute in sequence from top to bottom.

Creating a Rule

  1. Click + New Rule on the Rules tab (or choose a starter from Templates).
  2. Enter a descriptive rule name.
  3. Click + Add Trigger and choose a trigger type from the dropdown.
  4. Optionally click + Add Condition to add guards that must pass.
  5. Click + Add Action and configure what should happen.
  6. Click Save Rule. The rule is active immediately.
💡
Use the Insert variable button in any text field to pick from available {{variable}} placeholders. Available variables change based on the trigger type selected.

Rule Settings

SettingDescription
EnabledToggle to enable or disable a rule without deleting it.
Trigger logicOR (default) — fires when any trigger activates. AND has two modes: All active simultaneously (default) — fires only when all triggers are in their active state at the same time; Correlation window — all triggers must fire within a configurable time window (seconds), set to 0 for no time limit.
Condition logicAND (default) — all conditions must pass. OR — any single passing condition allows execution.
CooldownMinimum seconds between firings. Prevents alert floods when a trigger fires repeatedly.
Max ExecutionsLimit how many times the rule can fire within a period: per minute, per hour, per day, or lifetime total. The period counter auto-resets; the lifetime counter resets when the rule is saved.

Managing Rules

Each rule card shows the rule name, trigger and action badges, and a last-fired timestamp. Actions available from the rule card:

  • Edit — open the rule in the editor
  • Duplicate — clone the rule as a starting point
  • Enable / Disable — toggle without deleting
  • Fire Now — manually trigger the rule once for testing
  • Delete — permanently remove the rule

Use the search bar at the top of the Rules tab to filter rules by name. Use Export / Import to download or upload rules as JSON. Individual rules can also be exported from their action menu.

Triggers

A trigger defines what event starts a rule. You can add multiple triggers to a single rule; all triggers of the same type stack as OR conditions by default.

Device Event

Fires when any device event occurs — motion detection, thermometry, tampering, I/O state changes, analytics, air quality, and more. Events are loaded live from the device and presented in a searchable dropdown.

Options

OptionDescription
EventSelect from the live event catalog. Use the search box to filter by name or topic.
Value conditionOptionally filter on an event data field: boolean match (true/false), string value (substring contains), or numeric threshold (is above, is below, equals, is between).
Hold durationRequire the value condition to persist for N seconds before the rule fires. The timer resets if the condition breaks before N seconds elapse.
💡
Use the Device Event Query action after this trigger to fetch additional sensor data from the device and inject it as {{trigger.*}} variables for downstream actions.

Schedule

Fires on a time-based schedule. Four schedule modes are available:

ModeDescription
CronStandard 5-field cron expression (minute hour day month weekday). Use * for "every". Example: 0 8 * * 1-5 = every weekday at 08:00.
IntervalFire repeatedly every N seconds. Minimum: 10 seconds.
Daily timeFire at a specific time of day. Select the days of the week to apply.
Sunrise / SunsetFire at astronomical events: sunrise, sunset, solar noon, civil dawn, or civil dusk. Optional offset in minutes (positive = after, negative = before). Uses latitude/longitude from the Location settings (or a per-trigger override).

MQTT Message

Fires when an incoming MQTT message arrives on a matching topic. Requires the MQTT broker to be configured in Settings.

OptionDescription
TopicMQTT topic to subscribe to. Wildcards + (single level) and # (multi-level) are supported.
Payload filterOptional. Only fire if the payload contains this string.

Available variables injected by this trigger: {{trigger.topic}}, {{trigger.payload}}. When the payload is a JSON object, its top-level fields are available too, e.g. {{trigger.temperature}} for {"temperature": 21.5}.

HTTP Webhook

Fires when an external system sends an HTTP POST request to the camera with a matching token. Each webhook trigger has its own unique secret token (up to 120 characters).

POST http://<camera-ip>/local/acap_event_engine/fire
Content-Type: application/json

{
  "token": "my-secret-token",
  "payload": { "source": "doorbell", "floor": 2 }
}

Values from payload are injected as {{trigger.KEY}} variables (e.g. {{trigger.source}}, {{trigger.floor}}).

⚠
Webhook requests require admin-level camera credentials (HTTP Basic Auth). Use HTTPS where available to protect the token and credentials in transit.

I/O Input

Fires on a digital input port state change.

OptionDescription
PortThe I/O port number to monitor.
EdgeRising (low→high), Falling (high→low), or Both.
Hold durationRequire the state to persist for N seconds before firing.

Counter Threshold

Fires when a named counter value crosses a configured threshold. Useful for "fire after 10 motion events" type logic in combination with the Increment Counter action.

OptionDescription
Counter nameThe name of the counter to watch.
OperatorComparison: >, >=, <, <=, or =.
ValueThe numeric threshold value.

Rule Chain

Fires when another named rule executes. Use this to build multi-step workflows where one rule triggers another.

OptionDescription
Rule nameThe name of the rule whose execution triggers this one.

AOA Scenario

Fires when an Axis Object Analytics scenario generates an event. Requires the AOA application to be installed and configured on the camera.

OptionDescription
ScenarioSelect from the list of configured AOA scenarios.
Object class filterOptionally limit to a specific class: Human, Car, Truck, Bus, Bike, Other Vehicle, or Any.

Variables injected: {{trigger.scenario_id}}, {{trigger.active}}, {{trigger.reason}} (detected object class, e.g. Human).

Modbus Read

Poll a Modbus device over TCP, a serial gateway, or direct RTU/RS-485. Select holding registers, input registers, coils, or discrete inputs. A read can decode one value or a register map; map values are updated as variables and are available to later actions.

OptionDescription
ConnectionTCP connects to the device host and port. Serial Gateway uses the camera's configured PortManager service. RTU direct selects a serial device, baud rate and parity.
ReadOne value reads a single value; Block of values reads a register map. One request covers up to 125 registers (the Modbus limit) or 2000 bits; a larger map is read in several requests, up to 2000 registers from the first to the last address.
Data typeRegisters support unsigned/signed 16-, 32- and 64-bit integers, 32- and 64-bit floats, and strings (two bytes per register, up to 125 registers; the text ends at the first NUL). String length is counted in registers, not characters; UTF-8 characters may use multiple bytes. Bit reads return 0 or 1.
Word / byte orderABCD, CDAB, BADC, or DCBA for 32- and 64-bit values. For 16-bit values and strings, choose AB (normal) or BA (byte swap): the two bytes of each register.
EncodingFor strings: UTF-8 (default), ASCII, ISO-8859-1, ISO-8859-2, Windows-1250 or Windows-1252. Text is converted to UTF-8 for variables; bytes that are not valid in the encoding read as ?.
Scale / offsetNumeric values are reported as raw × scale + offset, e.g. a register of 231 with scale 0.1 reads as 23.1. Both accept decimals with a point or a comma (-0,5). Optional decimal rounding is applied after scaling.
Store in variableOptional for a single value. Every map row has its own variable; variables are volatile unless made persistent separately.
Compare / thresholdFor a map, select which variable to compare. Threshold operators are gt, gte, lt, lte, eq, and between. Thresholds fire on a false-to-true edge. Without a threshold, the rule fires on the first successful read and whenever any value changes.

Values are available as {{trigger.value}} and {{trigger.NAME}} for each mapped variable; the complete map is under {{trigger.values}}. Built-in fields include {{trigger.register}}, {{trigger.register_type}}, {{trigger.slave_id}}, and {{trigger.data_type}} for register values.

Modbus Error

Monitor failed Modbus reads and writes. By default the trigger fires when a device starts failing and again when it recovers. Choose Every failed request to fire for each failure. Optionally filter by part of the device address/name and by slave ID.

Trigger data includes {{trigger.state}} (failing or recovered), {{trigger.device}}, {{trigger.slave_id}}, {{trigger.operation}}, {{trigger.error}}, {{trigger.message}}, and {{trigger.fail_count}}. Modbus exception details are available as {{trigger.exception_code}} and {{trigger.exception_name}}.

Sparkplug Command

Fires when a Sparkplug B host writes a metric to this device via NCMD or DCMD. This is how a SCADA system commands the device rather than just reading from it. Requires Sparkplug B to be enabled in Settings.

OptionDescription
Metric nameOptional. The metric the host writes, e.g. Speaker/Play. Leave empty to fire on any metric write.
Value filterOptional. Fire only on an exact value match. Booleans arrive as true or false.

Variables injected: {{trigger.metric}}, {{trigger.value}}.

Command metrics do not have to be declared in Settings — only metrics the device publishes need to appear in the birth certificate.

GPS / NMEA

GPS triggers use the NMEA 0183 input configured in Settings → GPS. The reader accepts valid RMC and GGA sentences; a fix must remain fresh according to the configured stale timeout.

TriggerBehavior
GPS UpdateFires on a valid fix, at most once per configured interval.
GPS SpeedFires when speed enters the selected threshold. Supports above, below, and between comparisons, units (km/h, mph, knots, m/s), and optional hysteresis.
GPS GeofenceFires when position enters, exits, or does either for a circle or polygon. Circle coordinates are decimal degrees; polygon points are latitude/longitude pairs. Only boundary crossings fire: the first valid fix (at startup or after the fix is lost) sets the baseline.
GPS FixFires when a fix is acquired, lost, or becomes stale.

Use GPS template values in actions to place location, speed, or heading directly in an Overlay Text action. For example: Speed {{gps.speed_kmh}} km/h - {{gps.latitude}}, {{gps.longitude}}. Values other than age show -- when GPS is disabled or no fresh fix is available. The admin-only GET /local/acap_event_engine/gps endpoint reports reader status, counters, fix freshness, and recent raw sentences.

Conditions

Conditions act as guards. By default (AND logic), all conditions must evaluate to true before actions run. With OR logic (configurable in Rule Settings), any single passing condition is sufficient. If no conditions pass, the rule silently does nothing for that firing.

Time Window

Only allow the rule to fire between two times of day.

OptionDescription
Start timeThe earliest time (HH:MM) in the allowed window.
End timeThe latest time (HH:MM) in the allowed window. If end < start, the window wraps midnight.
DaysOptional. Select which days of the week the window applies. If left empty, applies every day.

I/O State

Check the current state of a digital I/O port before proceeding.

OptionDescription
PortThe I/O port number to check.
Expected stateActive (high) or Inactive (low).
Target DeviceCheck Local (this camera) (default) or a Remote device. See Remote Device Conditions.

Counter Compare

Compare a named counter value against a threshold.

OptionDescription
Counter nameName of the counter to read.
Operator>, >=, <, <=, or =
ThresholdNumeric value to compare against.

Variable Compare

Compare a named variable against a string value.

OptionDescription
Variable nameName of the variable to check. Use system.armed for the arm/disarm pattern (see Arm / Disarm).
Operatorequals or not equals.
ValueString to compare against.

Trigger Data

Compare a field of the event that fired the rule, using the same field names as {{trigger.KEY}}. Use it to filter on a second field when the trigger's Value Condition already filters on one, for example an ALPV plate read where listName contains block.

OptionDescription
FieldName of the field in the trigger data, e.g. carState.
Operator=, ≠, contains, does not contain, >, >=, <, or <=. contains ignores case; the comparisons use numbers when both sides are numeric.
ValueValue to compare against. Booleans are true / false. Can contain variables such as {{var.NAME}}.

The condition fails when the field is missing, for example when the rule is fired manually. To act once per object, compare an ID with a variable the rule sets itself: condition carID ≠ {{var.last_car}}, and a first action Set Variable last_car = {{trigger.carID}}.

HTTP Check

Make an HTTP request and pass the condition only if the response matches expectations.

OptionDescription
URLThe endpoint to check. Supports {{variable}} substitution.
Expected HTTP StatusThe status code the response must return (e.g. 200).
Expected Body ContainsOptional substring that must appear in the response body.
JSON PathOptional dot-notation path into a JSON response to extract a value (e.g. data.temperature).
JSON Expected ValueThe value the extracted JSON field must equal for the condition to pass.
Allow insecureSkip TLS certificate verification for self-signed certificates.
TLS certificatesOptional TLS profile: trust a private CA and/or present a client certificate to servers that require one (mutual TLS).

AOA Occupancy

Poll Axis Object Analytics occupancy for a scenario and pass only if the count satisfies a configured threshold.

OptionDescription
ScenarioThe AOA scenario to poll. When a remote device is configured, click Load to fetch available scenarios from that device.
Object classWhich class to count: Human, Car, Truck, Bus, Bike, Other Vehicle, or All (total).
Operator>, >=, <, <=, or =
CountNumeric occupancy threshold.
Target DeviceCheck Local (this camera) (default) or a Remote device. See Remote Device Conditions.

Day / Night

Pass only during daytime (after sunrise) or nighttime (after sunset). Uses the sunrise/sunset engine with the latitude/longitude configured in Location settings.

OptionDescription
PeriodDay or Night.
Sunrise / Sunset offsetOptional minutes to shift each boundary (positive = later, up to ±720). For example, a sunrise offset of 60 keeps it night until one hour after sunrise, and a sunset offset of -30 starts night 30 minutes before sunset.
Lat/Lon overrideOptional per-condition coordinates, overriding the global Location setting. Leave empty (or 0/0) to use the Location setting.

The rule editor shows when day and night start today, including any offsets, and updates as you type coordinates or offsets. Day can run past midnight, for example when a positive sunset offset moves sunset after 00:00. On days with no sunrise or sunset, midnight sun counts as day and polar night as night.

Device Event State

Check the current state of any device event by polling the device’s event instances.

OptionDescription
Topic / EventSelect from the live event catalog or type a topic substring. When a remote device is configured, click Load to fetch the full event catalog from that device — no manual entry needed.
SourceShown for events with several instances, such as virtual inputs or I/O ports (source port). Enter a Source Value, for example 17, to check that instance only. Left empty, the condition passes when any instance matches.
Data keyThe event data key to inspect (e.g. active).
Expected valueThe value the data key must equal (e.g. true or 1).
Target DeviceCheck Local (this camera) (default) or a Remote device. See Remote Device Conditions.

Remote Device Conditions

Three condition types — I/O State, AOA Occupancy, and Device Event State — can evaluate a remote Axis device instead of the camera running Event Engine. This enables cross-device logic: for example, "only activate the speaker display if a door sensor on a different camera is currently active".

OptionDescription
Target DeviceSelect Local (this camera) (default) or Remote device.
IP / HostnameIP address or hostname of the remote Axis device, e.g. 192.168.1.100.
UsernameLogin name on the remote device (default: root).
PasswordPassword for the remote device user.

Loading Remote Scenarios and Events

For AOA Occupancy and Device Event State conditions, a Load button appears once a remote host is configured. Click it to fetch available AOA scenarios or the full event catalog directly from the remote device — no manual entry of scenario IDs or topic paths required.

💡
Combine with Remote Device Actions to build fully cross-device automation: detect an event on one camera, validate a condition on a second, and act on a third.
⚠
Remote condition checks add a short network round-trip (typically 100–500 ms on a LAN). Avoid using them in rules with very tight timing requirements.

Actions

Actions run in sequence from top to bottom when a rule fires and all conditions pass. You can drag action rows to reorder them. All text fields support {{variable}} substitution — see Dynamic Variables.

HTTP Request

Send an HTTP request to any URL.

OptionDescription
MethodGET, POST, PUT, or DELETE.
URLTarget URL. Supports {{variable}} substitution.
Username / PasswordOptional HTTP Basic Auth credentials.
HeadersOptional key/value pairs (e.g. Authorization: Bearer token).
BodyRequest body (POST/PUT). Template substitution supported.
Attach snapshotFetch a JPEG from the camera and make it available as {{trigger.snapshot_base64}} in subsequent actions and in this action's body.
Attach ALPV imageFor AXIS License Plate Verifier events: fetch the image ALPV saved for the car (vehicle crop, plate crop or frame, per ALPV's Save full frame setting) as {{trigger.alpv_image_base64}}. ALPV saves it a few seconds after it first sees the car, so the request waits up to 15 s (other rules keep running), then sends without it.
Allow insecureSkip TLS certificate verification for self-signed certificates.
TLS certificatesOptional TLS profile: trust a private CA and/or present a client certificate to servers that require one (mutual TLS).
Fallback actionExecute an alternate action when the request fails (non-2xx or network error): log a syslog message, publish to MQTT, or send a secondary HTTP GET request.

MQTT Publish

Publish a message to an MQTT topic. Requires the MQTT broker to be configured in Settings.

OptionDescription
TopicMQTT topic to publish to. Template substitution supported.
PayloadMessage payload. Template substitution supported.
QoSQuality of service: 0 (at most once) or 1 (at least once).
RetainSet the MQTT retain flag so the broker keeps the last message for new subscribers.

Sparkplug B Publish

Publish declared metrics as a Sparkplug B NDATA (or DDATA when a device id is configured). Requires Sparkplug B to be enabled in Settings → Sparkplug B Edge Node.

OptionDescription
MetricsOne MetricName=value per line. Values support template substitution, e.g. Camera/Temperature={{trigger.MaxTemp}}.

Metric names must already be declared in Settings. Sparkplug requires every metric to appear in the birth certificate, so an undeclared name is rejected and logged rather than published.

Values are converted to the datatype declared for that metric, so 23.7 becomes a Double, true becomes a Boolean, and so on.

Slack

Send a message to a Slack channel via an incoming webhook.

OptionDescription
Webhook URLThe Slack incoming webhook URL.
MessageMessage text. Template substitution supported. Slack markdown is allowed.
Channel overrideOptional. Override the default channel configured in the webhook.
Username overrideOptional. Override the display name.
Attach snapshotCapture and include a camera snapshot in the Slack message.

Teams

Send an Adaptive Card to Microsoft Teams via a Power Automate / Workflows webhook.

OptionDescription
Webhook URLThe Teams channel incoming webhook URL.
TitleOptional card title. Template substitution supported.
MessageCard body text. Template substitution supported.
Theme colourOptional hex colour for the card accent bar (e.g. #FF0000).
Attach snapshotCapture and include a camera snapshot in the Teams card.

Telegram

Send a message via the Telegram Bot API.

OptionDescription
Bot tokenYour Telegram bot's API token (from @BotFather).
Chat IDThe target chat, group, or channel ID.
MessageMessage text. Template substitution supported. Use MarkdownV2 or HTML parse mode.
Parse modeMarkdown, HTML, or plain text.
Disable link previewSuppress Telegram's URL preview cards.
Attach snapshotCapture a camera snapshot and send it as a photo in the Telegram message.

Email (SMTP)

Send an email. The SMTP server, credentials, and from address are configured once in Settings → Email (SMTP); each action only needs the recipient, subject, and body.

OptionDescription
ToRecipient email address (comma-separated for multiple recipients).
SubjectEmail subject. Template substitution supported.
BodyEmail body. Template substitution supported.
Attach snapshotCapture and attach a camera snapshot JPEG to the email.

Snapshot Upload

Capture a JPEG from the camera and upload it to a URL.

OptionDescription
URLTarget URL. Template substitution supported.
MethodPOST or PUT.
ChannelVideo channel to capture from.
Username / PasswordOptional Basic Auth credentials for the target server.
Extra headersOptional custom HTTP headers for the upload request.
Allow insecureSkip TLS certificate verification for self-signed certificates.
TLS certificatesOptional TLS profile: trust a private CA and/or present a client certificate to servers that require one (mutual TLS).

A response other than 2xx counts as a failure and is shown on the rule in the Event Log. To upload at a fixed interval, use a Schedule trigger with an interval.

FTP Upload

Capture a JPEG and upload it to an FTP, FTPS or SFTP server.

OptionDescription
URLFull FTP URL including path. Template-aware (e.g. ftp://server/{{camera.serial}}/{{date}}_{{time}}.jpg). Directories are created automatically.
Username / PasswordFTP credentials.
Use TLS (FTPS)Encrypt an ftp:// connection (explicit FTPS, AUTH TLS); fails if the server doesn't support it. ftps:// URLs (implicit FTPS) are always encrypted; sftp:// uses SSH, so the TLS options don't apply.
Allow insecureSkip TLS certificate verification for self-signed certificates.
TLS certificatesOptional TLS profile: trust a private CA and/or present a client certificate to servers that require one (mutual TLS).

Send Syslog

Write a message to the camera's system log (visible in the camera's system log view).

OptionDescription
MessageSyslog message text. Template substitution supported.
LevelLog severity: info, warning, or error.

Recording

Start or stop a recording on the camera.

OptionDescription
OperationStart or Stop.
Stream profileRecording profile to use (configured in the camera's recording settings).
Max durationMaximum recording length in seconds. Recording stops automatically after this limit.
While activeAutomatically stop the recording when the triggering condition clears. See While-Active Actions.

Overlay Text

Write text on the live video stream.

OptionDescription
OperationShow / update writes the text; Clear removes the overlay.
ChannelVideo channel number.
Overlay nameOptional. Actions with the same name and channel control the same overlay, also across rules, so one rule can show an alert and another can clear it. Leave empty to use the channel's shared overlay.
TextOverlay text. Template substitution supported.
PositionWhere to place the text: top-left, top-right, bottom-left, bottom-right, top, bottom, Custom (X,Y) (from -1 to 1, left/top to right/bottom), or Keep current.
Text colourOverlay colour: white, black, red, transparent, or semi-transparent.
Font sizeOptional. Text height in pixels; the camera's range is usually 16–200. Empty = the camera's default.
Background / OutlineOptional. Colour behind the text and around the letters, from the same list as the text colour. Default leaves the camera's own style. Unset fields are not sent, so an update without them keeps the overlay's current style.
DurationSeconds before the overlay is cleared automatically; firing again restarts the countdown. Set to 0 and enable While active to clear when the triggering condition ends.
While activeAutomatically clear the overlay when the triggering condition clears. See While-Active Actions.

Event Engine only changes or removes overlays it created. Overlays added in the camera's own settings or by other apps are left alone, and Event Engine's overlays are removed when it stops.

Overlay Image

Show an image on the live video stream, for example a transparent alert frame, together with an Overlay Text action for the details.

OptionDescription
OperationShow / update shows the image (or swaps it); Clear removes it.
ChannelVideo channel number.
Overlay nameOptional. Actions with the same name and channel control the same image overlay, also across rules. Image and text overlays are named separately, so an alert frame and its text can share a name.
ImageAn image uploaded to the camera, chosen from the list. For a remote device, enter its file name as shown in that device's overlay list.
PositionAs for Overlay Text. The position is the image's top-left corner.
Duration / While activeAs for Overlay Text.

Preparing the image: upload it once in the camera's settings under Video > Overlays. A PNG with a transparent background keeps the video visible through it. Make it the size of the camera's full resolution (for example 3840×2160 on a 4K camera) and upload it with scaling to the stream resolution turned on, so it covers the same part of the picture at every stream resolution; a smaller image covers only part of a full-resolution stream.

An image overlay counts as Event Engine's while it shows the image at the position Event Engine set, so another overlay showing the same image elsewhere (for example a logo added in the camera's settings) is left alone. Choose a position rather than Keep current for the most reliable result.

PTZ Preset

Move the camera to a named preset position. Available presets are loaded from the camera.

OptionDescription
ChannelPTZ channel number.
PresetPreset name (selected from a dropdown populated by the camera).

Guard Tour

Start or stop a configured PTZ guard tour. Available tours are loaded from the camera and shown in a dropdown.

OptionDescription
OperationStart or Stop.
TourGuard tour to control (selected from a dropdown).

IR Cut Filter

Force the IR cut filter state.

OptionDescription
ModeDay (IR cut on), Night (IR cut off), or Auto (restore automatic switching).
ChannelVideo channel to apply the filter change to.

Privacy Mask

Enable or disable a named privacy mask.

OptionDescription
Mask nameName of the privacy mask to control (loaded from the camera).
ActionEnable or Disable.
ChannelVideo channel to apply the mask change to.

Wiper

Trigger the windshield wiper on cameras that support it (e.g. outdoor housings).

OptionDescription
OperationStart or Stop.
Device IDWhich wiper device to control (for multi-sensor cameras).
DurationOptional. Seconds to run the wiper (for cameras with variable-duration wipers).

Light Control

Control an Axis illuminator (white light or IR LED).

OptionDescription
OperationOn, Off, Auto (restore automatic control), or Flash (strobe the light on/off one or more times).
Light IDWhich illuminator to control (loaded from the camera).
IntensityOptional brightness percentage (0–100) when turning on or flashing.
Flash duration (ms)For Flash only: on-time per pulse, in milliseconds (50–5000, default 300). Drives the LED directly, bypassing the firmware light-schedule 1 second minimum.
Flash countFor Flash only: number of pulses (1–20, default 1).
Gap (ms)For Flash only: off-time between pulses, in milliseconds (50–5000). Defaults to the flash duration. Only used when count is greater than 1.

Audio Clip

Play a named media clip on the camera. Available clips are loaded from the camera.

OptionDescription
ClipSelect from audio clips installed on the camera.

Siren / Light

Start or stop a named siren/LED profile on devices that support it (e.g. Axis D6310).

OptionDescription
OperationStart or Stop.
ProfileSiren/light profile name (from a dropdown populated by the camera).
While activeAutomatically stop the siren/light when the triggering condition clears. See While-Active Actions.

Speaker Display

Send a text notification to the built-in display on Axis speaker-display devices (e.g. Axis D3110). Requires AXIS OS 11.11 or later.

OptionDescription
OperationShow sends a new notification; Stop cancels the current one immediately.
MessageText to display (max 1000 characters). Template variables such as {{camera.name}} and {{timestamp}} are supported.
Text SizeSmall, Medium (default), or Large.
Text ColorHex color for the message text, e.g. #FFFFFF.
Background ColorOptional hex background color, e.g. #000000.
Scroll DirectionRight→Left (horizontal) or Bottom→Top (vertical). Leave as None for static text.
Scroll Speed0–10. 0 = static text, 1 = slowest scroll, 10 = fastest.
Duration TypeIndefinite (stays until another request or Stop), Repetitions (scroll N times), Time (display for N seconds), or Time + complete msg (at least N seconds, rounded up to a full scroll).
Duration ValueThe repetition count or time in seconds for the chosen duration type. Leave Duration Type as Indefinite to control the display manually or via While active.
While activeOnly shown when Duration is Indefinite. Automatically sends a Stop command when the triggering condition clears. See While-Active Actions.

I/O Output

OptionDescription
PortsOne setting per output port: On (active), Off (inactive) or Leave as is. The camera's outputs are listed by name. All selected ports are switched in one request, those turning off first, so e.g. changing a stack light from green to purple (ports 1 and 3 on, 2 off) never shows another colour on the way.
DurationOptional. After N seconds, return every selected port to the state it had before the action. Firing the rule again meanwhile restarts the time but still returns to the original states.
While activeReturn the ports to the states they had before the action when the triggering condition clears. See While-Active Actions.

I/O Flash

Flash one or more output ports, for example a red and a blue lamp alternating. Timing is in milliseconds and every port is left off when flashing stops.

OptionDescription
Output portsPort numbers in flash order, e.g. 1, 3, up to 8. Ports configured as outputs on the camera are listed by name under the field; click one to add it.
PatternOne after another lights each port in turn (1, 3, 1, 3, …). Colours never mix: the camera switches ports about 20 ms apart, so at each change the previous port goes off just before the next comes on, leaving a barely visible dark moment even with no gap. All together switches every port on and off at the same time.
On timeHow long each flash stays on, 100–60000 ms. Each switch takes the camera about 80 ms, so this is the practical minimum.
GapOff time between flashes, 0–60000 ms. Blank means no gap for One after another and the same as the on time for All together.
Stop afterNumber of flashes (one flash = every listed port once), Time in seconds, or Until rule is disabled.
Stop earlyAlso stop when the triggering condition clears. See While-Active Actions.

Flashing also stops when the rule is disabled, edited or deleted, and when an I/O Output action sets one of its ports, so buttons such as Red or All off built from I/O Output take over straight away. Firing the rule again while it flashes restarts the count or time limit without breaking the rhythm. A Test run that would never stop is cut off after 10 seconds.

Notification Digest

Buffer events and send a batched summary on a configurable interval. Useful for sending hourly summaries instead of individual alerts.

OptionDescription
Buffer nameUnique identifier for this digest queue. Multiple rules can contribute to the same digest.
Flush intervalSeconds between sends. Minimum: 30 seconds.
Entry templateTemplate for each buffered event line. Template substitution supported.
DeliveryWhere to send the batched summary: Slack, Teams, Telegram, Email, or MQTT.

Delay

Pause the action sequence for N seconds before continuing to the next action. Use this to create timed sequences within a rule.

Set Variable

Create or update a named persistent variable stored on the camera. Variables survive restarts.

OptionDescription
Variable nameName of the variable to set. Use any alphanumeric name. Use system.armed for arm/disarm.
ValueNew value. Template substitution supported.

Increment Counter

Modify a named persistent counter.

OptionDescription
Counter nameName of the counter to modify. Auto-created on first use.
OperationIncrement (add), Decrement (subtract), Reset (zero the counter), or Set (assign an exact value).
Delta / ValueAmount to add/subtract (for increment/decrement), or the exact value (for set). Default: 1.

Run Rule

Immediately run another rule's actions. The target rule must be enabled and its conditions must pass; its triggers, cooldown and execution limits are not checked. Useful for shared action sequences, or conditional branching: give each target rule a Variable condition and only the matching one runs. The target gets no trigger data, so Trigger Data conditions in it never pass.

Fire ACAP Event

Fire an ACAP event that is visible to other Axis applications and to the camera's built-in Action Rules system. Events you create here appear as trigger conditions in the camera's native event handler, letting you chain Event Engine rules into built-in camera automations.

OptionDescription
EventSelect from all declared events. System events (RuleFired, RuleError, EngineReady) are always available. Custom events you create appear here too.
+ NewOpens the inline event creator. Fill in an ID, display name, and type, then click Create to register the event immediately and select it.
Event ID(New event) Unique identifier — letters, digits, and underscores only (e.g. DoorOpenAlert).
Display Name(New event) Human-readable label shown in the Axis event system.
Data fields(New event, optional) Values the event carries, as name:type pairs separated by commas, e.g. plate:string, count:int. Types: string, int, double, bool. A VMS or another app subscribing to the event receives them with these types.
Type(New event) Stateless fires a one-shot pulse. Stateful maintains a High/Low state that other apps and built-in rules can subscribe to.
State(Stateful events only) Set the event High (active) or Low (inactive).
Field values(Events with data fields) One input per field. Plain text or templates such as {{trigger.KEY}}, {{trigger.payload}} or {{var.NAME}}, so values from an MQTT message, a webhook or a variable can be passed on as an Axis event. The result is converted to the field's type; a value that is not a valid number or boolean fails the action with an error in the event log. Empty sends "", 0 or false.
Remove EventPermanently removes a custom event. System events cannot be removed. Rules that fire the deleted event must be updated manually.
ℹ️
Custom events are registered at startup from settings/events.json. They persist across reboots and appear immediately in the Axis camera's built-in Action Rules under CameraApplicationPlatform / Event Engine.

Device Event Query

Fetch the latest data from any device event and inject it as {{trigger.FIELD}} variables for subsequent actions. When targeting the local camera, reads from the passive subscription cache. When targeting a remote Axis device, queries the remote device's event API on demand.

OptionDescription
Device Event to QuerySelect an event from the dropdown. For remote devices, click Load Events to fetch the available events from the target camera.
Target DeviceChoose Local (this camera) or Remote device. When remote, provide the IP/hostname, username, and password.

Set Device Parameter

Update any camera parameter via param.cgi.

⛔
Expert users only. Incorrect parameter values can disrupt camera operation. Tab out of the parameter field to look up the current value, allowed values, type, and range directly from the camera before applying.
OptionDescription
ParameterFull parameter name (e.g. root.ImageSource.I0.Sensor.Brightness). Tab out of the field to look up the live value.
ValueNew value.

ACAP Control

Start, stop, or restart another installed ACAP application on the camera.

OptionDescription
ApplicationSelect from installed ACAP apps (loaded from the camera).
OperationStart, Stop, or Restart.

InfluxDB Write

Write a data point to InfluxDB using line protocol.

OptionDescription
VersionInfluxDB v1 or v2.
URLInfluxDB server URL.
Database / Bucketv1: database name. v2: bucket name.
Authv1: username/password. v2: API token.
MeasurementLine protocol measurement name. Template substitution supported.
TagsOptional tag key=value pairs. Template substitution supported.
FieldsAt least one field key=value pair. Template substitution supported.
Allow insecureSkip TLS certificate verification for self-signed certificates.
TLS certificatesOptional TLS profile: trust a private CA and/or present a client certificate to servers that require one (mutual TLS).

AOA Get Counts

Fetch accumulated crossline counts from an Axis Object Analytics scenario and inject them as template variables for use in subsequent actions.

VariableDescription
{{aoa_total}}Total crossings
{{aoa_human}}Human crossings
{{aoa_car}}Car crossings
{{aoa_truck}}Truck crossings
{{aoa_bus}}Bus crossings
{{aoa_bike}}Bike crossings
{{aoa_otherVehicle}}Other vehicle crossings
{{aoa_timestamp}}Timestamp of latest count

Enable Reset after fetch to zero the counters after reading them.

Modbus Write

Write one typed value or several values to holding registers or coils over TCP, serial gateway, or direct RTU/RS-485. The automatic function uses FC06/FC05 for one value and FC16/FC15 for several. Adjacent entries are batched; gaps start another request. Coils accept 0, 1, true, false, on, or off.

Register types include signed/unsigned 16-, 32- and 64-bit integers, 32-/64-bit floats, and strings (two bytes per register, up to 125 registers). String length is counted in registers, not characters; UTF-8 characters may use multiple bytes. Set the word order for 32/64-bit values, or the byte order for 16-bit values and strings. Scale and offset convert the requested value to raw form using (value - offset) / scale. Values can contain templates such as {{trigger.temperature}}. Numbers and coils need a value; an empty string clears a text register.

Strings are converted to the selected encoding (UTF-8, ASCII, ISO-8859-1, ISO-8859-2, Windows-1250 or Windows-1252) and padded to the configured length. Fill chooses the padding: NUL (0x00, the default) after the text, or spaces with the text left, right or centered (an odd space goes after the text). Choose spaces if the device shows 0x00 as a character. A typed-in character the encoding can't represent is rejected when the rule is saved; text from a template is sent with ? in its place. One request carries at most 123 registers or 1968 coils (the Modbus limit); longer runs and long strings are split into several requests automatically.

Test sends the write and waits for the device's answer, so it reports timeouts, refused connections and Modbus exceptions. A pooled TCP connection that the device closed while idle is reopened automatically.


Remote Device Actions

Many camera actions (Recording, PTZ Preset, Siren / Light, Speaker Display, I/O Output, I/O Flash, Audio Clip, Guard Tour, IR Cut Filter, Privacy Mask, Wiper, Light Control, ACAP Control, Overlay Text, Overlay Image, Set Device Param) can target a remote Axis device instead of the camera running Event Engine.

This enables cross-device automation — for example, triggering a Speaker Display on an Axis C1710 when motion is detected by a Q3538 running Area Object Analytics.

OptionDescription
Target DeviceSelect Local (this camera) (default) or Remote device. Only shown for action types that support remote execution.
IP / HostnameIP address or hostname of the remote Axis device, e.g. 192.168.1.100. Must be reachable from the camera running Event Engine.
UsernameLogin name on the remote device. Default: root.
PasswordPassword for the remote device user.

Loading Remote Capabilities

For actions with dropdown options (PTZ presets, audio clips, siren profiles, guard tours, privacy masks, ACAP applications), a Load button appears next to the input field when a remote device is configured. Click it to fetch the available options directly from the remote device and populate the dropdown.

💡
Credentials are stored as part of the rule configuration. For production deployments, consider using a dedicated account with only the necessary privileges on the remote device.

While-Active Actions

Several actions support a While active mode: Recording, Overlay Text, Overlay Image, Siren / Light, I/O Output, I/O Flash, and Speaker Display. When enabled, the action automatically reverses itself (stops recording, clears overlay, stops siren, resets output, stops flashing, stops the display) when the triggering condition clears. While-active works correctly even when the action targets a remote device.

This is useful for scenarios like "record while motion is detected" or "activate siren while I/O port 1 is high". The rule must use a stateful trigger (e.g. a Device Event that has active/inactive states) for while-active to function correctly.

💡
While-active works best with a single stateful trigger. Combine with the AND trigger logic when using multiple triggers.

Rule Templates

Click the Templates button on the Rules tab to browse a library of pre-built starter rules. Templates provide a ready-made configuration that you can customise after applying. Available templates include:

  • Device Event → HTTP Webhook
  • Device Event → Email Alert
  • Device Event → Slack / Teams / Telegram
  • Daily Schedule → Syslog
  • MQTT Message → Set Variable
  • I/O Input → I/O Output
  • I/O Input → Siren + MQTT
  • Hourly Snapshot → FTP Upload
  • Manual → PTZ + Overlay
  • Motion → Recording (Business Hours)
  • Arm / Disarm System via MQTT (3 rules)
  • AOA Object Detection → MQTT
  • Schedule → InfluxDB Sensor Write
  • Device Event → Notification Digest
  • Sunrise / Sunset → IR Cut Filter
  • Counter Threshold → Slack Alert
  • Cross-Device: I/O Input → Remote I/O State Condition → Speaker Display
  • Cross-Device: AOA Detection → Remote AOA Occupancy Condition → Alert

Applying a template opens the rule editor pre-filled with the template's triggers, conditions, and actions. Modify any field before saving.


Dynamic Variables

Most text fields in actions support {{variable}} substitution. Click Insert variable in the rule editor to browse available values for the current trigger type.

Global variables (always available)

VariableValue
{{timestamp}}RFC 3339 timestamp in device local time at the moment of firing (e.g. 2026-04-30T13:00:00+02:00)
{{date}}YYYY-MM-DD
{{time}}HH:MM:SS (24-hour)
{{camera.serial}}Camera serial number
{{camera.model}}Camera model name
{{camera.ip}}Camera IP address
{{trigger_json}}Full trigger event data as a compact JSON string

GPS variables

These values can be used in any action when GPS is enabled and a fresh fix is available. Values other than age resolve to -- if the fix is unavailable or stale.

VariableValue
{{gps.latitude}}, {{gps.longitude}}Coordinates in decimal degrees with 6 decimals (aliases: gps.lat and gps.lon)
{{gps.speed_kmh}}, {{gps.speed_mph}}, {{gps.speed_knots}}, {{gps.speed_mps}}Speed in km/h, mph, knots, or m/s with 1 decimal; append |0 for whole numbers
{{gps.heading}}, {{gps.heading_cardinal}}Heading in whole degrees and compass direction
{{gps.altitude_m}}Altitude in metres
{{gps.satellites}}, {{gps.fix_quality}}, {{gps.fix}}Satellite count, NMEA fix quality, and fix label
{{gps.utc}}, {{gps.date}}UTC time and date from the NMEA sentence
{{gps.age}}Seconds since the latest valid fix; -- if none has been received

Trigger variables (set by the fired trigger)

VariableSource
{{trigger.KEY}}Individual field from the trigger event (e.g. {{trigger.CO2}} from an air quality event)
{{trigger.topic}}MQTT topic (MQTT Message trigger)
{{trigger.payload}}MQTT payload (MQTT Message trigger)
{{trigger.scenario_id}}AOA scenario ID (AOA Scenario trigger)
{{trigger.reason}}Detected object class, e.g. Human (AOA Scenario trigger)
{{trigger.fired_rule_id}}ID of the rule that fired (Rule Chain trigger)
{{trigger.snapshot_base64}}Base64-encoded JPEG (when Attach snapshot is enabled on HTTP Request)
{{trigger.alpv_image_base64}}Base64-encoded JPEG saved by ALPV for the car (when Attach ALPV image is enabled on HTTP Request)

Decimal formatting

Append |N to any numeric variable to round it to N decimal places:

ExampleResult
{{trigger.Temperature|2}}20.35 (from 20.3456789)
{{trigger.CO2|0}}412 (no decimals)
{{var.avg_temp|1}}22.5 (one decimal)

XML escaping

Append |xml to any variable to escape & < > " ' when building an XML body, e.g. {{trigger.vehicleMake|xml}}.

Non-numeric values pass through unchanged.

Named variables and counters

VariableValue
{{var.NAME}}Value of a named variable (set with Set Variable action)
{{counter.NAME}}Current value of a named counter

Example — MQTT payload with sensor data:

Camera {{camera.serial}} at {{timestamp}}: {{trigger_json}}

Arm / Disarm Pattern

Use the Variable Compare condition with a variable named system.armed (value "true" or "false") to make rules only fire when the system is armed.

Example rules to implement this (available in the Templates picker):

  1. Arm System via MQTT — subscribe to cameras/<serial>/arm, set system.armed = "true"
  2. Disarm System via MQTT — same topic, set system.armed = "false"
  3. Motion Alert When Armed — motion trigger + Variable Compare condition: system.armed = "true"

You can also arm/disarm via an HTTP webhook, a schedule, an I/O input, or any other trigger.

MQTT Setup

Configure the MQTT broker in Settings → MQTT. The built-in client supports MQTT 3.1.1.

OptionDescription
Broker HostHostname or IP of the MQTT broker (e.g. 192.168.1.100 or broker.hivemq.com).
PortDefault 1883; use 8883 for TLS.
Client IDUnique identifier sent to the broker. Default: acap_event_engine.
Username / PasswordOptional broker credentials. Password is stored separately and never returned via GET.
KeepaliveMQTT keepalive interval in seconds. Default: 60.
Backup BrokersOptional. One host or host:port per line, up to seven. Tried in order, one second apart, whenever the broker above cannot be reached. Saving settings always restarts from the primary.
Use TLSEnable TLS/SSL encryption for secure broker connections.
Skip certificate verificationOnly with TLS. Accept self-signed or otherwise untrusted broker certificates and skip hostname checks. Traffic stays encrypted, but the broker identity is not verified, so use it only on trusted networks.
TLS certificatesOnly with TLS. Optional TLS profile for a broker with its own CA or one that requires a client certificate. Saving the profile reconnects with the new certificates.
EnabledToggle MQTT on or off without clearing settings.

Features:

  • QoS 0 and QoS 1 publish
  • Wildcard topic subscriptions (+ and #)
  • Automatic reconnect with exponential backoff
  • Failover across a list of brokers
  • TLS/SSL encryption

The Settings tab shows a live connection status indicator next to "MQTT BROKER".

Sparkplug B Setup

Event Engine can act as a Sparkplug B edge node, so an industrial or building-automation host (Ignition, Honeywell EBI, Cirrus Link and other Tahu-compatible systems) can consume device data and send commands back. Normally this requires an industrial gateway between the Axis device and the Sparkplug network; here the device is the edge node itself.

Sparkplug uses the broker configured above, so enable MQTT first.

Identity

OptionDescription
Group IDRequired. The Sparkplug group namespace, e.g. Building1.
Edge Node IDDefaults to the device serial number so two devices never collide.
Device IDOptional. Set it to expose the metrics as a child device (DBIRTH/DDATA) instead of at node level.
Primary Host IDOptional. The device republishes its birth certificate when this host announces itself online, and holds back data while the host reports itself offline.
SpecificationSparkplug 3.0 (Eclipse standard) or Sparkplug B 2.2. Only the host STATE topic and payload differ.

Ids must not contain /, + or #.

Metrics

Every metric is declared once here so the birth certificate stays stable and aliases are consistent for the life of a session. Each metric has a name, a datatype, and one of two sources:

  • Bound to a device event — published automatically whenever the value changes (report by exception). Choose the event and the field to read.
  • Unbound — driven by a Sparkplug B Publish rule action, so you can add conditions, schedules and templates.

Changing the metric list or the node identity publishes a fresh birth certificate. bdSeq and Node Control/Rebirth are reserved and added automatically.

Topics follow the standard namespace:

spBv1.0/{group_id}/NBIRTH|NDATA|NDEATH|NCMD/{edge_node_id}
spBv1.0/{group_id}/DBIRTH|DDATA|DDEATH|DCMD/{edge_node_id}/{device_id}

Status

The Settings tab shows a live indicator next to "SPARKPLUG B EDGE NODE" with the session bdSeq, the current sequence number, the metric count and how many samples are buffered. Below the metric editor a table lists every declared metric with its alias and last known value. The same data is available from GET /local/acap_event_engine/sparkplug.

Behaviour worth knowing

  • No data message is ever sent before its birth certificate.
  • bdSeq is persisted across app restarts, so a late death certificate from a previous session cannot be mistaken for the current one.
  • The death certificate is registered as the MQTT will and published explicitly on a graceful shutdown, because a clean MQTT disconnect suppresses the will.
  • Metrics collected while the broker is unreachable are buffered in memory and replayed on reconnect, flagged as historical.
  • The same buffering applies while a configured Primary Host reports itself offline, so telemetry is not published into an empty room. A node with no Primary Host ID, or one whose host has never published a STATE message, always publishes.
  • A command that arrives twice because a rule subscribes to a topic filter overlapping the node's own command topic is acted on once.
  • Both Node Control/Rebirth and Device Control/Rebirth are honoured.
  • QoS 1 publishes are resent with the DUP flag until the broker acknowledges them or the retry budget runs out. Sessions are always clean, as Sparkplug requires, so anything still unacknowledged when a connection drops is discarded and the reconnect publishes a fresh birth certificate instead.

TLS Certificates

Some servers only accept a camera that proves who it is with a client certificate (mutual TLS, like curl --cert --key --cacert), or use certificates from their own CA rather than a public one. Store those certificates once in Settings → TLS Certificates as a named profile, then choose the profile in HTTP Request, Snapshot Upload, InfluxDB Write, FTP Upload, the HTTP Check condition, or the MQTT broker and Email (SMTP) settings.

OptionDescription
NameShown in the rule editor. Letters, digits, spaces, -, _ and ..
Server CA certificateOptional. The CA that signed the server's certificate. When set, only this CA (or bundle) is trusted for the server, instead of the public CAs.
Client certificateOptional. Presented to servers that ask for one. PEM; may be followed by its chain, and may also contain the private key.
Private keyRequired with a client certificate and must match it. Encrypted keys need their passphrase; the key is decrypted when saved, stored on the camera only readable by the app, and never shown or exported again.
Don't verify server certificateThe connection is still encrypted and the client certificate is still sent, but the server's identity isn't checked. For testing or servers with self-signed certificates.

Choose a file (PEM, or a binary .cer/.der certificate) or paste the PEM text. When editing a profile, leave a field empty to keep what is stored, or tick Remove; to renew a client certificate, choose only the new certificate if it uses the same key. PKCS#12 files (.p12/.pfx) must first be converted, for example openssl pkcs12 -in camera.p12 -out camera.pem -nodes.

The list shows each profile's client certificate, what the server is checked against, when the earliest certificate expires, and which rules use it. A profile in use can't be deleted until those rules (or the MQTT settings) use another one. Certificates that expire within 30 days, or have expired, are reported in the Event Log at startup and every 12 hours. Server addresses can be host names or IP addresses; an IP address must be in the server certificate's subject alternative names (or its CN, when it has none).

⚠
Profiles are not part of Export Settings, so private keys never leave the camera. After moving to another camera, add the profiles there again; rules refer to them by name.

Application Settings

Click a section heading to show or hide its settings; this does not change whether a feature is enabled. The page remembers open sections in this browser. MQTT, Sparkplug B, GPS, Alert Stream and RS-485 have separate on/off switches that keep their configuration when turned off. Email, Location, TLS Certificates and Proxy show a summary of their configuration instead of a switch.

Configure and save MQTT or Sparkplug B before enabling it. For an existing RS-485 setup, its switch only enables or disables the TCP listener; use Configure RS-485 when you intend to change the serial port settings.

Location

Set the camera's latitude and longitude (decimal degrees). This is required for Sunrise/Sunset triggers and the Day/Night condition to work correctly.

  • North latitude is positive (e.g. 59.3293 for Stockholm)
  • South latitude is negative (e.g. -33.8688 for Sydney)
  • East longitude is positive (e.g. 18.0686)
  • West longitude is negative (e.g. -73.9442 for New York)

GPS / NMEA

Enable GPS input and choose the source that matches the connected receiver. Supported sources are the camera's serial port, a UDP listener, a TCP listener, or a TCP client. Serial device auto resolves the camera's configured serial port; baud rate 0 leaves its existing rate unchanged. Network inputs use the configured port; TCP client mode also uses the configured remote host. The stale timeout controls how long a fix remains usable without a new valid sentence.

The live status card in Settings shows connection state, received bytes, parser counters, fix age, and recent NMEA lines. The same status is available from the admin-only GET /local/acap_event_engine/gps endpoint. GPS and Modbus should not be configured to use the same physical serial port at the same time.

Email (SMTP)

Configure once and reuse across all email actions.

OptionDescription
SMTP ServerUse host:port format (e.g. smtp.gmail.com:587).
Use TLSEnable STARTTLS. Recommended for port 587.
Skip certificate verificationAccept a self-signed or otherwise untrusted mail server certificate. Traffic stays encrypted, but the server identity is not checked.
TLS certificatesOptional TLS profile for a mail server with its own CA or one that requires a client certificate.
Username / PasswordSMTP credentials.
From AddressSender address used in all outbound emails.

SOCKS5 Proxy

Route all outbound connections (HTTP actions, HTTP conditions, and MQTT) through a SOCKS5 proxy. Leave blank to connect directly.

Set to localhost:1055 to tunnel all traffic over Axis Tailscale ACAP.

Device Capabilities

The Settings tab automatically detects and displays your camera's capabilities:

  • Status cards — total rules, enabled rules, events today
  • Device info — model, serial number, IP address, firmware version, engine version
  • PTZ — number of presets per channel
  • Audio clips — available media clips
  • Siren / Light — available profiles
  • Privacy masks — configured masks
  • Guard tours — configured tours
  • Object Analytics (AOA) — installed scenarios
  • Installed ACAPs — other ACAP applications on the camera

These capabilities are used to populate dropdowns in the rule editor (PTZ presets, audio clips, siren profiles, guard tours, AOA scenarios, ACAP apps, privacy masks). If a capability is not available on your camera, the corresponding action types will show an empty dropdown.

Event Log

The Event Log tab shows the most recent rule firings and Event Engine's own system messages. Each entry includes:

  • Time — local time with milliseconds
  • Rule / Source — which rule fired, or for a system message where it came from (e.g. MQTT, Engine, Variables, Device API)
  • Result — fired or why it was blocked; for system messages Info, Warning or Error
  • Details — trigger data and action errors, or the system message

System messages include:

  • Event Engine's own MQTT connection: Connected to broker:8883 with TLS, and disconnects with the reason (e.g. connection closed by broker). This is Event Engine's client, separate from the device's built-in MQTT client.
  • Startup: the Event Engine version, and the variables loaded from file (and those reset because they are volatile).
  • Warnings and errors that previously only appeared in the app log, such as TLS errors (SSL_connect failed: ... certificate verify failed) or a device API that failed (/local/objectanalytics/control.cgi returned HTTP 500).

A message that repeats within 10 minutes is shown once, at the time of its latest repeat, with a count (×N since the first one). At most 20 new system messages are added per minute, so a failing connection cannot push everything else out of the log. The app log (System → Logs on the device) still has every line, including rejected API requests, which are not shown here.

Use the filter dropdown to show Everything, Rules only, System messages or a single rule. Click Refresh to reload. Click Clear to empty the log.

Variables Tab

The Variables tab shows all named variables and counters currently stored on the camera. You can:

  • View the current value of any variable or counter
  • Choose what happens on restart: Keep value (the default) or Reset to a value you enter
  • Delete a variable or counter

By default variables are persistent: they keep their value across restarts and in-place updates. A variable set to Reset to is volatile: every time Event Engine starts it begins at that value (empty, or 0 for a counter, if left blank), which suits states such as "door open" that should not survive a restart. The Event Log lists the values loaded at startup.

Backup & Restore

Use the Backup & Restore controls in the Settings → Device section to export your configuration before performing updates or camera replacements.

  • Export Rules — download all rules as a JSON file
  • Import Rules — upload a previously exported rules JSON
  • Export Settings — download MQTT, SMTP, location, and proxy settings
  • Import Settings — restore a settings file
⚠
Export your rules and settings before uninstalling. A full uninstall clears all stored data. In-place updates (reinstall over existing) preserve data.

Rules can also be exported individually using Export from the rule card's action menu, producing a portable single-rule JSON file that can be shared and imported on any camera.

Passwords and tokens in exports

Every export asks whether to include secrets. Export without secrets is the default and is the right choice for files you share or store outside the camera.

  • Rules: passwords, API and bot tokens, webhook trigger tokens, Slack and Teams webhook URLs, and the values of credential headers such as Authorization or X-API-Key are replaced with __REDACTED__. Importing such a file leaves those fields empty, and the import message lists the rules that need them entered again. A webhook trigger gets a new random token, so update the systems that call it.
  • Settings: the MQTT and SMTP passwords are left empty. Importing the file keeps the passwords already saved on the camera.
⚠
Choose Include secrets only for a full backup you can restore without retyping credentials. Anyone with that file can use those accounts and devices, so store it like a password.

REST API

All endpoints are under /local/acap_event_engine/ and require HTTP Basic Auth with admin credentials.

MethodPathDescription
GET / POST / DELETE/rulesRule CRUD. POST without id creates; POST with ?id= updates. GET with ?id=<id>&action=export downloads a rule as JSON. Exports replace secrets with __REDACTED__ unless &include_secrets=1 is added; saving a rule with __REDACTED__ keeps the stored value.
POST/fireFire a rule manually or via webhook token.
GET/triggersAvailable trigger types and their schemas.
GET/actionsAvailable action types and their schemas.
GET / POST / DELETE/variablesNamed variables and counters.
GET/eventsEvent log (most recent rule firings).
GET/engineEngine status, MQTT status, device info.
GET/aoaList configured AOA scenarios (id, name, type).
GET / POST/settingsEngine, MQTT, SMTP, and device configuration.
GET / POST / DELETE/certsTLS profiles. GET lists certificate details and used_by (never keys). POST {name, ca, cert, key, passphrase, insecure} creates or updates; omitted parts are kept, "" removes one. DELETE ?name= answers 409 while the profile is in use. Actions and the HTTP Check condition take tls_profile, as do mqtt.tls_profile and smtp.tls_profile.
GET/alertStreamReal-time multipart event stream. See below.

For interactive documentation, open API Docs.

Alert Stream

A long-lived HTTP endpoint that streams rule-fire events in real-time as multipart/mixed JSON chunks. External software connects with Digest Auth and receives a new chunk every time a rule fires — with no polling required.

GET http://<camera-ip>/local/acap_event_engine/alertStream

The connection stays open until the client disconnects or Alert Stream is turned off in Settings. The first chunk is sent immediately on connect:

--AxisEventBoundary
Content-Type: application/json
Content-Length: 18

{"connected":true}

Each subsequent chunk is a JSON object with the following fields:

FieldTypeDescription
ipAddressstringCamera IP address
macAddressstringCamera serial number
dateTimestringISO 8601 UTC timestamp
eventTypestringAlways RuleFired
eventStatestringAlways active
eventDescriptionstringRule name
rule_idstringRule UUID
rule_namestringRule display name
trigger_dataobjectRaw trigger event data (fields vary by trigger type)

Up to 8 clients may be connected simultaneously. Connect with:

curl --digest -u admin:pass -N \
  "http://<camera-ip>/local/acap_event_engine/alertStream"

Event Engine — MIT License