Provides an integration between EdgeOS (Ubiquiti) routers to Home Assistant.
Look for "Integration with EdgeOS (Ubiquiti)" and install
- EdgeRouter with version 1.10 at least
- EdgeRouter User with 'Operator' level access or higher
- Traffic Analysis set to 'Enabled' (both
dpi
andexport
enabled undersystem/traffic-analysis
)
To add integration use Configuration -> Integrations -> Add EdgeOS
Integration supports multiple EdgeOS devices
Fields name | Type | Required | Default | Description |
---|---|---|---|---|
Name | Textbox | + | - | Represents the integration name |
Host | Textbox | + | - | Hostname or IP address to access EdgeOS device |
Username | Textbox | + | - | Username of user with Operator level access or higher, better to create a dedicated user for that integration for faster issues identification |
Password | Textbox | + | - | |
Unit | Drop-down | + | Bytes | Unit for sensors, available options are: Bytes, KiloBytes, MegaBytes |
Errors |
---|
Cannot reach device (404) |
Invalid credentials (403) |
General authentication error (when failed to get valid response from device) |
Could not retrieve device data from EdgeOS Router |
Export (traffic-analysis) configuration is disabled, please enable |
Deep Packet Inspection (traffic-analysis) configuration is disabled, please enable |
Incompatible version (Required at least v1.10) |
In latest version new capability added to encrypt password before saving integration settings to .storage
In order to benefit from that capability, please remove and re-add the integration (after restart of HA between actions) for that capability to work,
As long as the password will remain in clear text saved in integration setting, the following warning log message will appear during restart:
EdgeOS password is not encrypted, please remove integration and reintegrate
Configuration -> Integrations -> {Integration} -> Options
Fields name | Type | Required | Default | Description |
---|---|---|---|---|
Host | Textbox | + | - | Hostname or IP address to access EdgeOS device |
Username | Textbox | + | - | Username of user with Operator level access or higher, better to create a dedicated user for that integration for faster issues identification |
Password | Textbox | + | - | |
Clear credentials | Check-box | + | Unchecked | Will reset username and password (Not being stored under options) |
Unit | Drop-down | + | Bytes | Unit for sensors, available options are: Bytes, KiloBytes, MegaBytes |
Monitored devices | Drop-down | + | NONE | Devices to monitor using binary_sensor and sensor |
Monitored interfaces | Drop-down | + | NONE | Interfaces to monitor using binary_sensor and sensor, |
Track | Drop-down | + | NONE | Devices to track using device_trac |
Update Interval | Textbox | + | 1 | Number of seconds to update entities |
Save debug file | Check-box | + | Unchecked | Will store debug file, more details below (Not being stored under options) |
Log level | Drop-down | + | Default | Changes component's log level (more details below) |
Log incoming messages | Check-box | + | Unchecked | Whether to log as DEBUG incoming web-socket messages or not |
As workaround for UI not allowing submitting the form without all fields with values, First option in each drop-down is NONE, as long as this option is checked, it will not allow checking other items
New feature to set the log level for the component without need to set log_level in customization:
and restart or call manually logger.set_level
and loose it after restart.
Upon startup or integration's option update, based on the value chosen, the component will make a service call to logger.set_level
for that component with the desired value,
In case Default
option is chosen, flow will skip calling the service, after changing from any other option to Default
, it will not take place automatically, only after restart
Will store debug data from the component to HA CONFIG path named edgeos_data.log
Name | Type | State | Attributes |
---|---|---|---|
{Integration Name} System Status | Binary Sensor | Connected or not | CPU Memory Up-time API Last Update WS Last Update |
{Integration Name} System Uptime | Sensor | Time since restart in seconds | CPU Memory Is Alive API Last Update WS Last Update |
{Integration Name} Unknown Devices | Sensor | Number of unknown devices | Unknown Devices description |
Name | Type | State | Attributes |
---|---|---|---|
{Integration Name} Device {Device Name} | Binary Sensor | Connected or not | IP MAC Name {Unit}Bytes (Sent) {Unit}Bytes/ps (Sent) {Unit}Bytes (Received) {Unit}Bytes/ps (Received) Last Activity Last Changed |
Name | Type | State | Attributes |
---|---|---|---|
{Integration Name} Interface {Interface Name} | Binary Sensor | Connected or not | Name Duplex Link Speed (Mbps) address Packets (Received) Packets (Sent) Errors (Received) Errors (Sent) Dropped packets (Received) Dropped packets (Sent) {Unit}Bytes (Received) {Unit}Bytes (Sent) {Unit}Bytes/ps (Received) {Unit}Bytes/ps (Sent) Multicast Last Changed |
Name | Type | State | Attributes |
---|---|---|---|
{Integration Name} {Device Name} | Device Tracker | Home or Away | Host IP MAC Name Last Activity Connected |