This custom integration allows you to monitor your UniFi devices through the UniFi Network API. Get detailed insights into your UniFi infrastructure directly in Home Assistant.
- Monitor device status (online/offline)
- Track CPU and memory usage
- Monitor device uplink rates (TX/RX)
- Track device uptime
- Restart devices through Home Assistant services
- Support for multiple UniFi sites
- Download the latest release
- Copy the
custom_components/unifi_insights
folder to your Home Assistant'scustom_components
directory - Restart Home Assistant
- A UniFi Network controller (local or cloud)
- API access enabled on your UniFi controller
- An API key with appropriate permissions
- Open your site in UniFi Site Manager at unifi.ui.com
- Navigate to Control Plane → Admins & Users
- Select your Admin
- Click Create API Key
- Provide a name for your API Key and copy it
- Click Done to securely store the key
- In Home Assistant, go to Settings → Devices & Services
- Click the "+" button to add a new integration
- Search for "UniFi Insights"
- Enter your:
- API Key
- Host URL (e.g., https://192.168.1.1)
- CPU Usage (%)
- Memory Usage (%)
- Uptime (seconds)
- TX Rate (bytes/second)
- RX Rate (bytes/second)
- Device Status (online/offline)
- Device Restart
Force an immediate refresh of UniFi Insights data.
service: unifi_insights.refresh_data
data:
site_id: optional-site-id # Optional
Restart a UniFi device.
service: unifi_insights.restart_device
data:
site_id: your-site-id
device_id: device-id-to-restart
To enable debug logging, add the following to your configuration.yaml
:
logger:
default: info
logs:
custom_components.unifi_insights: debug
- Cannot Connect: Verify your host URL and ensure your UniFi controller is accessible
- Authentication Failed: Verify your API key and ensure it has the necessary permissions
- No Data: Check that your devices are properly adopted in your UniFi controller
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Apache License - see the LICENSE file for details.
This integration is not officially affiliated with or endorsed by Ubiquiti Inc.
For bugs and feature requests, please create an issue on GitHub.