robinostlund / homeassistant-volkswagencarnet

Volkswagen Carnet Component for home assistant
GNU General Public License v3.0
304 stars 60 forks source link

[BUG] No data for Passat GTE 4.5.2-beta3 #567

Closed simon-mueller closed 5 months ago

simon-mueller commented 5 months ago

Before you post a new issue - you must first check the following (and check the boxes with an "X" below)

Environment

Describe the bug

No data comes into home-assistant. Login fails

Steps to Reproduce

Restart Homeassistant. Notification pops-up: "Integration needs your attention", re-enter password, "user seems unauthorized"

Expected behavior

Login succeeds, entities are available.

Screenshots

image

Traceback/Error logs

2024-02-08 21:35:39.251 WARNING (MainThread) [homeassistant.data_entry_flow] custom_components.volkswagencarnet.config_flow::VolkswagenCarnetConfigFlow calls async_show_progress without passing a progress task, this is not valid and will break in Home Assistant Core 2024.8. Please report it to the custom integration author
2024-02-08 21:35:40.050 ERROR (MainThread) [volkswagencarnet.vw_connection] Login failed for VW account, User appears unauthorized
2024-02-08 21:35:40.050 ERROR (MainThread) [volkswagencarnet.vw_connection] User appears unauthorized
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_connection.py", line 314, in _login
    raise e
  File "/usr/local/lib/python3.12/site-packages/volkswagencarnet/vw_connection.py", line 291, in _login
    raise Exception("User appears unauthorized")
Exception: User appears unauthorized

Debug information - all JSON responses from logfile

Since I cannot add my car, I can't enable the advanced debug logs.

Additional context

It just stopped working one day.

stickpin commented 5 months ago

@simon-mueller There have been no changes in the authentication process since v4.4.69. Should be something related to your account or some VW service interruptions. Report back if the issue is still present, if not, please close the issue.

simon-mueller commented 5 months ago

On vwid.vwgroup.io it says that I have some connected apps. Do we need to add Home Assistant here somehow now?

image

simon-mueller commented 5 months ago

I have downloaded the python example and this is the result:

$ ./passerati.py
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:volkswagencarnet.vw_connection:Using service https://msg.volkswagen.de
DEBUG:volkswagencarnet.vw_connection:Initiating new login
DEBUG:volkswagencarnet.vw_connection:Got authorization endpoint
DEBUG:volkswagencarnet.vw_connection:Authenticating with email and password.
DEBUG:volkswagencarnet.vw_connection:Parsing login response.
INFO:volkswagencarnet.vw_connection:Login failed, does this account have any vehicle with connect services enabled?
DEBUG:volkswagencarnet.vw_connection:Exception occurred while logging in.
ERROR:volkswagencarnet.vw_connection:Login failed for VW account, User appears unauthorized
ERROR:volkswagencarnet.vw_connection:User appears unauthorized
Traceback (most recent call last):
  File "/home/simon/.local/lib/python3.11/site-packages/volkswagencarnet/vw_connection.py", line 314, in _login
    raise e
  File "/home/simon/.local/lib/python3.11/site-packages/volkswagencarnet/vw_connection.py", line 291, in _login
    raise Exception("User appears unauthorized")
Exception: User appears unauthorized
INFO:volkswagencarnet.vw_connection:Something failed

Is there a possibility to raise the debug level even further?

simon-mueller commented 5 months ago

For whatever reason, I logged in for the 15th time today and maybe it is because I changed the language or something completely else, but I had to consent to ToS and now it's working again...

/close

simon-mueller commented 5 months ago

Thanks tho