Closed phipolis closed 3 months ago
Hey there @markgodwin, mind taking a look at this issue as it has been labeled with an integration (tplink_omada
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
tplink_omada documentation tplink_omada source (message by IssueLinks)
On further investigation, there's something more to this I haven't identified. I also wasn't aware of the 1 hour short circuit in _check_login()
when gathering the logs above.
OmadaApiController
's _check_login()
expiresI will continue to investigate. Currently I'm only able to reproduce when the docker container updates, so I'm at the mercy of waiting for the next update unless I can identify a different cause or I switch to a local docker repository where I can control the tagging.
With Home Assistant 2024.7.1, I'm seeing the integration recover after 40-60 minutes, closing.
The problem
It appears the
tplink_omada
integration fails to renew its login session when the external Omada Controller restarts, preventing communication. HA and the integration appear oblivious to this degraded state, the main tell is that PoE switch entities (switch.1c_61_b4_xx_xx_xx_port_n_poe
) go unavailable until the integration is reloaded. The integration's logs indicate API data fetch requests continue to fail after the remote endpoint comes back online.Setup includes an Omada PoE switch and the software Omada Controller version
5.13.30.8
. Integration is connecting via a dedicated Controller user with a scoped role.What version of Home Assistant Core has the issue?
core-2024.6.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
tplink_omada
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tplink_omada
Diagnostics information
Normal log line repeating every 5m:
(Omada Controller restarts) Request times out:
(Omada Controller comes back online) Unsuccessful log line repeating every 5m:
(Integration is manually restarted) Normal log lines resume:
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response