-
Notifications
You must be signed in to change notification settings - Fork 21
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
Reconnecting sometimes fails for HmIp #191
Comments
What happens if you click on reload integration. That should be the equivalent to a service reload. Please add logs |
Please give me a summary of the attached openhab issue. Why is this relevant? |
It showed the same behaviour after reboot (HmIp not available while Hm is available), so I thought it might be the same issue. The most relevant finding is this:
In combination with this:
it maybe would explain why your API PING succeeds even though the API is not really booted up correctly. |
Yes, reload integration fixed it.
Unfortunately after enabling the debug logging the error hasn't occurred for 5 CCU restarts in a row now which speaks for an error that could probably be dependent on the exact timing of the reconnection attempt . I'll keep restarting and hope that it fails again to privide better data :-) |
Yes, i guess the CCU is too slow for the current reconnect. |
Current config is a check interval of 30s, and reconnect immediately if check is successful again. |
I think the "wait 120s after successful connection check" will mostly fix it when there is no other way to reliably check if the service is running correctly yet. The correct time to wait would depend on the hardware the CCU is running on and maybe some other things like number of devices and/or programs, addons installed etc. :-/ Don't know why you would set the check interval from 30s to 60s though, this just increases the variation of the timespan (ccu_is_available to do_the_reconnect), doesn't it? |
I already planned to raise it to 60s before. Should be enough for a connection check. |
addressed in 0.23.0 |
Thanks. I have restarted about 20 times now and currently can't reproduce. I'll close this and reopen if I catch it another time. |
Sometimes reconnecting fails when the CCU3 is rebooted, then it looks like this:
All HmIp devices failed, all Hm devices are there.
custom_component/hahomematic version (if applicable):
latest
Home Assistant version (if applicable):
latest
CCU version:
CCU3 with Raspberrymatic
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Reconnection should not result in missing entities.
Restarting the integration fixes this as a workaround, but this should be handled automatically.
In the old integration there was a service homematic.reconnect which could be used to mitigate the problems. This service does not exist in the hahm.* namespace. A better solution would of course be if this wasn't even needed anymore.
Additional context
I've had a very similar bug in openHAB, see openhab/openhab-addons#8808 (comment) for the explanation of the addon developer there.
The text was updated successfully, but these errors were encountered: