fix(unifi): import wireless SSIDs into device scans

Read essid instead of the UniFi network name, exclude wired clients, and map the plugin result to scanSSID. Label the imported value as SSID.
This commit is contained in:
Alexander Shevchenko committed 2026-10-06 10:36:25 +02:00
1 parent 97ea3d2796
commit 6b76b8c8ea
2 files changed
+5 -4

No files matched your search

+4 -3
View File
@@ -360,21 +360,22 @@
},
{
"column": "extra",
"mapped_to_column": "scanSSID",
"css_classes": "col-sm-3",
"default_value": "",
"localized": ["name"],
"name": [
{
"language_code": "en_us",
"string": "Network"
"string": "SSID"
},
{
"language_code": "es_es",
"string": "Red"
"string": "SSID"
},
{
"language_code": "de_de",
"string": "Netzwerk"
"string": "SSID"
}
],
"options": [],
+1 -1
View File
@@ -198,7 +198,7 @@ def collect_details(device_type, devices, online_macs, processed_macs, plugin_ob
watched2=get_unifi_val(device, 'oui', device_vendor),
watched3=deviceType,
watched4=status,
extra=get_unifi_val(device, 'connection_network_name', ''),
extra='' if device.get('is_wired') is True else get_unifi_val(device, 'essid', ''),
foreignKey="",
helpVal1=parentMac,
helpVal2=get_port(get_unifi_val(device, 'sw_port'), get_unifi_val(device, 'uplink_remote_port')),