CJNE / ha-porscheconnect

Porsche Connect custom component for Home Assistant
MIT License
29 stars 12 forks source link

Cannot login anymore since installation of the latest version 0.0.16 #197

Closed browetd closed 1 year ago

browetd commented 1 year ago

Version of the custom_component

0.0.16

Configuration

Message received at startup

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/porscheconnect/__init__.py", line 94, in async_setup_entry
    access_tokens = await controller.getAllTokens()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyporscheconnectapi/client.py", line 32, in getAllTokens
    return await self._connection.getAllTokens()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyporscheconnectapi/connection.py", line 195, in getAllTokens
    token = await self._requestToken(application)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyporscheconnectapi/connection.py", line 202, in _requestToken
    await self._login()
  File "/usr/local/lib/python3.11/site-packages/pyporscheconnectapi/connection.py", line 149, in _login
    raise WrongCredentials(message.get('message', message.get('description', 'Unknown error')))
pyporscheconnectapi.exceptions.WrongCredentials

Describe the bug

Cannot login anymore since upgraded from 0.0.15 to 0.0.16 (WrongCredentials) Was working fine with previous version and fix for the API to 0.1.5

Debug log


Add your logs here.
browetd commented 1 year ago

I tried to remove it and downgrade (but changing the API to 0.1.5) which was working but still "auth" issue... Maybe is it a temporary problem with API, website or... ?

browetd commented 1 year ago

I do not know why but Porsche suspended my logonid for too many attempts... Created a new password and now it is back online...

steffenhoelle commented 1 year ago

I have the same issue here. Changing password does not solve the issue. When I try to install I get a ‚! auth‘ message after typing in my email & password

browetd commented 1 year ago

@steffenhoelle it seems that the access from home assistant is understood by Porsche as an unauthorized attempt (I got three time an Email from them telling me that someone is trying to get access to my account). And three time I "changed" my password by retyping the same one... :-) and the service was restored after... until the next Email from Porsche... But when connected, it is working fine though...