I’m using a Unifi Local Super Admin for credentials on Home Assistant.
I rolled back several versions of Home Assistant and still have this issue so it must be the Unifi 4.0.6 (OS) firmware that might be causing this problem.
It could be related to their enforcement of MFA . They should have started enforcing it in 10 days’ time according to the emails I’ve been getting. I wouldn’t be surprised they rolled it out slightly earlier:
I was already using a local user but I’m still receiving this 401 and am unable to reconfigure (even after deletion and readding of the local user) the Integration
Thank Robban, I looked through the linked GitHub thread and the issue seem to be with HA toggle not acting the same way as using the button in the browser UI directly hence causing this issue. Interestingly, I see the same logs on more or less the same hardware (gateway ultra vs max) but I only use a local “READ” only admin account for UniFi. I only intend to read values hence did I not create and entities to control directly from HA. Ill test what happens if I use an admin account.
Edit: just tested with Unifi rights Full Management for both OS and Network and same warning shows in the logs. Ill Continue in Github thread to keep this a bit more clean here
Logger: homeassistant.components.unifi
Source: components/unifi/hub/entity_loader.py:94
integration: UniFi Network (documentation, issues)
First occurred: 8:52:11 AM (93 occurrences)
Last logged: 9:07:31 AM