Driver Details

New Community

UniFi Network

By: David Bowdler
Updated: Nov. 2, 2026
Download Driver Purchase License
Rating: 0.0 (0 ratings)
Log in to rate this driver

UniFi Network

Bring your Ubiquiti UniFi network into RTI. This driver gives two-way local control and monitoring of a UniFi Network controller - every access point, switch, PoE port and Wi-Fi client - straight from your RTI panels, with no cloud account required.

Key Features

  • Works with both controller types: UniFi OS consoles (UDM, Dream Router, Cloud Gateway, Cloud Key Gen2) on port 443, or a legacy Cloud Key Gen1 / self-hosted controller on 8443 - one tick-box selects which.
  • Device status: per-AP and per-switch online state, model, IP, CPU, memory, uptime, firmware and client counts.
  • PoE control: switch any PoE port on, off or power-cycle it, with live wattage feedback and per-port mode (Auto / Off / 24V).
  • Device control: reboot any access point or switch, or flash its locate LED.
  • Wi-Fi networks: enable or disable any WLAN on demand.
  • Presence by name: track up to eight devices by MAC or by device name - name-matching follows a phone through Wi-Fi MAC randomisation, which a MAC alone cannot.
  • Block a Wi-Fi client: cut a watched device off Wi-Fi from a panel and restore it, always targeting its live address.
  • PDU / SmartPower outlets: switch each outlet on a UniFi PDU Pro, Smart Plug or Smart Power Strip on, off or toggle it, and power-cycle it with UniFi's own outlet power-cycle. Per-outlet name, on/off, watts and switchable feedback, plus Protected Outlets that can never be switched off by an accidental press.
  • Device lifecycle events: Connected, Disconnected, Provisioning, Adopting and Missing-Heartbeat events for every AP and switch.
  • Built-in dashboard: an on-processor Web Object control page, plus design-time device discovery and a telnet debug console.

Requirements

  • An RTI XP processor on the same network as the controller.
  • A local controller admin account (a Ubiquiti cloud / SSO login will not work - it needs an emailed MFA code).
  • Integration Designer 11.x.

How It Works

The driver talks to the controller's local API over HTTPS - no cloud, no third-party server. A design-time Discover menu fills in your devices automatically, and the driver's tags drop straight onto your panels. Feedback is optimistic for instant button response, with a fast background poll. Tested on a Cloud Gateway Ultra with a USW-Lite-16-PoE switch and U6+ access points (UniFi OS), and a Cloud Key Gen1 (legacy). PDU outlet control and power-cycle verified on a UniFi PDU Pro. A 120-minute free trial is built in.

UniFi Network | Version 0.38

Introduction

Monitors and controls a Ubiquiti UniFi Network controller from RTI: access points, switches, PoE ports, Wi-Fi networks, clients and presence, and UniFi SmartPower outlet devices (PDU Pro, Smart Plug, Smart Power Strip). Everything runs over the controller's local API on your network - no cloud account and no internet connection are needed.

Ubiquiti makes the UniFi range of network equipment and the UniFi Network application that manages it. The driver is written and supported by Smart Home Programming and Automation.

Important Note

The driver must log in with a local controller admin. A Ubiquiti SSO / cloud account will not work, because it requires an emailed MFA code the processor cannot supply. Create a local-only admin on the controller before setting the driver up.

Version History

  • 0.38 - Adds the standard Connection State and License Status variables (with one boolean per state) alongside the existing Connected and Licence Status variables, which are unchanged. The licence key is now read with surrounding spaces ignored and re-checked shortly after start-up. Help is now provided as instructions.md, and the help text shows the correct version.
  • 0.37 - Power-Cycle Outlet now uses UniFi's own outlet power-cycle, so the PDU switches the outlet off and on by itself (falls back to off / wait / on on older controllers). Outlet commands are refused on a UniFi UPS. Discover now lists any devices that did not get one of the 8 slots. Power-Cycle Off Time default raised to 20 seconds.
  • 0.36 - Protected Outlets: outlets that can never be switched off by accident, optionally not power-cycled either, with Protected / Unprotected feedback and an Outlet Command Blocked event.
  • 0.35 - PDU / SmartPower outlet control: On, Off, Toggle and Power-Cycle per outlet, outlet names, watts and switchable feedback, and PDU MAC to pick the device on sites with more than one.

