-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[netatmo] Binding does not reconnect after connection loss #4270
Comments
Seems as if the binding doesn't request a refresh token either. |
Hi, |
@gletellier : do you still encounter this problem with recent versions of the binding ? |
I have never noticed this problem. But I have only a Presence camera where missing status updates aren't notable. Actually I can't imagine that it still occurs, because the binding refreshes everything about every 5 minutes. But on the otherside it could be that the whole binding crashed so that there aren't any reconnect attempts. Maybe someone could try to simulate / force reproduce it by using something like WireMock or by disconnecting the internet connection. |
I often see also Bad gateway errors around 00AM and 02AM but it does not seem to affect the binding. |
I see the refresh token job is run every 90 minutes (by default). The only case that could lead to this job not being rescheduled would be an uncaught exception in
Maybe we could make safer the code by catching |
I don't know in practice if When adding null annotations, I didn't manage this case, probably because I didn't know what should be done in case it occurs. |
Fix openhab#4270 Signed-off-by: Laurent Garnier <[email protected]>
Fixes #4270 * [netatmo] Make safe the execution of the refresh token job
) Fixes openhab#4270 * [netatmo] Make safe the execution of the refresh token job Signed-off-by: CSchlipp <[email protected]>
) Fixes openhab#4270 * [netatmo] Make safe the execution of the refresh token job Signed-off-by: MPH80 <[email protected]>
) Fixes openhab#4270 * [netatmo] Make safe the execution of the refresh token job
) Fixes openhab#4270 * [netatmo] Make safe the execution of the refresh token job
) Fixes openhab#4270 * [netatmo] Make safe the execution of the refresh token job
) Fixes openhab#4270 * [netatmo] Make safe the execution of the refresh token job
) Fixes openhab#4270 * [netatmo] Make safe the execution of the refresh token job Signed-off-by: Daan Meijer <[email protected]>
) Fixes openhab#4270 * [netatmo] Make safe the execution of the refresh token job
This issues is discussed in the forum here : https://community.openhab.org/t/no-update-of-netatmo-items/57576/13
Context
There has been a lot of connectivity errors on netatmo's side recently.
These connectivity problems are logged as :
2018-11-22 21:49:37.404 [ERROR] [nternal.handler.NetatmoBridgeHandler] - Unable to connect Netatmo API : 502 Bad Gateway" in openhab logs.
The problem is that when the Netatmos server are back online, the binding does not update sensors values.
Just restarting the container does not restore the connection. Deleting and re-creating the container is necessary to have the binding work again.
Your Environment
Openhab 2.4.0.M6 running in docker (amd64-debian)
The text was updated successfully, but these errors were encountered: