skagmo / ha_vwid

Volkswagen ID component for Home Assistant
72 stars 25 forks source link

Component stopped working #6

Closed lorddaku closed 3 years ago

lorddaku commented 3 years ago

HA Version:

Version core-2021.5.5
Installation Type Home Assistant Supervised
Development false
Supervisor true
Docker true
Virtual Environment false
Python Version 3.8.9
Operating System Family Linux
Operating System Version 4.19.0-16-amd64
CPU Architecture x86_64
Timezone Europe/Stockholm

LOGS:

Logger: custom_components.vwid.sensor Source: /config/custom_components/vwid/sensor.py:111 Integration: Volkswagen ID (documentation) First occurred: 3 juni 2021 18:22:24 (308 occurrences) Last logged: 21:32:26

Error retrieving data

Logger: custom_components.vwid.libvwid Source: custom_components/vwid/libvwid.py:141 Integration: Volkswagen ID (documentation) First occurred: 3 juni 2021 18:22:24 (308 occurrences) Last logged: 21:32:26

Get status failed

Logger: custom_components.vwid.libvwid Source: custom_components/vwid/libvwid.py:79 Integration: Volkswagen ID (documentation) First occurred: 3 juni 2021 18:22:24 (308 occurrences) Last logged: 21:32:26

Not redirected

superharaldsson commented 3 years ago

The same for me! Both in core-2021.6.3 and core-2021.5.5.

joakimberglund commented 3 years ago

Had this when I forgotten that I changed the password. Had to delete the pyc files to force the integration to be re-added with the new password.

skagmo commented 3 years ago

I'll have a look at it one day.

Keep in mind this is the errors you'll see for any kind of connectivity issue: Server rejecting connection, server/internet connection down, wrong password etc. It could definitely be nice to have the component log more specific errors.

I had these errors for almost a full day. In that case the issue was the VW servers being down. (They have pretty bad uptime.)

erikosvaldsson commented 3 years ago

I'm seeing the same thing, but noted the app works fine!

rgilijamse commented 3 years ago

It looks like the problem is on the API side, not on the Home Assistant side. I get the same errors when running libvwid_example.py directly:

INFO:libvwid:Reconnecting
ERROR:libvwid:Not redirected
ERROR:libvwid:Get status failed

It looks like the authentication returns HTTP 303 where the code expects HTTP 302, and throws the "Not redirected" error. I can't tell if this is a transient problem or if the authentication process has actually changed.

skagmo commented 3 years ago

I had a look at this yesterday, and there seems to be an extra step in logging in now. Terms and conditions have to be accepted before login is completed. I'll have a look at this after work today, I think it should be a quick fix.

skagmo commented 3 years ago

Please try the latest commit.

superharaldsson commented 3 years ago

Works great. Thanks 👍

skagmo commented 3 years ago

Good to hear, thanks for the quick feedback!