The UniFi Protect Gateway integrates UniFi Protect with Control4. It connects to the console, discovers Protect cameras, sensors and relays and creates a driver for each one, with video, snapshot and detection events for programming.
Automatic installation of camera, sensor (UP Sense) and relay (Smart Sense Relay) drivers.
Real-time motion, person, vehicle, animal, package, doorbell, line crossing and loitering events, plus recognized face, license plate read and sounds (smoke, glass break, baby crying and others).
PTZ cameras moved to the positions saved in Protect, with patrols.
ViewPort: choose from programming which Liveview each ViewPort shows.
Alarm Manager: arm with a profile, disarm and trigger Protect alarms from programming, with the current state in a property and variables.
Video from each camera in high, medium or low quality, including third-party (ONVIF) cameras added to Protect.
Camera snapshot in Navigator and in notifications.
Protect Alarm Manager webhook as an alternative for events.
Out of scope: two-way doorbell audio and recording control.
Prerequisites
UniFi OS console running UniFi Protect, with a fixed or reserved IP.
An API Key created in Protect (see Installation).
Recommended: a local console user (it does not need to be an administrator), for more reliable events and video format detection.
ZOOM – UniFi Cloud driver in the project (licensing) and the Camera, Sensor and Relay drivers in the Documents\Control4\Drivers folder.
Internet access on the controller to activate the license.
Installation
Creating the API Key
In the UniFi Protect app, go to Settings → Integrations.
Click Create API Key, give it a name (for example Control4) and copy the key.
In Composer
Add the ZOOM – UniFi Protect Gateway driver. It connects to UniFi Cloud by itself.
Fill in IP Address and paste the key in API Token.
Recommended: fill in Console Username and Console Password with a local console user and wait for Console Login Status to show Autenticado (authenticated).
Run Auto Install Camera Drivers, Auto Install Sensor Drivers and Auto Install Relay Drivers, according to the Protect equipment.
Real-time events
With the console user filled in, the driver uses the same event channel as the Protect app, the most reliable one. Without it, it uses only the API Key. If events still fail, use the webhook:
Copy the address in the Webhook URL property.
In Protect, go to Settings → Alarm Manager and create an alarm with the desired trigger (motion, detection or doorbell) and the Send Webhook action, POST method, with that address.
Trigger a detection and check Last Webhook Payload.
Events screen
The ZOOM – UniFi Protect Events icon shows in Navigator the list of Protect events with the picture of each one, at home or away. To install it, run the Gateway's Auto Install Events Screen action.
Filters by camera, type (people, vehicles, animals, packages, faces, license plates, doorbell, sounds or motion) and period (from the last hour to the last 7 days).
Tap an event to see a larger picture, with the name of who was recognized or the plate that was read.
Requires the console user (Console Username / Console Password).
On the local network, the same screen opens in a browser at the address in the Events Page URL property.
Properties
Property
Description
License Status
License state (trial, activated or invalid), reported by UniFi Cloud.
Driver Name / Driver Version
Driver name and installed version.
Driver Information
Last driver action or status message, with date and time.
Log Level / Log Mode
Log level and destination (Composer Lua tab).
IP Address
IP of the UniFi console running Protect.
Network Port
Console HTTPS port (443, read only).
API Token
API Key created in Protect Settings → Integrations.
Console Username / Console Password
Local console user (optional, recommended).
Console Login Status
Login state with the console user.
Connection Status
Connection state with Protect.
Protect Status
Recorder name, model and Protect version.
Alarm Manager Status
Alarm Manager state (Armed, Arming, Breach or Disarmed) and the armed profile.
Last Alarm
Last alarm change (armed, disarmed or triggered), with date and time.
Send Notifications
What goes to the ZOOM Universal Notifier: All Events, Alerts Only (default: alarm triggered and console offline) or Off.
Last Auto-Install Result
Result of the last automatic installation.
Webhook Port
Controller port that receives the Alarm Manager webhook and serves the camera snapshots (default 8745).
Webhook URL
Address to use in the Protect Alarm Manager.
Events Page URL
Address of the events screen in a browser (local network).
Last Webhook Payload
Last notice received by the webhook.
Actions and commands
Item
Description
Print Topology Summary (action)
Lists in the Lua log the cameras, sensors and relays found and the driver of each.
Refresh Camera / Sensor / Relay List (action)
Reads the list from Protect again, useful after adding equipment.
Auto Install Camera / Sensor / Relay Drivers (action)
Creates a driver for each item that does not have one yet.
Refresh ViewPorts (action)
Fetches the Protect ViewPorts and Liveviews again.
Refresh Communication (command)
Reconnects to the console.
Set ViewPort Liveview (command)
Chooses which Liveview a ViewPort shows (e.g. garage cameras when the doorbell rings). ViewPorts and Liveviews appear as lists.
Show Arm Profiles (action)
Shows in the Lua log the Protect arm profiles and the current state.
Show Alarm History (action)
Shows in the Lua log the last 50 alarm records. The history also appears in the Protect Events screen, under the Alarms type.
Arm Protect (command)
Arms the Alarm Manager with the profile chosen from the list. Profiles are created in Protect, under Alarm Manager.
Disarm Protect (command and action)
Disarms the Alarm Manager. In Global Alarm Manager mode you can choose one profile or all.
Auto Install Alarm Buttons (action)
Adds one ZOOM – UniFi Protect Alarm button per profile, to arm and disarm from Navigator with the state on the icon.
Auto Install Events Screen (action)
Adds the ZOOM – UniFi Protect Events icon and connects it to the Gateway.
New Events Page Key (action)
Changes the key in the events screen address (the old address stops working).
Trigger Protect Alarm (command)
Triggers a Protect alarm that has the Webhook trigger, using that trigger's ID.
Connections
Connection
Use
Protect
Connection to UniFi Cloud (licensing), automatic.
Protect Events
Connection to the events screen icon, made by the Auto Install Events Screen action.
Notifier
Connection to the ZOOM Universal Notifier (free), which sends the alerts by push, e-mail, WhatsApp or Telegram. Binds automatically when the Notifier is in the project.
Cameras, sensors and relays
One connection per item, created and connected by the automatic installation.
Events and conditionals
Event
When it fires
Online State Changed
The console went online or offline.
Protect Arming / Armed / Disarmed
The Alarm Manager started arming, armed or was disarmed (including from the app). Variables ARM_STATUS and ARM_PROFILE.
Protect Alarm Breach
An alarm of the armed profile was triggered.
Troubleshooting
Symptom
What to do
Events screen asks for the console user
Fill in Console Username / Console Password and check Console Login Status.
Cameras, sensors or relays are not created
Check Last Auto-Install Result, run Print Topology Summary, then the list Refresh action and the automatic installation again.
Real-time events do not arrive
Fill in the console user, check that the API Key is still valid and that the controller can reach the console. If needed, set up the webhook (see Real-time events).
Camera or sensor model is empty
The model is only read with the console user filled in on the Gateway.
Driver blocked
Check License Status and that there is a UniFi Cloud in the project with a Protect or Bundle license.
Licensing
The license is validated by the ZOOM – UniFi Cloud driver (one instance per project), connected to this driver automatically. Protect and Bundle (all UniFi drivers) licenses are accepted.
There is a 30-day trial. The key is entered in UniFi Cloud, under License Key.
The license state is shown in License Status, at the top of this driver's properties.
The controller needs internet access to activate the license.
Events screen in Navigator, with pictures and filters by camera, type and period, and allowed cameras per icon. Alarm history and alarm-triggered alerts through the ZOOM Universal Notifier. Driver version shown in UniFi Cloud. Recognized face, license plate read, line crossing, loitering, package and sounds as camera events. PTZ cameras move to saved positions. Choose each ViewPort's Liveview and arm or disarm the Alarm Manager from programming or with Navigator buttons, one per profile. ZOOM name in Composer and license state in License Status, at the top of the properties. Cleaner event log, updated libraries and new documentation.
20260808
08/08/2026
Support for Protect UP Sense sensors and Smart Sense Relay.