← Back to projects

Systems and infrastructure

NetWatcher for UniFi

Know when unfamiliar devices appear on your network.

Availability
Public repository
License
MIT

The problem

A busy home or small-office network accumulates dozens of phones, IoT sensors, and appliances. Noticeable changes — an unfamiliar MAC address joining, or a device dropping and roaming — are easy to miss inside a full controller interface.

What I built

NetWatcher for UniFi is a self-hosted web dashboard and polling monitor that watches a UniFi Network controller and alerts you when unfamiliar devices appear.

Key capabilities

  • Polls client inventory from your existing UniFi controller without running a separate network scanner.
  • Lets you mark detected devices as trusted or ignored and inspect per-device connection, disconnect, IP change, and AP roaming timelines.
  • Sends optional alerts via Pushover and generic webhooks, with optional client blocking (including dry-run mode) on the legacy UniFi API.

Technical architecture

Built in Python with a Tailwind-styled local web interface and persistent SQLite storage. Packaged as a non-root single Docker container (docker compose up -d) and accompanied by an installer script for an unprivileged Debian LXC container on Proxmox VE. Designed for one UniFi controller and site per instance.

Engineering decisions

Polling the UniFi Network controller’s current client inventory instead of relying on controller historical statistics keeps NetWatcher’s own SQLite timeline intact across UniFi OS and Network 11.x database changes, while running non-root inside Docker keeps local deployment straightforward.

Availability & notes

MIT-licensed open-source repository. Self-hosted via Docker Compose or Proxmox VE LXC. Requires access to a UniFi Network controller (tested through UniFi Network 11.x using the legacy API and supporting official API keys where available).