Driver Features

  • Device status: each AP / switch online state, model, IP and client count.
  • Client / health counts: total, Wi-Fi, wired; WLAN and LAN health.
  • Presence: track up to 8 clients by MAC OR device name - Online / Status (Connected, Disconnected, Blocked) variables + Came Online / Went Offline events for occupancy automation.
  • Block a Wi-Fi client: cut a watched device (e.g. a phone) off Wi-Fi and restore it, with Blocked / Unblocked feedback.
  • Control: reboot a device, flash its locate LED, switch a PoE port on/off or power-cycle it, enable/disable a WLAN, block/unblock a client.
  • Snappy feedback: buttons update the instant you press them (optimistic), and the controller is polled every few seconds (Poll Interval, default 5s) so changes made elsewhere appear quickly.

Presence & Blocking Wi-Fi Clients

Under "Presence Watch" you can track up to 8 clients. For each watch slot set:

  • Watch N Name: the friendly label shown on screen (e.g. "David's Phone").
  • Watch N MAC or Name: what to match on - either the client's MAC (aa:bb:cc:dd:ee:ff) OR its UniFi device name (e.g. David-s-S23-Ultra), as it appears in the UniFi client list.

IMPORTANT - phones randomise their Wi-Fi MAC. Modern iPhones (Private Wi-Fi Address) and Android phones change their MAC periodically, and a phone can also change its MAC to get around a block. If you watch a phone by MAC it will eventually show offline even while it is connected. For any phone, enter its DEVICE NAME instead of a MAC: the driver then follows it through every MAC change, and Block always targets its current address.

Each watched client exposes Online, Name, Status (Connected / Disconnected / Blocked), Blocked, Unblocked and its resolved live MAC, plus Came Online / Went Offline events. Block and Unblock cut the client off Wi-Fi and restore it; a blocked client reads "Blocked" and shows as off the network. If a phone rotates its MAC immediately after being blocked it can briefly reappear - simply block it again to catch the new address.

Presence timing - please read

Connecting is fast - a device that joins Wi-Fi shows Connected within a few seconds. Disconnecting is slow - when a device leaves on its own (walks out of range, or Wi-Fi is switched off) it can take UP TO ABOUT 5 MINUTES to show Disconnected. This is a UniFi / Wi-Fi limitation, not the driver: the UniFi controller itself waits for the access point's client inactivity timeout (a couple of minutes) before it marks the device offline, and the driver then applies its Away Timeout on top. The driver can only report what UniFi reports. For automation, trigger confidently on Connected (someone has arrived) and treat Disconnected as a slower "has left". Lowering the Away Timeout makes the "left" side a little quicker.

PDU / SmartPower Outlets

If a UniFi SmartPower device is adopted into the controller - PDU Pro (USPPDUP, 20 outlets), Smart Plug (UP1) or Smart Power Strip (UP6) - the driver picks it up automatically on the normal poll. On a site with only one such device no configuration is needed.

Sites with more than one outlet device. A SmartPower UPS and a PDU both report outlets, and the controller does not list them in a fixed order, so set PDU MAC in Driver Properties to the MAC of the device the Outlet commands should control (for example 6c:63:f8:ec:f4:ef). Left blank, the driver prefers the device that reports a power budget - the metered PDU rather than a UPS - and logs a warning naming every candidate it found.

Feedback per outlet: Name, On, Off, Watts and Switchable, plus device-level PDU Name, Model, Outlet Count, Power Draw and Power Budget.

