-
-
Notifications
You must be signed in to change notification settings - Fork 28.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] UniFi Integration doesn't update after connectivity failure #35187
Comments
Please follow the template and share enough data |
unifi documentation |
The problemAfter network connectivity failure between homeassistant and unifi controller, all device tracker shows unavailable. Also if UniFi controller comes back available and is working fine. Stauts never updated again. EnvironmentHomeassistant 0.109.3 (HASSIO)
Problem-relevant
|
Hey! How does this look now with 0.110? I can say it works perfectly fine with my dev instance which goes up and down as I put my laptop to sleep or when I leave my home with it. It still returns to proper state later on |
I still facing in this issue on 0.110.1 resease. On screenshot you can see that is switches from „away“ to „unknown“ and never came back up. Controller was available. I saw the issue this morning and checked if controller is working. Can‘t see any problems. So I restarted HA and after that HA reports „Home“/„Away“ again. |
Ok. Enable debug and share logs |
I just enabled the debug log for unifi integration and restarted homeassistant. This is how debug output looks like:
I had to remove some personal information from the log and some lines about other integrations/plugins as well. After connection closed, there is nothing in the log about unifi integration for at least the next 15 minutes. After that I restarted home assistant and unifi was connected again. Some additional information about the unifi controller: |
@Kane610 any update at this issue? Running into this today again. |
Hi! I haven't looked into this yet. I'm thinking that it might be the proxy that is the breaking part since the integration is modeled around getting certain responses directly from the controller. |
This is possible as the 503 error is generated by rproxy because docker container isn‘t available. But a simple retry after a few minutes should resolve this. |
Any update? Do you need any additional information? |
Im prioritising other work right now. I'm building up a list of things to do with Unifi down the line. |
Is there any way to just restart the unifi component instead of whole homeassistant? In this case I could do a simple nodered automation to restart unifi if state = unavailable. But this is not so nice if I has to use "homeassistant.restart" as this could have undesired side effects. |
Not that I'm aware of |
Looks like this one is related to #40542 |
Still reproducible with 0.116.2. |
Experiencing this issue myself on 0.117.4. I'm running Home Assistant Core in a Docker container (not Hassio) in a IoT VLAN, and the controller is on a different Management VLAN, but I've made sure that they can "talk" with each other correctly. My test scenario is with a Raspberry Pi 3 I have with Windows 10 IoT, connected to the Switch with a PoE adapter:
|
@pedrolamas I thinks you've a different issue. As in my case the issue is the lost connectivity between HA <-> Unifi Controller and the entities are "unavailable". |
I use Homeassistant (Hassio) 0.109.3 with UniFi integration.
Controller ist running on a remote host in the same network as homeassistant.
Sometimes (because of a backup job) it looses the connectivity to this host for less than 5 minutes.
In this case that "device_tracker" goes to state "unavailable" and never changes to "hom" or "not_home" until I restart Homeassistant completly.
The text was updated successfully, but these errors were encountered: