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

Invalid authentication #4

Closed
HydrelioxGitHub opened this issue Sep 5, 2022 · 6 comments
Closed

Invalid authentication #4

HydrelioxGitHub opened this issue Sep 5, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@HydrelioxGitHub
Copy link

Hello,
I don't know where to find log, please point at me where I can find it to provide them here.

Anyway I can log into the app and not into the integration using the same credentials. The only difference is that I can't put a 0 at the begining of the phone number. I suppose this is the problem maybe...

Excuse me for my poor English as it's not my naative language.
Thank you for your work.

@drakhart
Copy link
Owner

drakhart commented Sep 5, 2022

Hi Hydreliox,

Does you Super Soco bike use the old application (Super Soco) or the new one (Vmoto Soco)?

I'm asking because, as of current date, this integration is only compatible with the old application, which is my case (TCmax 2021). I would need access to a new application's user account in order to reverse engineer its API calls and add compatibility.

If that's not the case and you're using the old application, you can see the error logs in Settings > System > Logs. They look similar to this one:

image

If you wish you can also enable full debug logs by adding these lines into your configuration.yaml file and restarting Home Assistant:

logger:
  default: info
  logs:
    custom_components.super_soco_custom: debug

After that, they should be visible by clicking the "Show full logs" button located at the bottom of the Logs section.

@HydrelioxGitHub
Copy link
Author

Thank you for your time. I'm using the old app. I will provide logs as soon as possible.

@drakhart
Copy link
Owner

drakhart commented Sep 5, 2022

"The only difference is that I can't put a 0 at the begining of the phone number." <- This got me thinking. The phone number field is currently an integer, perhaps it should be a string so it accepts leading zeroes. Honestly, it didn't occur to me that phone numbers could begin with a zero. 😓

I'll try to push a fix as soon as I can.

@HydrelioxGitHub
Copy link
Author

20220905_224202.jpg

In France all cell phone numbers starts with 06 or 07.

@drakhart
Copy link
Owner

drakhart commented Sep 5, 2022

Done, this should be fixed in 1.0.0-beta.5. Please let me know if the issue persists.

@drakhart drakhart added the bug Something isn't working label Sep 5, 2022
@HydrelioxGitHub
Copy link
Author

Ok now I can put a 0 on the front of phone number and it solves the authentication issue.

Thank you very much!

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