In RefreshDatac.lastRefreshError is set when there is an error (which makes sense) but it is never cleared when there is no error on a next successful RefreshData call. This causes netatmo_up to stay 0 for always and ever after the first error.
# docker logs --timestamps netatmo
2020-11-14T23:09:46.241064323Z level=info msg="Listen on :9210..."
2020-11-14T23:17:52.283248164Z level=error msg="Error during refresh: Bad HTTP return code 504"
2020-11-14T23:26:07.271592987Z level=error msg="Error during refresh: Bad HTTP return code 504"
2020-11-15T04:01:57.511840931Z level=error msg="Error during refresh: Bad HTTP return code 500"
In RefreshData
c.lastRefreshError
is set when there is an error (which makes sense) but it is never cleared when there is no error on a next successfulRefreshData
call. This causesnetatmo_up
to stay 0 for always and ever after the first error.