Commands: Outlet On, Outlet Off, Outlet Toggle and Power-Cycle Outlet, each taking an outlet number. Numbered tag functions (Outlet 1 On, Outlet 1 Off, Outlet 1 Toggle, Outlet 1 Cycle, and so on up to 20) are provided for drag-and-drop button wiring, exactly like the PoE tags. Bind the button text to Outlet N Name so the panel shows the outlet's real name.

Notes:

  • Power-Cycle uses UniFi's own outlet power-cycle: the PDU switches the outlet off and back on by itself. If an older controller refuses that command, the driver does it instead: off, then on again after Power-Cycle Off Time (default 20 seconds).
  • A UniFi UPS (UPS 2U / Tower) has no per-outlet control in UniFi - only whole-UPS remote power cycle and power off - so outlet commands are refused on a UPS. Set PDU MAC to your PDU if the site has both.
  • On a PDU Pro, outlets 1-4 are the USB-C ports and 5-20 are the AC sockets. Only the AC sockets report power.
  • An outlet that is not switchable is reported as such and will refuse an on/off command.
  • Outlet control requires a valid licence key once the trial has expired. Monitoring and feedback are never gated.
  • This release supports the first SmartPower device on the site. If you have more than one, get in touch.

Diagnostics

A telnet debug console is available on the configured Debug Console Port (default 12533): status, devices, clients, wlans, poll, login, reboot N, locate N on/off, poe P auto/off.

Supported Devices

Validated on both controller types:

  • UniFi OS console: Cloud Gateway Ultra (UCG-Ultra, UniFi OS / firmware 5.1.19), adopting a USW-Lite-16-PoE switch (firmware 7.4.1.16850) and U6+ access points (firmware 6.7.54.15663). Port 443, "UniFi OS Console" ticked. Provides real WAN status.
  • Legacy controller: Cloud Key Gen1 (UC-CK) running UniFi Network application 7.2.97, with a US-8-150W switch and UAP-nanoHD / AC-Pro / AC-Lite access points. Port 8443. Other Cloud Key / UDM / Dream Router / self-hosted UniFi Network controllers using the same local API are expected to work (legacy uses port 8443; UniFi OS uses port 443 with the "UniFi OS Console" option).

UniFi SmartPower outlet control was verified on a USP-PDU-Pro (PDU Pro), including UniFi's native outlet power-cycle.

System Requirements

  • Integration Designer - 11.4 or above
  • RTI processor - XP-8 class (XP-3 / XP-6 / XP-6s / XP-8 / XP-8s / XP-8v)
  • Processor script runtime - 24 or above
  • Network - the processor must reach the UniFi controller on its management port (8443 or 443)

Device Setup

  1. Enter the controller IP (Cloud Key / UDM / self-hosted).
  2. Port: 8443 for Cloud Key Gen1 or self-hosted. For a UniFi OS console (UDM, Dream Router, Cloud Key Gen2) set Port 443 and tick "UniFi OS Console".
  3. Username / Password: use a LOCAL controller admin. A Ubiquiti SSO / cloud account will NOT work - cloud accounts require an emailed MFA code that a controller cannot supply. Create a local-only admin on the controller (or contact support if your Cloud Key only offers cloud logins).
  4. Site: usually "default".
  5. Optionally run Driver Utilities > Discover UniFi Devices to fill the 8 device slots by MAC.

Driver Configuration

Controller Connection

  • Controller IP / Host - UniFi Network controller IP (Cloud Key / UDM / self-hosted).
  • Port - default 8443 - 8443 for Cloud Key Gen1 / self-hosted. Use 443 for UniFi OS (UDM / Cloud Key Gen2) and tick 'UniFi OS Console' below.
  • Local Admin Username - A LOCAL controller admin (NOT a Ubiquiti SSO/cloud account - SSO accounts require email MFA and will not work).
  • Local Admin Password - Password for the local admin above.
  • Site - default default - Controller site name. Single-site controllers use 'default'.
  • UniFi OS Console (UDM / CK Gen2) - default false - Tick for UniFi OS consoles (UDM, Dream Router, Cloud Key Gen2). Uses /api/auth/login + /proxy/network on port 443.
  • Poll Interval (seconds) - default 5 - How often to refresh status. Lower = snappier feedback; commands also update instantly.

