Open TheQue42 opened 2 weeks 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)
Same issue here even with Unifi Protect installed on Unifi Cloud Key G2 Plus on same local network (no firewall rules or routing issues):
Logger: homeassistant.components.unifi
Source: components/unifi/hub/entity_loader.py:94
integration: UniFi Network (documentation, issues)
First occurred: 12:49:59 (1 occurrences)
Last logged: 12:49:59
Exception on update Error requesting data from https://192.168.1.240:443/proxy/network/v2/api/site/default/trafficrules: Cannot connect to host 192.168.1.240:443 ssl:False [Connect call failed ('192.168.1.240', 443)]
Teporary to re-establish it, I need to restart both Unifi Protect and HA Machine
Of course, Unifi Protect is fully working using the Uinfi Interface (via App or web interface)
The problem
Every five or ten minutes, I will get
2024-09-27 14:39:02.368 WARNING (MainThread) [homeassistant.components.unifi] Exception on update Error requesting data from https://vimes.disc-world.se:8443/v2/api/site/default/trafficrules: Server disconnected
and less often:
2024-09-27 14:36:09.429 WARNING (MainThread) [homeassistant.components.unifi] Exception on update Error requesting data from https://vimes.disc-world.se:8443/v2/api/site/default/trafficrules: Cannot connect to host vimes.disc-world.se:8443 ssl:False [Connect call failed ('10.9.24.22', 8443)]
So far I have not noticed any issues with the actual functionality of the integration (apart from my eternal issue that clients that move out-of-range of wifi are not detected until very late).
The unifi container is running on the same system (goofball222/unifi:latest-ubuntu), and logs during another debugging timespan, only shows. (most cases nothing useful is shown, at least not on default level). I have also recreated the unifi container, with a backup.
I have seen:
[2024-09-27T15:11:16,560+02:00] <ws-notify-1> WARN api - unable to send over websocket java.lang.IllegalStateException: The remote endpoint was in state [TEXT_FULL_WRITING] which is an invalid state for called method
In the unifi logs but the timestamps don't match with the related log-complaints in homeassistant at least.
Running with the debugging show that the integration is performing GET on
https://vimes.disc-world.se:8443/v2/api/site/default/trafficrules
every ~TEN seconds, which seems a bit unnecessary since there are none, and never will be.What version of Home Assistant Core has the issue?
2024.9.3
What was the last working version of Home Assistant Core?
unknown, but i've seen it before, the past months I think.
What type of installation are you running?
Home Assistant OS
Integration causing the issue
unifi
Link to integration documentation on our website
https://www.home-assistant.io/integrations/unifi
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
Since my unifi setup doesnt have anything else than switches and wifi APs - and I am assuming that traffic rules are associated with unifi gw's or firewalls - so it would be nice I could disable any firewall rules polling, when it is completely unneeded.