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
- Click + New Rule on the Rules tab (or choose a starter from Templates).
- Enter a descriptive rule name.
- Click + Add Trigger and choose a trigger type from the dropdown.
- Optionally click + Add Condition to add guards that must pass.
- Click + Add Action and configure what should happen.
- Click Save Rule. The rule is active immediately.
{{variable}} placeholders. Available variables change based on the trigger type selected.Rule Settings
| Setting | Description |
|---|---|
| Enabled | Toggle to enable or disable a rule without deleting it. |
| Trigger logic | OR (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 logic | AND (default) — all conditions must pass. OR — any single passing condition allows execution. |
| Cooldown | Minimum seconds between firings. Prevents alert floods when a trigger fires repeatedly. |
| Max Executions | Limit 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
| Option | Description |
|---|---|
| Event | Select from the live event catalog. Use the search box to filter by name or topic. |
| Value condition | Optionally 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 duration | Require the value condition to persist for N seconds before the rule fires. The timer resets if the condition breaks before N seconds elapse. |
{{trigger.*}} variables for downstream actions.Schedule
Fires on a time-based schedule. Four schedule modes are available:
| Mode | Description |
|---|---|
| Cron | Standard 5-field cron expression (minute hour day month weekday). Use * for "every". Example: 0 8 * * 1-5 = every weekday at 08:00. |
| Interval | Fire repeatedly every N seconds. Minimum: 10 seconds. |
| Daily time | Fire at a specific time of day. Select the days of the week to apply. |
| Sunrise / Sunset | Fire 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.
| Option | Description |
|---|---|
| Topic | MQTT topic to subscribe to. Wildcards + (single level) and # (multi-level) are supported. |
| Payload filter | Optional. 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}}).
I/O Input
Fires on a digital input port state change.
| Option | Description |
|---|---|
| Port | The I/O port number to monitor. |
| Edge | Rising (low→high), Falling (high→low), or Both. |
| Hold duration | Require 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.
| Option | Description |
|---|---|
| Counter name | The name of the counter to watch. |
| Operator | Comparison: >, >=, <, <=, or =. |
| Value | The numeric threshold value. |
Rule Chain
Fires when another named rule executes. Use this to build multi-step workflows where one rule triggers another.
| Option | Description |
|---|---|
| Rule name | The 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.
| Option | Description |
|---|---|
| Scenario | Select from the list of configured AOA scenarios. |
| Object class filter | Optionally 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.
| Option | Description |
|---|---|
| Connection | TCP 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. |
| Read | One 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 type | Registers 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 order | ABCD, 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. |
| Encoding | For 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 / offset | Numeric 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 variable | Optional for a single value. Every map row has its own variable; variables are volatile unless made persistent separately. |
| Compare / threshold | For 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.
| Option | Description |
|---|---|
| Metric name | Optional. The metric the host writes, e.g. Speaker/Play. Leave empty to fire on any metric write. |
| Value filter | Optional. 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.
| Trigger | Behavior |
|---|---|
| GPS Update | Fires on a valid fix, at most once per configured interval. |
| GPS Speed | Fires when speed enters the selected threshold. Supports above, below, and between comparisons, units (km/h, mph, knots, m/s), and optional hysteresis. |
| GPS Geofence | Fires 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 Fix | Fires 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.
| Option | Description |
|---|---|
| Start time | The earliest time (HH:MM) in the allowed window. |
| End time | The latest time (HH:MM) in the allowed window. If end < start, the window wraps midnight. |
| Days | Optional. 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.
| Option | Description |
|---|---|
| Port | The I/O port number to check. |
| Expected state | Active (high) or Inactive (low). |
| Target Device | Check Local (this camera) (default) or a Remote device. See Remote Device Conditions. |
Counter Compare
Compare a named counter value against a threshold.
| Option | Description |
|---|---|
| Counter name | Name of the counter to read. |
| Operator | >, >=, <, <=, or = |
| Threshold | Numeric value to compare against. |
Variable Compare
Compare a named variable against a string value.
| Option | Description |
|---|---|
| Variable name | Name of the variable to check. Use system.armed for the arm/disarm pattern (see Arm / Disarm). |
| Operator | equals or not equals. |
| Value | String 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.
| Option | Description |
|---|---|
| Field | Name 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. |
| Value | Value 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.
| Option | Description |
|---|---|
| URL | The endpoint to check. Supports {{variable}} substitution. |
| Expected HTTP Status | The status code the response must return (e.g. 200). |
| Expected Body Contains | Optional substring that must appear in the response body. |
| JSON Path | Optional dot-notation path into a JSON response to extract a value (e.g. data.temperature). |
| JSON Expected Value | The value the extracted JSON field must equal for the condition to pass. |
| Allow insecure | Skip TLS certificate verification for self-signed certificates. |
| TLS certificates | Optional 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.
| Option | Description |
|---|---|
| Scenario | The AOA scenario to poll. When a remote device is configured, click Load to fetch available scenarios from that device. |
| Object class | Which class to count: Human, Car, Truck, Bus, Bike, Other Vehicle, or All (total). |
| Operator | >, >=, <, <=, or = |
| Count | Numeric occupancy threshold. |
| Target Device | Check 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.
| Option | Description |
|---|---|
| Period | Day or Night. |
| Sunrise / Sunset offset | Optional 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 override | Optional 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.
| Option | Description |
|---|---|
| Topic / Event | Select 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. |
| Source | Shown 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 key | The event data key to inspect (e.g. active). |
| Expected value | The value the data key must equal (e.g. true or 1). |
| Target Device | Check 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".
| Option | Description |
|---|---|
| Target Device | Select Local (this camera) (default) or Remote device. |
| IP / Hostname | IP address or hostname of the remote Axis device, e.g. 192.168.1.100. |
| Username | Login name on the remote device (default: root). |
| Password | Password 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.
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.
| Option | Description |
|---|---|
| Method | GET, POST, PUT, or DELETE. |
| URL | Target URL. Supports {{variable}} substitution. |
| Username / Password | Optional HTTP Basic Auth credentials. |
| Headers | Optional key/value pairs (e.g. Authorization: Bearer token). |
| Body | Request body (POST/PUT). Template substitution supported. |
| Attach snapshot | Fetch a JPEG from the camera and make it available as {{trigger.snapshot_base64}} in subsequent actions and in this action's body. |
| Attach ALPV image | For 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 insecure | Skip TLS certificate verification for self-signed certificates. |
| TLS certificates | Optional TLS profile: trust a private CA and/or present a client certificate to servers that require one (mutual TLS). |
| Fallback action | Execute 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.
| Option | Description |
|---|---|
| Topic | MQTT topic to publish to. Template substitution supported. |
| Payload | Message payload. Template substitution supported. |
| QoS | Quality of service: 0 (at most once) or 1 (at least once). |
| Retain | Set 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.
| Option | Description |
|---|---|
| Metrics | One 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.
| Option | Description |
|---|---|
| Webhook URL | The Slack incoming webhook URL. |
| Message | Message text. Template substitution supported. Slack markdown is allowed. |
| Channel override | Optional. Override the default channel configured in the webhook. |
| Username override | Optional. Override the display name. |
| Attach snapshot | Capture and include a camera snapshot in the Slack message. |
Teams
Send an Adaptive Card to Microsoft Teams via a Power Automate / Workflows webhook.
| Option | Description |
|---|---|
| Webhook URL | The Teams channel incoming webhook URL. |
| Title | Optional card title. Template substitution supported. |
| Message | Card body text. Template substitution supported. |
| Theme colour | Optional hex colour for the card accent bar (e.g. #FF0000). |
| Attach snapshot | Capture and include a camera snapshot in the Teams card. |
Telegram
Send a message via the Telegram Bot API.
| Option | Description |
|---|---|
| Bot token | Your Telegram bot's API token (from @BotFather). |
| Chat ID | The target chat, group, or channel ID. |
| Message | Message text. Template substitution supported. Use MarkdownV2 or HTML parse mode. |
| Parse mode | Markdown, HTML, or plain text. |
| Disable link preview | Suppress Telegram's URL preview cards. |
| Attach snapshot | Capture 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.
| Option | Description |
|---|---|
| To | Recipient email address (comma-separated for multiple recipients). |
| Subject | Email subject. Template substitution supported. |
| Body | Email body. Template substitution supported. |
| Attach snapshot | Capture and attach a camera snapshot JPEG to the email. |
Snapshot Upload
Capture a JPEG from the camera and upload it to a URL.
| Option | Description |
|---|---|
| URL | Target URL. Template substitution supported. |
| Method | POST or PUT. |
| Channel | Video channel to capture from. |
| Username / Password | Optional Basic Auth credentials for the target server. |
| Extra headers | Optional custom HTTP headers for the upload request. |
| Allow insecure | Skip TLS certificate verification for self-signed certificates. |
| TLS certificates | Optional 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.
| Option | Description |
|---|---|
| URL | Full FTP URL including path. Template-aware (e.g. ftp://server/{{camera.serial}}/{{date}}_{{time}}.jpg). Directories are created automatically. |
| Username / Password | FTP 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 insecure | Skip TLS certificate verification for self-signed certificates. |
| TLS certificates | Optional 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).
| Option | Description |
|---|---|
| Message | Syslog message text. Template substitution supported. |
| Level | Log severity: info, warning, or error. |
Recording
Start or stop a recording on the camera.
| Option | Description |
|---|---|
| Operation | Start or Stop. |
| Stream profile | Recording profile to use (configured in the camera's recording settings). |
| Max duration | Maximum recording length in seconds. Recording stops automatically after this limit. |
| While active | Automatically stop the recording when the triggering condition clears. See While-Active Actions. |
Overlay Text
Write text on the live video stream.
| Option | Description |
|---|---|
| Operation | Show / update writes the text; Clear removes the overlay. |
| Channel | Video channel number. |
| Overlay name | Optional. 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. |
| Text | Overlay text. Template substitution supported. |
| Position | Where 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 colour | Overlay colour: white, black, red, transparent, or semi-transparent. |
| Font size | Optional. Text height in pixels; the camera's range is usually 16–200. Empty = the camera's default. |
| Background / Outline | Optional. 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. |
| Duration | Seconds 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 active | Automatically 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.
| Option | Description |
|---|---|
| Operation | Show / update shows the image (or swaps it); Clear removes it. |
| Channel | Video channel number. |
| Overlay name | Optional. 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. |
| Image | An 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. |
| Position | As for Overlay Text. The position is the image's top-left corner. |
| Duration / While active | As 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.
| Option | Description |
|---|---|
| Channel | PTZ channel number. |
| Preset | Preset 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.
| Option | Description |
|---|---|
| Operation | Start or Stop. |
| Tour | Guard tour to control (selected from a dropdown). |
IR Cut Filter
Force the IR cut filter state.
| Option | Description |
|---|---|
| Mode | Day (IR cut on), Night (IR cut off), or Auto (restore automatic switching). |
| Channel | Video channel to apply the filter change to. |
Privacy Mask
Enable or disable a named privacy mask.
| Option | Description |
|---|---|
| Mask name | Name of the privacy mask to control (loaded from the camera). |
| Action | Enable or Disable. |
| Channel | Video channel to apply the mask change to. |
Wiper
Trigger the windshield wiper on cameras that support it (e.g. outdoor housings).
| Option | Description |
|---|---|
| Operation | Start or Stop. |
| Device ID | Which wiper device to control (for multi-sensor cameras). |
| Duration | Optional. Seconds to run the wiper (for cameras with variable-duration wipers). |
Light Control
Control an Axis illuminator (white light or IR LED).
| Option | Description |
|---|---|
| Operation | On, Off, Auto (restore automatic control), or Flash (strobe the light on/off one or more times). |
| Light ID | Which illuminator to control (loaded from the camera). |
| Intensity | Optional 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 count | For 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.
| Option | Description |
|---|---|
| Clip | Select 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).
| Option | Description |
|---|---|
| Operation | Start or Stop. |
| Profile | Siren/light profile name (from a dropdown populated by the camera). |
| While active | Automatically 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.
| Option | Description |
|---|---|
| Operation | Show sends a new notification; Stop cancels the current one immediately. |
| Message | Text to display (max 1000 characters). Template variables such as {{camera.name}} and {{timestamp}} are supported. |
| Text Size | Small, Medium (default), or Large. |
| Text Color | Hex color for the message text, e.g. #FFFFFF. |
| Background Color | Optional hex background color, e.g. #000000. |
| Scroll Direction | Right→Left (horizontal) or Bottom→Top (vertical). Leave as None for static text. |
| Scroll Speed | 0–10. 0 = static text, 1 = slowest scroll, 10 = fastest. |
| Duration Type | Indefinite (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 Value | The 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 active | Only shown when Duration is Indefinite. Automatically sends a Stop command when the triggering condition clears. See While-Active Actions. |
I/O Output
| Option | Description |
|---|---|
| Ports | One 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. |
| Duration | Optional. 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 active | Return 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.
| Option | Description |
|---|---|
| Output ports | Port 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. |
| Pattern | One 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 time | How long each flash stays on, 100–60000 ms. Each switch takes the camera about 80 ms, so this is the practical minimum. |
| Gap | Off 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 after | Number of flashes (one flash = every listed port once), Time in seconds, or Until rule is disabled. |
| Stop early | Also 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.
| Option | Description |
|---|---|
| Buffer name | Unique identifier for this digest queue. Multiple rules can contribute to the same digest. |
| Flush interval | Seconds between sends. Minimum: 30 seconds. |
| Entry template | Template for each buffered event line. Template substitution supported. |
| Delivery | Where 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.
| Option | Description |
|---|---|
| Variable name | Name of the variable to set. Use any alphanumeric name. Use system.armed for arm/disarm. |
| Value | New value. Template substitution supported. |
Increment Counter
Modify a named persistent counter.
| Option | Description |
|---|---|
| Counter name | Name of the counter to modify. Auto-created on first use. |
| Operation | Increment (add), Decrement (subtract), Reset (zero the counter), or Set (assign an exact value). |
| Delta / Value | Amount 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.
| Option | Description |
|---|---|
| Event | Select from all declared events. System events (RuleFired, RuleError, EngineReady) are always available. Custom events you create appear here too. |
| + New | Opens 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 Event | Permanently removes a custom event. System events cannot be removed. Rules that fire the deleted event must be updated manually. |
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.
| Option | Description |
|---|---|
| Device Event to Query | Select an event from the dropdown. For remote devices, click Load Events to fetch the available events from the target camera. |
| Target Device | Choose 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.
| Option | Description |
|---|---|
| Parameter | Full parameter name (e.g. root.ImageSource.I0.Sensor.Brightness). Tab out of the field to look up the live value. |
| Value | New value. |
ACAP Control
Start, stop, or restart another installed ACAP application on the camera.
| Option | Description |
|---|---|
| Application | Select from installed ACAP apps (loaded from the camera). |
| Operation | Start, Stop, or Restart. |
InfluxDB Write
Write a data point to InfluxDB using line protocol.
| Option | Description |
|---|---|
| Version | InfluxDB v1 or v2. |
| URL | InfluxDB server URL. |
| Database / Bucket | v1: database name. v2: bucket name. |
| Auth | v1: username/password. v2: API token. |
| Measurement | Line protocol measurement name. Template substitution supported. |
| Tags | Optional tag key=value pairs. Template substitution supported. |
| Fields | At least one field key=value pair. Template substitution supported. |
| Allow insecure | Skip TLS certificate verification for self-signed certificates. |
| TLS certificates | Optional 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.
| Variable | Description |
|---|---|
| {{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.
| Option | Description |
|---|---|
| Target Device | Select Local (this camera) (default) or Remote device. Only shown for action types that support remote execution. |
| IP / Hostname | IP address or hostname of the remote Axis device, e.g. 192.168.1.100. Must be reachable from the camera running Event Engine. |
| Username | Login name on the remote device. Default: root. |
| Password | Password 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.
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.
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)
| Variable | Value |
|---|---|
| {{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.
| Variable | Value |
|---|---|
| {{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)
| Variable | Source |
|---|---|
| {{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:
| Example | Result |
|---|---|
| {{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
| Variable | Value |
|---|---|
| {{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):
- Arm System via MQTT — subscribe to
cameras/<serial>/arm, setsystem.armed = "true" - Disarm System via MQTT — same topic, set
system.armed = "false" - 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.
| Option | Description |
|---|---|
| Broker Host | Hostname or IP of the MQTT broker (e.g. 192.168.1.100 or broker.hivemq.com). |
| Port | Default 1883; use 8883 for TLS. |
| Client ID | Unique identifier sent to the broker. Default: acap_event_engine. |
| Username / Password | Optional broker credentials. Password is stored separately and never returned via GET. |
| Keepalive | MQTT keepalive interval in seconds. Default: 60. |
| Backup Brokers | Optional. 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 TLS | Enable TLS/SSL encryption for secure broker connections. |
| Skip certificate verification | Only 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 certificates | Only 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. |
| Enabled | Toggle 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
| Option | Description |
|---|---|
| Group ID | Required. The Sparkplug group namespace, e.g. Building1. |
| Edge Node ID | Defaults to the device serial number so two devices never collide. |
| Device ID | Optional. Set it to expose the metrics as a child device (DBIRTH/DDATA) instead of at node level. |
| Primary Host ID | Optional. The device republishes its birth certificate when this host announces itself online, and holds back data while the host reports itself offline. |
| Specification | Sparkplug 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.
bdSeqis 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
STATEmessage, 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/RebirthandDevice Control/Rebirthare 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.
| Option | Description |
|---|---|
| Name | Shown in the rule editor. Letters, digits, spaces, -, _ and .. |
| Server CA certificate | Optional. 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 certificate | Optional. Presented to servers that ask for one. PEM; may be followed by its chain, and may also contain the private key. |
| Private key | Required 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 certificate | The 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).
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.3293for Stockholm) - South latitude is negative (e.g.
-33.8688for Sydney) - East longitude is positive (e.g.
18.0686) - West longitude is negative (e.g.
-73.9442for 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.
| Option | Description |
|---|---|
| SMTP Server | Use host:port format (e.g. smtp.gmail.com:587). |
| Use TLS | Enable STARTTLS. Recommended for port 587. |
| Skip certificate verification | Accept a self-signed or otherwise untrusted mail server certificate. Traffic stays encrypted, but the server identity is not checked. |
| TLS certificates | Optional TLS profile for a mail server with its own CA or one that requires a client certificate. |
| Username / Password | SMTP credentials. |
| From Address | Sender 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
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
AuthorizationorX-API-Keyare 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.
REST API
All endpoints are under /local/acap_event_engine/ and require HTTP Basic Auth with admin credentials.
| Method | Path | Description |
|---|---|---|
| GET / POST / DELETE | /rules | Rule 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 | /fire | Fire a rule manually or via webhook token. |
| GET | /triggers | Available trigger types and their schemas. |
| GET | /actions | Available action types and their schemas. |
| GET / POST / DELETE | /variables | Named variables and counters. |
| GET | /events | Event log (most recent rule firings). |
| GET | /engine | Engine status, MQTT status, device info. |
| GET | /aoa | List configured AOA scenarios (id, name, type). |
| GET / POST | /settings | Engine, MQTT, SMTP, and device configuration. |
| GET / POST / DELETE | /certs | TLS 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 | /alertStream | Real-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:
| Field | Type | Description |
|---|---|---|
ipAddress | string | Camera IP address |
macAddress | string | Camera serial number |
dateTime | string | ISO 8601 UTC timestamp |
eventType | string | Always RuleFired |
eventState | string | Always active |
eventDescription | string | Rule name |
rule_id | string | Rule UUID |
rule_name | string | Rule display name |
trigger_data | object | Raw 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