npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-red-contrib-unifi-ultimate

v0.1.0

Published

Node-RED nodes for Ubiquiti UniFi integrations, including UniFi Protect, UniFi Access, and UniFi Network.

Readme

node-red-contrib-unifi-ultimate

Use UniFi Protect, UniFi Access, and UniFi Network inside Node-RED without building custom API calls.

This package lets you:

  • monitor cameras, sensors, lights, doors, Access devices, sites, clients, and UniFi devices
  • react to live events inside your flows
  • trigger common Protect, Access, and Network actions from a single device node
  • start from ready-to-import example flows

Current release status: 0.1.0

View Changelog

Before you start

  • Node-RED 3.1.1 or newer
  • Node.js 18 or newer
  • For UniFi Protect: controller IP or host, API key header, and API key
  • For UniFi Access: host and bearer token
  • For UniFi Network: controller host and API key
  • If your UniFi controller uses a self-signed certificate, each config node lets you adjust TLS behavior

Install

In Node-RED:

  1. Open Manage palette
  2. Select Install
  3. Search for node-red-contrib-unifi-ultimate
  4. Install the package

Quick start

  1. Add the right config node for your UniFi product: Unifi Protect Config, Unifi Access Config, or Unifi Network Config
  2. Enter your connection details and credentials
  3. Add a Device node
  4. Select the device type, the specific UniFi device, and the capability you want
  5. Deploy
  6. Connect: Output 1 for state or action results Output 2 for live events when you use Receive Events

If you want the fastest path, import one of the included example flows and replace the credentials with your own.

Available nodes

  • Unifi Protect Config: stores the connection settings for UniFi Protect
  • Unifi Protect Device: select a Protect device, read its state, listen for events, or trigger actions
  • Unifi Access Config: stores the connection settings for UniFi Access
  • Unifi Access Device: select a door or Access device, read its state, listen for events, or trigger actions
  • Unifi Network Config: stores the connection settings for UniFi Network
  • Unifi Network Device: select a site, client, or UniFi device and run supported Network actions
  • Unifi Network Presence: emits true/false presence for a selected client with disconnect hysteresis
  • Unifi Network Control POE: controls PoE state on a selected switch port

UniFi Protect

Supported device types:

  • Camera
  • Sensor
  • Light
  • Chime
  • Viewer
  • Live View
  • NVR

Common capabilities:

  • Receive Events
  • Read Device State
  • Send Raw Update

Additional capabilities available when supported by the selected device:

  • Take Snapshot
  • List RTSPS Streams
  • Create RTSPS Stream
  • Delete RTSPS Stream
  • Start Talkback Session
  • Disable Microphone Permanently
  • Start PTZ Patrol
  • Stop PTZ Patrol
  • Recall PTZ Preset
  • Show Doorbell Message
  • Switch Live View
  • Update One Property

The editor adapts to the selected device and capability. For example, it can offer:

  • sensor observables such as contact, motion, alarm, water leak, tamper, or battery low
  • camera observables such as ring, motion, and smart detections
  • light observables such as motion or light on/off
  • PTZ preset choices for supported cameras
  • live view choices for supported viewers
  • patchable properties discovered from the selected device

For supported boolean event observables, the main payload is normalized to true or false, while the original event details remain available in the message.

UniFi Access

Supported device types:

  • Door
  • Access Device

Common capabilities:

  • Receive Events
  • Read State

Door capabilities:

  • Unlock Door
  • Read Lock Rule
  • Set Temporary Lock Rule
  • Read Emergency Mode
  • Set Emergency Mode

Access device capabilities:

  • Read Access Methods
  • Update Access Methods
  • Trigger Doorbell
  • Cancel Doorbell

When you use Receive Events, the node first fetches the current state and then keeps listening for matching UniFi Access notifications.

UniFi Network

Supported resource types:

  • Site
  • UniFi Device
  • Client

Common capabilities:

  • Read State
  • Read Details

Additional capabilities:

  • Site: List Site Devices, List Site Clients
  • UniFi Device: Read Latest Statistics, Restart Device, Power Cycle Port
  • Client: Authorize Guest Access, Revoke Guest Access

For device and client resources, the editor automatically includes the site context behind the scenes and still keeps selection simple for the end user.

Dedicated utility nodes:

  • Unifi Network Presence: checks one selected client and emits msg.payload = true when connected, false when disconnected, with disconnect hysteresis to avoid flapping
  • Unifi Network Control POE: enables/disables PoE (and supports power cycle) on a selected switch port

Outputs

  • Output 1 returns the current state or the main action response
  • Output 2 returns live events when the selected capability is Receive Events (Protect and Access nodes)
  • The message also includes product-specific metadata and the last known device data when available

Example flows

Import one of these flows from the examples folder:

Beta notes

  • UniFi Protect is the main supported surface today
  • UniFi Access is included in the first stable release and may still evolve quickly across upcoming releases
  • UniFi Network is included in the first stable release and currently focuses on read-first flows plus selected action utilities