DurgNomis-drol / ha_toyota

Toyota Connected Services integration for Home Assistant.
MIT License
148 stars 29 forks source link

Login failed, check your credentials! #194

Closed clarky860 closed 9 months ago

clarky860 commented 9 months ago

Describe the bug I am on the new toyota app, the plugin was working on home assistant until about 3 days ago. looking at the logs I get:

home-assistant_toyota_2023-12-24T07-44-27.891Z.log

To Reproduce Steps to reproduce the behavior:

Start home assistant with latest Toyota Connected Services Europe 1.3.0

Expected behavior To log in as credentials are correct

Additional context I am in Austria, the integration was working about 3 days ago, I was already on the new version of the (ios) app for over a month with toyota. I stared out my email above in the log

desosav commented 9 months ago

Exact same issue here. The only thing that has changed in my homeassistant setup, was the installation of homeassistant operating system 11.3.rc1, which was released about 3 days ago, when the the integration started failing. Maybe a coinsidence since the toyota servers are unreliable with lots of connectivity issues.

schmocker commented 9 months ago

Same issue here. After approx 20 attempts to login and reset the password I finally was able to make one login. Afterwards the integration directly fails again but at least the config is stored and I receive logs (see betow). Not sure if this is really an issue - I think it's more due to a resource shortage on toyotas API servers. Maybe people finally have time over Christmas holidays to play around with their toys 😆

Logger: homeassistant.config_entries Source: config_entries.py:402 First occurred: 11:20:02 PM (2 occurrences) Last logged: 11:24:00 PM

Error setting up entry xxxxxxxxxxxxxx@xxxxxx.xxx for toyota Error setting up entry toyota for toyota Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/toyota/init.py", line 72, in async_setup_entry await client.login() File "/usr/local/lib/python3.11/site-packages/mytoyota/client.py", line 121, in login await self.api.controller.first_login() File "/usr/local/lib/python3.11/site-packages/mytoyota/controller.py", line 73, in first_login await self._update_token() File "/usr/local/lib/python3.11/site-packages/mytoyota/controller.py", line 113, in _update_token await self._update_token(retry=False) File "/usr/local/lib/python3.11/site-packages/mytoyota/controller.py", line 115, in _update_token raise ToyotaApiError("Servers are overloaded, try again later") mytoyota.exceptions.ToyotaApiError: Servers are overloaded, try again later

CM000n commented 9 months ago

As you said, it's more likely to be the Toyota servers. There is not much that we can currently do here on our side. Hopefully the switch to the new API will bring some improvement. So far at least, it has been much more responsive.