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

@roftebro88/n8n-nodes-unifip

v0.2.1

Published

N8n community node for UniFi Protect API

Downloads

78

Readme

n8n-nodes-unifip

This is an n8n community node that provides integration with UniFi Protect, the video surveillance and smart home platform from Ubiquiti.

n8n is a fair-code licensed workflow automation platform.

Installation

Follow the installation guide in the n8n community nodes documentation.

npm

npm install @roftebro88/n8n-nodes-unifip

Manual Installation

  1. Navigate to your n8n installation directory
  2. Install the package:
    npm install @roftebro88/n8n-nodes-unifip
  3. Restart n8n

Operations

This node provides access to the following UniFi Protect resources:

Bootstrap

  • Get: Retrieve the complete system configuration including all devices and settings

Camera

  • Get: Get a specific camera by ID
  • Get Many: Get all cameras
  • Update: Update camera settings (name, recording mode, HDR, status light)
  • Get Snapshot: Get a snapshot image from a camera

Doorbell

  • Get: Get a specific doorbell by ID
  • Get Many: Get all doorbells

Event

  • Get: Get a specific event by ID
  • Get Many: Get events with filtering options
    • Filter by time range (start/end)
    • Filter by event type (motion, ring, smart detect)
    • Filter by camera
    • Limit results

File Management

  • Download Recording: Download video recordings from cameras
    • Specify time range (start/end)
    • Choose video quality (high, medium, low)
    • Custom filename support
  • Get Recording Thumbnail: Extract a still image from a recording at a specific timestamp
    • Specify exact timestamp for the frame
    • Optional width/height for resizing
    • Returns image as binary data
  • Upload Custom Image: Upload custom images to doorbells
    • LCD message backgrounds
    • Custom doorbell messages (Do Not Disturb, Leave Package, etc.)
    • Duration settings

Light

  • Get: Get a specific light by ID
  • Get Many: Get all lights
  • Update: Update light settings (name, on/off, mode)

Sensor

  • Get: Get a specific sensor by ID
  • Get Many: Get all sensors
  • Update: Update sensor settings (name, status light)

Credentials

To use this node, you need to configure the following credentials:

  • Controller URL: The URL of your UniFi Protect controller (e.g., https://192.168.20.1 or https://protect.local)
  • Username: Your UniFi Protect username
  • Password: Your UniFi Protect password

Finding Device IDs

Important: Device IDs in UniFi Protect are unique identifiers (UUIDs), NOT IP addresses or MAC addresses.

What Device IDs Look Like

  • Format: UUID (e.g., 5f7a9b2c3d4e5f6a7b8c9d0e)
  • NOT an IP address (e.g., ~~192.168.1.100~~)
  • NOT a MAC address (e.g., ~~AA:BB:CC:DD:EE:FF~~)

How to Find Device IDs

  1. Using the Bootstrap operation:

    • Select Resource: Bootstrap
    • Operation: Get
    • Run the node
    • The response contains all devices with their IDs under cameras, lights, sensors, etc.
  2. Using "Get Many" operations:

    • Select the resource type (Camera, Light, Sensor, etc.)
    • Operation: Get Many
    • Run the node
    • Each device in the response will have an id field
  3. Example workflow:

    • First node: Camera > Get Many → Returns all cameras with their IDs
    • Second node: File Management > Get Recording Thumbnail → Use the id from the first node

Compatibility

Tested with:

  • n8n version 1.0.0+
  • UniFi Protect version 3.0+

Resources

License

MIT