Skip to content
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

Integration hangs until HA restart #56

Open
liksvette opened this issue May 14, 2024 · 8 comments
Open

Integration hangs until HA restart #56

liksvette opened this issue May 14, 2024 · 8 comments

Comments

@liksvette
Copy link

liksvette commented May 14, 2024

I bought my Niu MC in August last year, and am very happy with the HA integration! However, my experience is that the integration stops receiving/updating data after a while, and the only fix is to restart the entire HA instance. Reloading the the integration is not successful. Is this familiar, and/or is there a fix?

@marcelwestrahome
Copy link
Owner

It seems that Niu blocks requests after a certain period. not sure how to solve this :-(. Which version are you using ?

@pervolianinen
Copy link

I bought my Niu MC in August last year, and am very happy with the HA integration! However, my experience is that the integration stops receiving/updating data after a while, and the only fix is to restart the entire HA instance. Reloading the the integration is not successful. Is this familiar, and/or is there a fix?

Has same problem with fork work with Chinese niu.

@pervolianinen
Copy link

I bought my Niu MC in August last year, and am very happy with the HA integration! However, my experience is that the integration stops receiving/updating data after a while, and the only fix is to restart the entire HA instance. Reloading the the integration is not successful. Is this familiar, and/or is there a fix?

Why restart don't work?

@liksvette
Copy link
Author

It seems that Niu blocks requests after a certain period. not sure how to solve this :-(. Which version are you using ?

Using 2.1.3.
I've had success reaching out to their customer support before. Have you hailed them for a comment?

@pervolianinen
Copy link

Why home assistant restart integration function not working on this intigration? To restart integration need restart all homevassistant.
I think error of getting data in this.

@CptKalibak
Copy link

I got the same, on Home Assistant start, the integration works. But breaks sometimes after a day, sometimes after weeks. Only a complete Home Assistant restart resolves this until next time it happens. If it would be possible to reload the integration i would just automate the reload. Problem "solved" but as of now this is not possible.

@marcelwestrahome
Copy link
Owner

Sorry I have a new job and the next few month I have nearly time left to look about this. As far as I know the issue with the integration is mostly because niu stop working due the number of request.

@syssi
Copy link
Collaborator

syssi commented Oct 21, 2024

IMO the root cause is an unstable API endpoint see: #53 (comment)

We should catch this exception and/or re-authenticate from time to time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants