I am getting the following errors now after activating 2FA on unifi. Is there something I need to do in order to correct the issue:
* Exception on update Call https://192.168.7.xxx:443/proxy/network/api/s/default/rest/dpigroup received 401 Unauthorized
* Exception on update Call https://192.168.7.xxx:443/proxy/network/api/s/default/rest/portforward received 401 Unauthorized
* Exception on update Call https://192.168.7.xxx:443/proxy/network/api/self/sites received 401 Unauthorized
* Exception on update Call https://192.168.7.xxx:443/proxy/network/api/s/default/stat/sysinfo received 401 Unauthorized
* Exception on update Call https://192.168.7.xxx:443/proxy/network/api/s/default/rest/wlanconf received 401 Unauthorized
Define a local user account in the controller and use that to integrate to HA. The local users do not have the MFA requirement. Settings → System → Advanced → under device authentication.
Same deal here. This worked fine until a few days ago, to try and fix it I now made the local account and still get a ton of “received 401 Unauthorized” errors in my log.
Came here because I had the same problem. Simply reloading the hub in the UniFi Network integration solved the issue for me. Screenshot below for reference:
Following up on this… it seems I need to Reload the integration after every single restart of Home Assistant. Something is breaking during the Startup process of Home Assistant and the integration itself… pretty annoying.