Discovered Devices (use Driver Utilities - Discover UniFi Devices)

  • Device 1 Name - Auto-filled by Discover. Device slot 1 - feedback (Dev1*) is tied to this device by MAC.
  • Device 1 MAC - Auto-filled by Discover (the stable key).
  • Device N Name (N = 2-8)
  • Device N MAC (N = 2-8)

Licence

  • Licence Key - Per-processor licence key. Free 120-minute trial without one; get a key from Smart Home Programming for this processor's MAC.

Web Dashboard

  • Enable Web Dashboard - default true - Serve a control dashboard on the processor. Point an RTI Web Object at http://<processor-IP>:port/
  • Web Dashboard Port - default 9064 - TCP port for the web dashboard.

Presence Watch (optional)

  • Away Timeout (seconds) - default 180 - Seconds of no-contact before a watched device is marked away (UniFi lists dropped clients for minutes).
  • Watch N Name (N = 1-8)
  • Watch 1 MAC or Name - MAC (aa:bb:cc:dd:ee:ff) OR UniFi device name. A name survives MAC randomization - best for phones.
  • Watch N MAC or Name (N = 2-8)

PDU / SmartPower Outlets

  • PDU MAC (blank = auto) - MAC of the PDU / SmartPower device the Outlet commands control, e.g. 6c:63:f8:ec:f4:ef. Leave blank to auto-pick. Set this whenever the site has more than one device with outlets (a UPS and a PDU), or outlet commands may switch the wrong device.
  • Power-Cycle Off Time (seconds) - default 20 - Only used if the controller refuses UniFi's own outlet power-cycle (older firmware). The driver then does it itself: off, wait this long, on. Allow 20 s or more - the PDU can take 10-20 s to apply a change.
  • Protected Outlets - Outlet numbers that must never be switched OFF, comma separated, e.g. 3,7,12. Use this for the rack switch, the NVR, the processor's own supply - anything where an accidental press is a site visit. Switching ON is always allowed, and a protected outlet can still be power-cycled unless you also list it below. Leave blank for no protection.
  • Protected Outlets - No Power-Cycle - Outlet numbers from the list above that must not even be power-cycled, comma separated. Most protected outlets should NOT be listed here - a power-cycle is usually how you recover a hung device. Leave blank unless an outlet must never lose power at all.

Licensing

The driver runs fully for a 120-minute trial without a key. After the trial, control commands (reboot, locate, PoE, WLAN, client block, outlet control) need a licence key; monitoring and feedback keep working. A key is issued per processor from the processor's MAC address, shown in the MAC For Key variable. Buy a licence at https://smarthomeprogramming.com.au/store/ and paste the key into Licence Key.

License Status reads Licensed, Trial or Unlicensed, with one boolean variable for each.

Functions

Reboot Device (1-8), Locate LED On/Off (1-8), Set PoE Port (port, on/off), Power-Cycle PoE Port (port), WLAN Enable/Disable (wlan #, on/off), Block / Unblock Client (MAC), Block / Unblock Watched Client (1-8), Poll Now, Reconnect.

Outlets: Outlet On / Off / Toggle / Power-Cycle (outlet number), plus numbered tag functions Outlet 1-20 On / Off / Toggle / Cycle. Protect Outlet On / Off / Toggle (outlet number).

Variables

Controller

  • Driver Version - string
  • Connected - boolean
  • Connection State - integer (0=Disconnected, 1=Connecting, 2=Connected)
  • Connection State - Disconnected - boolean
  • Connection State - Connecting - boolean
  • Last Error - string
  • Device Count - integer
  • Devices Online - integer
  • Client Count - integer
  • Wi-Fi Clients - integer
  • Wired Clients - integer
  • WLAN Health - string
  • LAN Health - string
  • WAN Health - string
  • WAN IP - string
  • WAN Up - boolean

Devices

  • {DevNameN} Name (N = 1-8) - string
  • {DevNameN} Model (N = 1-8) - string
  • {DevNameN} IP (N = 1-8) - string
  • {DevNameN} Online (N = 1-8) - boolean
  • {DevNameN} State (N = 1-8) - string
  • {DevNameN} Clients (N = 1-8) - integer
  • {DevNameN} Locating (N = 1-8) - boolean
  • {DevNameN} Not Locating (N = 1-8) - boolean

Device Health

  • {DevNameN} CPU % (N = 1-8) - integer
  • {DevNameN} Memory % (N = 1-8) - integer
  • {DevNameN} Uptime (s) (N = 1-8) - integer
  • {DevNameN} Temperature (N = 1-8) - integer
  • {DevNameN} Firmware (N = 1-8) - string
  • {DevNameN} Upgrade Available (N = 1-8) - boolean

PoE Ports (first switch)

  • PoE Port N Watts (N = 1-8) - string
  • PoE Port N Active (N = 1-8) - boolean
  • PoE Port N Off (N = 1-8) - boolean
  • PoE Port N Mode (N = 1-8) - string
  • PoE Port N Is NV (N = 1-8) - boolean
  • PoE Port N Supports NV (N = 1-8) - boolean

WLANs

  • WLAN Count - integer
  • WLAN N Name (N = 1-8) - string
  • WLAN N Enabled (N = 1-8) - boolean
  • WLAN N Disabled (N = 1-8) - boolean

Licence

  • License Status - string
  • License Status - Licensed - boolean
  • License Status - Trial - boolean
  • License Status - Unlicensed - boolean
  • Licence Valid - boolean
  • Licence Status - string
  • Trial Active - boolean
  • Trial Expired - boolean
  • Trial Time Remaining - string
  • MAC For Key - string

Presence

  • Presence N Online (N = 1-8) - boolean
  • Presence N Name (N = 1-8) - string
  • Presence N Status (N = 1-8) - string
  • Presence N Blocked (N = 1-8) - boolean
  • Presence N Unblocked (N = 1-8) - boolean
  • Presence N MAC (N = 1-8) - string

PDU / SmartPower Outlets (first device)

  • PDU Present - boolean
  • PDU Name - string
  • PDU Model - string
  • PDU Outlet Count - integer
  • PDU Power Draw (W) - string
  • PDU Power Budget (W) - string
  • Outlet N Name (N = 1-20) - string
  • Outlet N On (N = 1-20) - boolean
  • Outlet N Off (N = 1-20) - boolean
  • Outlet N Watts (N = 1-20) - string
  • Outlet N Switchable (N = 1-20) - boolean
  • Outlet N Protected (N = 1-20) - boolean
  • Outlet N Unprotected (N = 1-20) - boolean
  • Outlet N Cycle Allowed (N = 1-20) - boolean
  • Last Blocked Outlet - integer
  • Last Blocked Reason - string

Events

Licence

  • Trial Warning (5 min left)
  • Trial Expired

Presence

  • Presence N - Came Online (N = 1-8)
  • Presence N - Went Offline (N = 1-8)

Device Lifecycle

  • Device N - Connected (N = 1-8)
  • Device N - Disconnected (N = 1-8)
  • Device N - Provisioning (N = 1-8)
  • Device N - Adopting (N = 1-8)
  • Device N - Missing Heartbeat (N = 1-8)

PDU / SmartPower Outlets

  • Outlet Command Blocked (protected)

Autoprogramming Support

Drop these tags on a button to wire it automatically (command = the press, feedback = the button state).

| Tag | Wires | |---|---| | Client Count | feedback | | Connected | feedback | | Device N CPU (N = 1-8) | feedback | | Device N Clients (N = 1-8) | feedback | | Device N Firmware (N = 1-8) | feedback | | Device N IP (N = 1-8) | feedback | | Device N Locate Off (N = 1-8) | command + feedback | | Device N Locate On (N = 1-8) | command + feedback | | Device N Memory (N = 1-8) | feedback | | Device N Model (N = 1-8) | feedback | | Device N Name (N = 1-8) | feedback | | Device N Reboot (N = 1-8) | command + feedback | | Device N State (N = 1-8) | feedback | | Device N Temp (N = 1-8) | feedback | | Device N Upgrade (N = 1-8) | feedback | | Device N Uptime (N = 1-8) | feedback | | Device Count | feedback | | Devices Online | feedback | | Disconnected | feedback | | LAN Health | feedback | | Outlet N Cycle (N = 1-20) | command | | Outlet N Cycle Allowed (N = 1-20) | feedback | | Outlet N Name (N = 1-20) | feedback | | Outlet N Off (N = 1-20) | command + feedback | | Outlet N On (N = 1-20) | command + feedback | | Outlet N Protected (N = 1-20) | feedback | | Outlet N Switchable (N = 1-20) | feedback | | Outlet N Toggle (N = 1-20) | command | | Outlet N Unprotected (N = 1-20) | feedback | | Outlet N Watts (N = 1-20) | feedback | | PDU Model | feedback | | PDU Name | feedback | | PDU Outlet Count | feedback | | PDU Power Budget | feedback | | PDU Power Draw | feedback | | PDU Present | feedback | | PoE N NV (N = 1-8) | command + feedback | | PoE N Mode (N = 1-8) | feedback | | PoE N Off (N = 1-8) | command + feedback | | PoE N On (N = 1-8) | command + feedback | | PoE N Supports NV (N = 1-8) | feedback | | PoE N Watts (N = 1-8) | feedback | | Presence N (N = 1-8) | feedback | | Presence N Block (N = 1-8) | command | | Presence N Blocked (N = 1-8) | feedback | | Presence N MAC (N = 1-8) | feedback | | Presence N Name (N = 1-8) | feedback | | Presence N Status (N = 1-8) | feedback | | Presence N Unblock (N = 1-8) | command + feedback | | WAN Health | feedback | | WAN IP | feedback | | WAN Up | feedback | | WLAN N Name (N = 1-8) | feedback | | WLAN N Off (N = 1-8) | command + feedback | | WLAN N On (N = 1-8) | command + feedback | | WLAN Health | feedback | | WiFi Clients | feedback | | Wired Clients | feedback |

Limitations

  • SSO / cloud accounts cannot log in - use a local admin.
  • Presence: a device that leaves can take up to about 5 minutes to show Disconnected (UniFi's own inactivity timeout).
  • Phones randomise their Wi-Fi MAC - watch phones by device name, not MAC.
  • Up to 8 device slots, 8 presence watches, 8 WLANs, PoE ports 1-8 on the first switch, and outlets on the first SmartPower device only.
  • A UniFi UPS has no per-outlet control in UniFi, so outlet commands are refused on a UPS.
  • The controller is polled (default every 5 seconds); changes made outside RTI appear on the next poll.

Support Contact

Smart Home Programming and Automation david@smarthomeprogramming.com.au https://smarthomeprogramming.com.au

120-minute free trial - the driver is fully functional for 120 minutes with no licence key, so you can confirm it works with your controller before buying.

Permanent licence: a one-time, per-processor key keyed to your RTI processor's MAC address (shown in the driver's MAC For Key system variable). One key per processor.

Purchase from Smart Home Programming: https://smarthomeprogramming.com.au/store/

Please log in to leave a comment.
Loading comments...