sander1988 / Indego

Home Assistant Custom Component for Bosch Indego Lawn Mower
Apache License 2.0
95 stars 29 forks source link

Login failed #167

Closed Merexor closed 1 year ago

Merexor commented 2 years ago

Hallo Zusammen,

Ich habe alles installiert und in der Konfiguration so eingetragen wie in der Anleitung. Aber die Anmeldung schlägt immer wieder fehl. Ich habe einen Bosch Indego S+ 500. Hoffe auf Hilfe.

LOG: Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.indego Quelle: custom_components/indego/init.py:233 Integration: indego (Dokumentation) Erstes Ereignis: 19:08:48 (1 Vorkommnisse) Letzter Besuch vor: 19:08:48
Login nicht erfolgreich: Anmeldung kann nicht möglich sein, bitte überprüfen Sie Ihre Anmeldedaten

jm-73 commented 2 years ago

Please write in english! I have also problems with the integration. It seems that there are a login problem? The App is working for me. Anyone else who can confirm/deny if this is a widespread problem or just for me and Merexor?

Merexor commented 2 years ago

Sorry, I saw it too late. It would actually be easy to configure but unfortunately it keeps failing. So I don't know exactly why this happened.

mrtobs1 commented 2 years ago

Same here sometimes… i have 2 indegos and the one i am not logged in in the iphone-app sometimes gets unavailable in HA. When i log in with the other account on the app and restart HA, some minutes/hours later they work both again. Now they work since some days without problems. Hope that helps maybe to find the problem?

Shamshala commented 2 years ago

@mrtobs1 Simple, Bosch's server doesn't support multiple simultaneous connections to one account at a time so when you connect via app, your HA is kicked out.

Merexor commented 2 years ago

My Problem is that the connection failed since day one. So i didn't have the problem that i lost the connection, the connection didn't even work.

Merexor commented 2 years ago

@jm-73 do you have a idea ..?

jm-73 commented 2 years ago

My login problems was solved when I updated HA.

jm-73 commented 2 years ago

@Merexor I need debug logs from a fresh reboot in HA. All "unsolvable" login problems with the integration has been solved when analyzing the debug logs or when I have analyzed the user/password used to login. For example when you have a serial number starting with a "0" you have to use "" wround the password in your secrets.yaml.

NJ-89 commented 2 years ago

Hi, I seem to have the same problem with the integration of my S+ 500.

My most recent logs after upgrading to the latest version on Home Assistant:

2022-11-05 15:50:33.110 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration indego which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-11-05 15:51:32.424 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/authenticate/check 2022-11-05 15:51:41.066 DEBUG (MainThread) [pyIndego.indego_async_client] [Errno 104] Connection reset by peer: Failed to update Indego status, longpoll timeout 2022-11-05 15:51:41.077 WARNING (MainThread) [custom_components.indego] Login unsuccesfull: Unable to login, please check your credentials 2022-11-05 15:51:41.122 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration indego: Integration failed to initialize.

It looks like a time-out with the server might be the problem. If so can I and @Merexor do anything to solve the issue?

jm-73 commented 2 years ago

I have also had periods with failed login during the last weeks. It seems to me that Bosch have had some problems. Today my login was indeed successful after rebooting my HA. Please try again!

NJ-89 commented 2 years ago

I tried it again, different error message this time:

2022-11-08 19:20:21.261 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration indego which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-11-08 19:20:46.531 DEBUG (MainThread) [pyIndego.indego_async_client] Sending GET to https://api.indego.iot.bosch-si.com/api/v1/authenticate/check 2022-11-08 19:20:49.295 DEBUG (MainThread) [pyIndego.indego_async_client] status: 401 2022-11-08 19:20:49.300 INFO (MainThread) [pyIndego.indego_async_client] 401: Unauthorized, credentials are wrong, won't retry 2022-11-08 19:20:49.300 WARNING (MainThread) [custom_components.indego] Login unsuccesfull: Unable to login, please check your credentials 2022-11-08 19:20:49.358 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration indego: Integration failed to initialize.

So it doesn't seem to accept my credentials. So I did a bit of digging in the code to see how the authentication works and used postman to replicate the issue. https://api.indego.iot.bosch-si.com/api/v1/authenticate always returns 401 for my credentials even after adjusting them.

Could it be there is a different URL for different countries/continents? I haven't been able to find any documentation about the API. So, hopefully you have an idea.

jm-73 commented 2 years ago

If you want you can send me your login credentials and I will try them out for you. I order to test if your theory is correct? Easiest way is to send both debug logs and credentials in a private message on Discord.

jm-73 commented 1 year ago

Closing the issue as I dont get information enough to solve this.

Merexor commented 1 year ago

@jm-73 I've also tried it again several times.. but it doesn't work. no matter how I specify user/password/serial number

what do you need to test it?

jm-73 commented 1 year ago

Send me a private message on Discord with your login credentials. Then I can try to login and get a clean log file. I have solved every issue this far with people having trouble logging in. Your choice...

jm-73 commented 1 year ago

No message from you yet?

Merexor commented 1 year ago

@jm-73 already wrote to you. hope the message has reached you.

jm-73 commented 1 year ago

@Merexor got the message. Hear from you in a week then.

Merexor commented 1 year ago

@jm-73 do you need a moving robot or is there just an API access to the Bosch server ..?

Merexor commented 1 year ago

@jm-73 Do you have time this week?

Merexor commented 1 year ago

@jm-73 when do you have time ?

Merexor commented 1 year ago

@Shamshala @NJ-89 Problem solved.. i had "-" in My password .. that was the Problem .. maybe it's help you 👍🏻