marcelwestrahome / home-assistant-niu-component

niu scooter integration for Home assistant.
Apache License 2.0
47 stars 30 forks source link

Invalid authentification #57

Open Housemann opened 5 months ago

Housemann commented 5 months ago

I can Not Login to my Niu Account with the integration User Passwort and my Scooter id wich Beginns with 199 dont work Works the integration?

caiodelgadonew commented 4 months ago

Same issue here, but I dont know how to get my scooter id...

marcelwestrahome commented 4 months ago

integration works, what kind of error do you get ?. id =0 for one scooter

caiodelgadonew commented 4 months ago

@marcelwestrahome I get only invalid authentication

CleanShot 2024-07-03 at 19 30 33

Tried with both e-mail and password or username and password.

Login user/pass is the same as the android NIU app

marcelwestrahome commented 4 months ago

in which country do you live ? not sure if integration works for all countries

caiodelgadonew commented 4 months ago

@marcelwestrahome netherlands

Btw, there's no option to choose the country

marcelwestrahome commented 4 months ago

some countries has different api addresses, but netherlands should work. What kind of scooter do you have and are you really sure about the password ?

caiodelgadonew commented 4 months ago

@marcelwestrahome yeah, I use a password manager and even tried to logout login again in the app which works well.

I got a NIU NQi Sport Standard Range.

Is there any way to enable a verbose/debug level on the integration?

caiodelgadonew commented 4 months ago

@marcelwestrahome seems I found the issue... I just generated a new password without special characters and now I can login

ralfweber commented 2 months ago

Hello @marcelwestrahome, is there a way to adapt the code so that passwords with special characters also work? That would also be a good step in terms of security. I would be very happy because then I could also use the integration, but weak passwords without a single special character are not a solution. Are there any solutions here?