cyr-ius / hass-audiconnect

Adds an audi connect integration to home assistant
MIT License
32 stars 5 forks source link

Problem with intergration on statup #16

Closed RienduPre closed 1 year ago

RienduPre commented 1 year ago

Hi I have a problem stating up the intergration, see error below

Is use the latest beta 1.2.1 And the latest versions of HA Home Assistant 2023.5.3 Supervisor 2023.04.1 Operating System 10.1 Frontend-versie: 20230503.3 - latest

Logger: audiconnectpy.models Source: custom_components/audiconnect/coordinator.py:47 Integration: Audi Connect (documentation, issues) First occurred: 07:05:39 (59 occurrences) Last logged: 08:22:33

Unable to update vehicle data charger of WAUZZZGE9xxxxxxxx: 'dict' object has no attribute 'getr' Unable to update vehicle data position of WAUZZZGE9xxxxxxxx: 'str' object has no attribute 'getr'

Kolbi commented 1 year ago

I have the same issues with the latest versions. See https://github.com/cyr-ius/hass-audiconnect/issues/14#issuecomment-1537965574

cyr-ius commented 1 year ago

I reproduced, I work to find a solution

cyr-ius commented 1 year ago

Please test version beta 1.2.8

RienduPre commented 1 year ago

Thank you for your effort but still an error

Deze fout is ontstaan door een aangepaste integratie.

Logger: audiconnectpy.models Source: custom_components/audiconnect/coordinator.py:47 Integration: Audi Connect (documentation, issues) First occurred: 19:15:29 (5 occurrences) Last logged: 19:17:22

Unable to update vehicle data charger of WAUZZZGExxxxxxxxxx 'dict' object has no attribute 'getr'

Kolbi commented 1 year ago

Can confirm that it is still buggy.

Kolbi commented 1 year ago

v1.2.9 still not working.

2023-05-22 16:41:06.455 DEBUG (MainThread) [audiconnectpy.auth] REQUEST: https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/tripstatistics/v1/Audi/CH/vehicles/[VIN]/tripdata/cyclic 2023-05-22 16:41:06.562 DEBUG (MainThread) [audiconnectpy.auth] RESPONSE HEADERS: <CIMultiDictProxy('X-FS-Tracking-ID': '[ID]', 'Content-Encoding': 'gzip', 'Content-Type': 'application/vnd.vwg.mbb.TripDataList_v1_0_0+xml;charset=utf-8', 'Date': 'Mon, 22 May 2023 14:41:05 GMT', 'Server': 'www')> 2023-05-22 16:41:06.562 DEBUG (MainThread) [audiconnectpy.auth] RESPONSE: ,return_code '204' 2023-05-22 16:41:06.562 DEBUG (MainThread) [audiconnectpy.auth] JSON FIX: Accept is JSON but Response is None

RienduPre commented 1 year ago

Hi,

I got a new error now

Logger: audiconnectpy.models Source: custom_components/audiconnect/coordinator.py:47 Integration: Audi Connect (documentation, issues) First occurred: 16:48:05 (10 occurrences) Last logged: 16:52:34

Unable to update vehicle data cyclic of WAUZZZG***: 'NoneType' object is not iterable

RienduPre commented 1 year ago

Any news on my issue ?

RienduPre commented 1 year ago

I completely deleted and reinstalled the integration now (instead of updating)

Now everything seems to be working again :-)

I use version 1.0.7

RienduPre commented 1 year ago

The issue is not solved in 1.2.9.

I run 1.0.7 without issues and after I upgraded to 1.2.9 the issue is back. So don't close the issue

simonepittis commented 1 year ago

2023-06-12 10:42:28.325 DEBUG (MainThread) [audiconnectpy.auth] REQUEST: https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/tripstatistics/v1/Audi/NO/vehicles/WAUXXXXXXXXXXXX2220/tripdata/cyclic 2023-06-12 10:42:28.491 DEBUG (MainThread) [audiconnectpy.auth] RESPONSE HEADERS: <CIMultiDictProxy('X-FS-Tracking-ID': '19841f62-688c-4e2f-a7bf-4b3d6b46333f', 'Content-Encoding': 'gzip', 'Content-Type': 'application/vnd.vwg.mbb.TripDataList_v1_0_0+xml;charset=utf-8', 'Date': 'Mon, 12 Jun 2023 08:42:28 GMT', 'Server': 'www')> 2023-06-12 10:42:28.491 DEBUG (MainThread) [audiconnectpy.auth] RESPONSE: ,return_code '204' 2023-06-12 10:42:28.491 DEBUG (MainThread) [audiconnectpy.auth] JSON FIX: Accept is JSON but Response is None 2023-06-12 10:42:28.492 ERROR (MainThread) [audiconnectpy.models] Unable to update vehicle data cyclic of WAUXXXXXXXXXXXX2220: 'NoneType' object is not iterable 2023-06-12 10:42:28.494 DEBUG (MainThread) [custom_components.audiconnect.coordinator] Finished fetching audiconnect data in 10.537 seconds (success: False)