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

Need to reload integration all the time #13

Closed
apbarratt opened this issue Aug 15, 2023 · 5 comments
Closed

Need to reload integration all the time #13

apbarratt opened this issue Aug 15, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@apbarratt
Copy link
Contributor

Version of the custom_component

Latest and kept up to date as updates appear :)
I use the newer vmoto app with the battery-powered ECU on a TC-Max.

Configuration

Add your logs here.

Describe the bug

This whole integration was working very well for me, but recently I find it constantly requires a reload to get certain parts to work. It does seem that most data is still coming through, but the most notable issue is when I go to turn on the bike's power and the power toggles (along with the other toggles for notifications etc) are all greyed out. This is fairly quickly repaired by just going to the integration page and choosing "Reload". After about 20 seconds of waiting, the toggle comes back, I can turn on my bike, move it out of the way of my bins to bring them out for the bin lorry and I'm sorted. But if I check even minutes later I can see the toggles have greyed out again.

I almost wonder if Vmoto have updated the app to only provide certain settings if the logged-in session checks in somehow. Frequent polling would undoubtedly be a bad idea, but perhaps if we could stick some kind of retain time to keep the switch status up to date and check once an hour or so and have the command to send include whatever the check-in requirement is... I'm absolutely guessing here 😅

Debug log


Please advice what sort of logs I can provide and how :)
If there's also some way to volunteer live data logs to you to check in on, I'd be happy to provide that if having access to another device would assist in your efforts, though obviously it'd need to be done in some way that is not public :) 

@apbarratt
Copy link
Contributor Author

Hi @drakhart, is there anything I can do to assist with investigating this one? :)

@drakhart drakhart self-assigned this Aug 29, 2023
@drakhart drakhart added the bug Something isn't working label Aug 29, 2023
@drakhart
Copy link
Owner

drakhart commented Aug 29, 2023

Hi @apbarratt. I think this issue is related to #10: the response doesn't return a last warning time, then the integration sets that state as unknown and the new HA versions don't like that, so it starts failing until manually restarted.

I think I have found a fix, but I need to try it a bit more just to make sure. Will let you know the outcome asap.

In the meantime you may want to disable the last warning entity in the integration options, see if that helps.

@apbarratt
Copy link
Contributor Author

Fair enough, I've disabled the last warning entity, will see how things go after another reload :)

@drakhart
Copy link
Owner

This should have been fixed in beta 12. Please let me know if that worked for you.

@drakhart
Copy link
Owner

There hasn't been any response for a long time, and I assume this has been already fixed as mentioned in my previous comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants