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 and doorbell events.
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.
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.
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.
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 Communication (command)
Reconnects to the console.
Connections
Connection
Use
Protect
Connection to UniFi Cloud (licensing), automatic.
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.
Troubleshooting
Symptom
What to do
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.
ZOOM name in Composer. The license state is now shown in License Status, at the top of the properties. Cleaner event log, with technical details only at Debug level. Library update and new documentation.
20260808
08/08/2026
Support for Protect UP Sense sensors and Smart Sense Relay.