๐ UniFi Site Manager for Home Assistant
August 24, 2025 ยท View on GitHub
๐ About
A powerful Home Assistant integration that provides comprehensive monitoring and management capabilities for UniFi network devices across multiple sites through the UI.com API.
๐ธ Donations Appreciated!
If you find this plugin useful, please consider donating. Your support is greatly appreciated!
Sponsor me on GitHub
or
Paypal
โจ Features
- ๐ Multi-Site Support: Monitor and manage multiple UniFi sites from a single dashboard
- ๐ ISP Metrics: Track network performance metrics including:
- Latency (average, minimum, maximum)
- Packet Loss (percentage and count)
- Bandwidth (download and upload speeds)
- WAN Status (uptime, downtime)
- ISP Information (name, ASN)
- ๐ Device Management:
- Real-time device status monitoring
- Detailed device information (model, version, IP)
- Online/Offline state tracking
- ๐ Site Statistics:
- Total and offline device counts
- Client statistics (WiFi, wired, guest)
- WAN uptime percentage
- ISP information
- ๐ SD-WAN Configuration Monitoring:
- Monitor SD-WAN configuration status
- View configuration details and settings
- Track configuration updates and changes
- Support for multiple SD-WAN configs per site
๐ธ Screenshots
| Example Dashboard | Devices View | Device Example |
|---|---|---|
![]() | ![]() | ![]() |
๐ Installation
HACS Installation (Recommended)
- Open HACS in your Home Assistant instance
- Click on "Integrations"
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add this repository URL
- Select "Integration" as the category
- Click "Add"
- Find "UniFi Site Manager" in the integration list
- Click "Download"
- Restart Home Assistant
Manual Installation
- Download the latest release
- Copy the
custom_components/ha_unifi_site_managerdirectory to your Home Assistant'scustom_componentsdirectory - Restart Home Assistant
โ๏ธ Configuration
- Go to Settings > Devices & Services
- Click "Add Integration"
- Search for "UniFi Site Manager"
- Enter your UI.com API key
- Get your API key from https://account.ui.com/api-keys
๐ก Sensors
Site Sensor
- State: Online/Offline (based on device status)
- Attributes:
- Site ID and Host ID
- Description and Gateway MAC
- Timezone
- Device counts (total, offline)
- Client counts (WiFi, wired, guest)
- WAN uptime percentage
- ISP information
Device Sensor
- State: Online/Offline
- Attributes:
- Device ID and MAC address
- Model and version
- IP address
- Last seen timestamp
- Uptime
ISP Metrics Sensor
- State: Current timestamp
- Attributes:
- Latency metrics (avg, min, max)
- Packet loss (percentage, count)
- Bandwidth (download/upload Mbps)
- WAN metrics:
- Latency (avg, max)
- Bandwidth (download/upload kbps)
- Packet loss
- Uptime/downtime
- ISP details (name, ASN)
SD-WAN Configuration Sensor
- State: Configuration status (active, inactive, etc.)
- Attributes:
- Configuration ID and name
- Description and type
- Creation and last updated timestamps
- Detailed configuration settings
๐ Changelog
Version 0.2.0
- โจ NEW: Added SD-WAN configuration monitoring support
- โจ NEW: Support for List SD-WAN Configs endpoint
- โจ NEW: Support for Get SD-WAN Config by ID endpoint
- โจ NEW: Support for Get SD-WAN Config Status endpoint
- ๐ง IMPROVED: Enhanced error handling for missing SD-WAN configurations
- ๐ง FIXED: Resolved device registry warnings for via_device references
- ๐ง OPTIMIZED: Only creates SD-WAN sensors when configurations are available
Version 0.1.0
- ๐ Initial release
- โจ Multi-site support
- โจ ISP metrics monitoring
- โจ Device status tracking
- โจ Site statistics
โฑ๏ธ Update Interval
The integration updates every 15 minutes by default. This interval is configurable through the const.py file if needed.
๐ API Authentication
The integration uses API key authentication with the UI.com API. The API key is stored securely in Home Assistant's encrypted storage and is never exposed in plain text.
โ ๏ธ Error Handling
The integration includes comprehensive error handling for:
- API connection issues
- Authentication failures
- Missing or incomplete data
- Network timeouts
๐ง Debugging
To enable debug logging, add the following to your configuration.yaml:
logger:
default: info
logs:
custom_components.ha_unifi_site_manager: debug
๐ค Contributing
Feel free to contribute to this project. Please read the contributing guidelines before making a pull request.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
โ๏ธ Disclaimer
This integration is not affiliated with Ubiquiti Inc. or UI.com. All product names, logos, and brands are property of their respective owners.



