A Home Assistant integration for UniFi's Site Manager API, providing comprehensive monitoring of UniFi sites, hosts, and network performance metrics.
- 🌐 Monitor all your UniFi sites from a single dashboard
- 📊 Track network performance metrics (download/upload speeds, latency, packet loss)
- 📡 Monitor UniFi host status and controller states
- 🔄 Real-time updates with configurable update intervals
- 🚨 Track device connectivity and updates availability
- Copy the
custom_components/unifi_site_manager
directory to your Home Assistant'scustom_components
directory - Restart Home Assistant
- Go to Home Assistant's Integrations page
- Click "Add Integration"
- Search for "UniFi Site Manager"
- Follow the configuration steps:
- Enter your UniFi Site Manager API key
- The integration will automatically discover your sites and create entities
- Log in to your UniFi account at unifi.ui.com
- Navigate to Settings
- Select the "API Key" section
- Create a new API key
- Copy the key immediately (it will only be shown once)
- Download Speed (Mbps)
- Upload Speed (Mbps)
- Average Latency (ms)
- Maximum Latency (ms)
- Packet Loss (%)
- WAN Uptime (%)
- Total Devices
- Site Online Status
- All Devices Online Status
- Updates Available
- Host Connection Status
- Network Controller Status
- Protect Controller Status
Force an immediate refresh of the integration data.
Field | Type | Default | Description |
---|---|---|---|
refresh_type | string | "all" | Type of data to refresh: "all", "sites", "hosts", or "metrics" |
The UniFi Site Manager API has a rate limit of 100 requests per minute. The integration handles this automatically by:
- Tracking remaining API calls
- Implementing backoff when limits are reached
- Efficiently batching requests where possible
- Integration Not Updating: Check your API key permissions and network connectivity
- API Rate Limits: Increase update intervals if you're managing many sites
- Missing Data: Verify your UniFi account has access to the expected sites
- Authentication Errors: Ensure your API key is valid and has the necessary permissions
This project welcomes contributions and suggestions. Please fork the repository and submit a pull request with your suggested changes.
This project is licensed under the Apache License - see the LICENSE file for details.