Closed amorfinv closed 1 month ago
Hey there @kane610, mind taking a look at this issue as it has been labeled with an integration (unifi
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
unifi documentation unifi source (message by IssueLinks)
I'm seeing the same issue. It seems to be related all switch entities. I cannot toggle on/off my guest wifi, POE, and individual device connections (kid's tablets). I experienced on 2024.7.1 and then upgraded to 2024.7.2 and I'm still seeing it. I also notice that it starts with the error below, followed by the 401 error. Unifi logs show the HA user accessing successfully and there hasn't been any authentication changes so I'm not sure why it's throwing this error when it seems the integration is talking to my Unifi.
Failed to call service switch/turn_on. Call https://192.168.3.1:443/api/auth/login received 429: b'{"code":"AUTHENTICATION_FAILED_LIMIT_REACHED","message":"You\'ve reached the login attempt limit","level":"debug"}'
I have validated that I have the same issue with Power cycle button does not work with the same error
I'm seeing the same issue. It seems to be related all switch entities. I cannot toggle on/off my guest wifi, POE, and individual device connections (kid's tablets). I experienced on 2024.7.1 and then upgraded to 2024.7.2 and I'm still seeing it. I also notice that it starts with the error below, followed by the 401 error. Unifi logs show the HA user accessing successfully and there hasn't been any authentication changes so I'm not sure why it's throwing this error when it seems the integration is talking to my Unifi.
Failed to call service switch/turn_on. Call https://192.168.3.1:443/api/auth/login received 429: b'{"code":"AUTHENTICATION_FAILED_LIMIT_REACHED","message":"You\'ve reached the login attempt limit","level":"debug"}'
All other switch functions seem to work for me, seem you have some login issue which would be a different thing @kernel610
I am also experiencing the same issue as @kernel610. Same 429 error at first attempt to toggle individual device connections, and then 401 errors on subsequent attempts. Per the logs in HA the errors started immediately following the 4.0.6 update.
I should add, I've tried creating a new local account for HA in Unifi and removing/re-adding the integration in HA.
Looking at UniFi and testing things it seems that trying to do Power cycle on a device without a PoE connected device will generate this error aiounifi.errors.AiounifiException: {'meta': {'rc': 'error', 'port': 1, 'msg': 'api.err.InvalidTargetPort'}
Can you validate this?
The problem
Hello,
I am no longer able to power cycle POE ports or use them as a switch in the Unifi Network integration. I keep getting one of the following errors that show up in the GUI:
Failed to call service button/press. Call https://192.168.178.1:443/proxy/network/api/s/default/cmd/devmgr received 401 Unauthorized
Failed to call service button/press. {'meta': {'rc': 'error', 'port': 4, 'msg': 'api.err.InvalidTargetPort'}, 'data': []}
I have tried deleting the integration and restarting the UNIFI controller. I made sure that the user in the integration is a super user so it should have access to the unifi network. Interestingly, I am able to switch of the network connectivity of clients. I just can't access the POE ports of my switches.
I am in unifi network version 8.2.93 and UniFi OS 4.0.6 with a UDR.
What version of Home Assistant Core has the issue?
core-2024.7.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
unifi
Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifi/
Diagnostics information
config_entry-unifi-01J2970R7R9629DWM0TFR0KK55.json
Anything in the logs that might be useful for us?