-
Notifications
You must be signed in to change notification settings - Fork 17
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
Appropriate action when Zaptec cloud is not working #90
Comments
Could be solved by setting an attribute on the binary_sensor when an API call fails. Then log the problem. When the API is working again the time stamp can be cleared and a reconnected is logged. I've had some issue last two nights with charging stopped several times and I suspect APIs. Could have been detected with an error time stamp. |
Agree. Zaptec API has been unstable during the last few days. Error 500. |
Interestingly, there already exists entities for this: The "* Charger", "* Circuit" and "* Installation" entities. This entity exists to provide a place to store the legacy attributes and only reads "Connected". But it would be a very useful extension to this that they indeed show the status of the API connection. In hindsight it kinda seems obvious to have this feature. Definitely something to put on the list! Thanks. |
Still getting Time Outs like: Denne fejl stammer fra en brugerdefineret integration. Logger: custom_components.zaptec.api Request to https://api.zaptec.com/api/installation/bf68a41d-d2f9-44f5-bfc6-20bf42e645a8 failed (attempt 1): TimeoutError: Perhaps the Zaptec integration should be more patient before reporting an error. After a short while the connection is established |
Hi @sveinse Did you get any further in your considerations to solve this issue. A pity that a very useful integration produces so many errors |
Discussion: What is the appropriate action when Zaptec cloud is not responding or returns error?
Currently the Zaptec integration will log them to the HA system log. This can easily be interpreted that its the zaptec integration which is at fault. Typical errors that are observed are timeouts and HTTP error code 500 (internal server error). When this happens, quite many errors and warnings are logged.
The Home Assistant integration Quality scale states that a integration should (for silver):
So what should we do? Do we need to implement some way to determine Zaptec cloud's "healthyness" in order for our integration to reduce the error logging?
The text was updated successfully, but these errors were encountered: