Open nifoc opened 2 months ago
Hey there @dannerph, mind taking a look at this issue as it has been labeled with an integration (keba
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
keba documentation keba source (message by IssueLinks)
Hi @nifoc , thanks for the bug report. While not helping to solve this specific issue, you could try out my beta version of the keba integration. In long term, I plan to integrate it here but a bit of work still pending. The beta version is a completely rewritten integration using a more up-to-date library version, supporting multiple charging stations, ...
Wouldn't it be possible to just increase the timeout in the existing (stable) integration?
@dannerph Can you let me know if (ultimately) this is the timeout that has to be increased? https://github.com/dannerph/keba-kecontact/blob/1.2.0/keba_kecontact/connection.py#L43
I understand that there are newer versions of the library that handle timeouts differently, but as far as I can tell, HA uses version 1.x of the keba_kecontact
library.
The problem
When restarting HA, the Keba integration only sometimes works. Most of the time all I get is
Could not find a charging station at 10.0.51.155
.Restarting HA a couple of times fixes the issue and everything works fine.
There appears to be a race condition, where the integration does not wait long enough for the charging station to respond. The attached debug log appears to confirm this.
What version of Home Assistant Core has the issue?
core-2024.8.2
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
Keba Charging Station
Link to integration documentation on our website
https://www.home-assistant.io/integrations/keba/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information