skagmo / ha_vwid

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

Entity unavailable error #30

Closed JaniAst closed 1 year ago

JaniAst commented 1 year ago

Hi,

This error started today:

2022-12-05 14:39:02 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.wvgzzze2zmp034600_soc fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 446, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 654, in async_device_update raise exc File "/config/custom_components/vwid/sensor.py", line 92, in async_update data = await self.api.get_status() File "/config/custom_components/vwid/libvwid.py", line 198, in get_status if await self.reconnect(): File "/config/custom_components/vwid/libvwid.py", line 90, in reconnect response = await self.session.get(LOGIN_BASE + '/authorize', params=payload) File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 606, in _request raise ValueError("Can redirect only to http or https") ValueError: Can redirect only to http or https

skagmo commented 1 year ago

Just saw the same thing. Will look into it this evening. Looks like VW are doing incremental/small changes to their API these days...

PalmSwe commented 1 year ago

Exact same error since 1 day ago.

skagmo commented 1 year ago

A little larger change in the VW API this time, but should work now and attributes should be called the same as before. Please test current master.

JaniAst commented 1 year ago

Working again. Thanks!

mauromognon commented 1 year ago

fixed! thanks a lot

sebking1971 commented 1 year ago

thank you - fixed and tweaked to add miles for the UK :)

skagmo commented 1 year ago

Good to hear. Closing.