Independent directory, made by the developer of Vulpo. Not affiliated with Home Assistant or the Open Home Foundation.

About

Unifi Network Rules manages firewall policies, routes and other rules on a Ubiquiti UniFi Dream Machine from Home Assistant. It talks to the console locally and adds switches for turning rules and configuration items on and off, including firewall policies, port forwarding, traffic routes, static routes, NAT, QoS, device LEDs and WLAN SSIDs. Actions refresh data, back up and restore firewall and traffic rules to a file, enable or disable several rules by name matching, and delete a rule. A device trigger fires when the UniFi configuration changes, whether the change came from Home Assistant or from the UniFi console. Setup happens in the UI with the host, a local admin username and password, a site name, an update interval and an option to verify the SSL certificate.

Automatic summary of the README and code of sirkirby/unifi-network-rules. Something wrong, or are you the maintainer and want your own text here? Get in touch

Supports

  • Works locally Talks to your devices on your own network. No vendor cloud in between.

  • Device triggers Its devices can start automations directly.

  • From the Marketplace Installed through the Marketplace, formerly HACS.

  • Actively maintained Its author released or pushed a change in the last six months.

Provides

  • Switches

Setting it up

Install it from the Marketplace and restart Home Assistant, then add it under Settings, Devices and services.

UniFi Network Rules

  • Host
  • Username
  • Password
  • Site name (defaults to 'default')
  • Update interval (minutes)
  • Verify SSL certificate (disable for self-signed certificates)

Texts from the code of sirkirby/unifi-network-rules.

Actions

  • RefreshRefresh UniFi Network Rules data
  • Backup RulesBackup firewall and traffic rules to a fileFields: Filename
  • Restore RulesRestore firewall and traffic rules from a backup fileFields: Filename, Rule IDs, Name Filter, Rule Types
  • Bulk Update RulesEnable or disable multiple rules based on name matchingFields: Name Filter, State
  • Delete RuleDelete a ruleFields: Rule ID, Rule Type

From the README

UniFi Network Rules is a custom integration for Home Assistant that integrates with your UniFi Dream Machine/Router to both provide and help you create useful interactions and automations for your Home Lab. The goal of this integration is to simplify policy and rule management for real world use cases. I built this because I wanted to unlock the power of my UniFi firewall. From simple things like screen time and game server access controls for my kids, to more advanced like getting notified when a critical rule is changed and automatically backing up your rules. And most importantly, make all of this easy to use and share with anyone in your home or home lab. I hope you find it useful!

  • 🔄 Bi-Directional Monitoring: Triggers fire for changes made both from Home Assistant and directly from the UniFi console
  • ⚡ Smart Polling: Intelligent polling with dynamic intervals (10s during activity, 5min when idle)
  • 🎯 Unified Interface: Single unr_changed trigger with powerful filtering options
  • 📊 Rich Data: Each trigger includes entity IDs, old/new states, timestamps, and metadata
  • 🛡️ Reliable Detection: Centralized state comparison ensures accurate change detection
  • 🚀 Debounced Updates: Batches rapid changes into single operations to prevent API spam
From the README of sirkirby/unifi-network-rules, MIT License. Shortened.

Shows in Vulpo

Quick Toggle card, Apple Watch, Control Center.

Information

Installs
306 sharing analytics
GitHub stars
66
Connection
Works locally
Upkeep
Updated in the last 6 months
Version
v4.5.0,
Category
Computers and network, Routers and network
Kind
Marketplace integration
Needs
Needs the Marketplace (HACS on 2026.10 and older)
Domain
unifi_network_rules

More from Ubiquiti

You might also like

Independent directory, made by the developer of Vulpo. Not affiliated with Home Assistant or the Open Home Foundation. About these numbers