Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingen bil? #14

Open
janderek opened this issue Oct 22, 2023 · 5 comments
Open

Ingen bil? #14

janderek opened this issue Oct 22, 2023 · 5 comments

Comments

@janderek
Copy link

janderek commented Oct 22, 2023

Hej. Får desværre ingen af mine biler ind i HA efter installation af denne enhed

@jnxxx
Copy link
Owner

jnxxx commented Oct 22, 2023

Prøv at enable debug logging og se hvad den skriver.

@janderek
Copy link
Author

janderek commented Oct 22, 2023

UPDATERET
nu kommer denne fejl

den kommer med en lang `smøre

2023-10-24 21:23:12.210 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Getting access token...
2023-10-24 21:23:13.018 INFO (MainThread) [homeassistant.setup] Setting up connectedcars_io
2023-10-24 21:23:13.018 INFO (MainThread) [homeassistant.setup] Setup of domain connectedcars_io took 0.0 seconds
2023-10-24 21:23:13.022 DEBUG (MainThread) [custom_components.connectedcars_io] async_setup_entry: ['connectedcars_io'][4d9db0ade1a424d0eff97260e932eab2]
2023-10-24 21:23:13.059 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.connectedcars_io
2023-10-24 21:23:13.060 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Getting access token...
2023-10-24 21:23:13.062 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.connectedcars_io
2023-10-24 21:23:13.062 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.connectedcars_io
2023-10-24 21:23:13.902 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Got vehicle data: {"errors": [{"type": "auth-error", "message": "Failed with: JWT does not contain 3 dots"}]}
2023-10-24 21:23:13.903 WARNING (MainThread) [custom_components.connectedcars_io.sensor] Failed to add sensors: 'data'
2023-10-24 21:23:13.909 DEBUG (MainThread) [custom_components.connectedcars_io.sensor] Traceback (most recent call last):
File "/config/custom_components/connectedcars_io/sensor.py", line 51, in async_setup_entry
data = await _connectedcarsclient.get_vehicle_instances(True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 451, in get_vehicle_instances
data = await self._get_vehicle_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 745, in _get_vehicle_data
for item in self._data["data"]["viewer"]["vehicles"]:
~~~~~~~~~~^^^^^^^^
KeyError: 'data'

2023-10-24 21:23:13.909 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Getting access token...
2023-10-24 21:23:13.911 WARNING (MainThread) [homeassistant.components.sensor] Platform connectedcars_io not ready yet: 'data'; Retrying in background in 30 seconds
2023-10-24 21:23:15.154 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Got vehicle data: {"errors": [{"type": "auth-error", "message": "Failed with: JWT does not contain 3 dots"}]}
2023-10-24 21:23:15.156 WARNING (MainThread) [custom_components.connectedcars_io.binary_sensor] Failed to add sensors: 'data'
2023-10-24 21:23:15.159 DEBUG (MainThread) [custom_components.connectedcars_io.binary_sensor] Traceback (most recent call last):
File "/config/custom_components/connectedcars_io/binary_sensor.py", line 32, in async_setup_entry
data = await _connectedcarsclient.get_vehicle_instances()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 451, in get_vehicle_instances
data = await self._get_vehicle_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 745, in _get_vehicle_data
for item in self._data["data"]["viewer"]["vehicles"]:
~~~~~~~~~~^^^^^^^^
KeyError: 'data'

2023-10-24 21:23:15.159 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Getting access token...
2023-10-24 21:23:15.161 WARNING (MainThread) [homeassistant.components.binary_sensor] Platform connectedcars_io not ready yet: 'data'; Retrying in background in 30 seconds
2023-10-24 21:23:15.947 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Got vehicle data: {"errors": [{"type": "auth-error", "message": "Failed with: JWT does not contain 3 dots"}]}
2023-10-24 21:23:15.948 WARNING (MainThread) [custom_components.connectedcars_io.device_tracker] Failed to add sensors: 'data'
2023-10-24 21:23:15.951 DEBUG (MainThread) [custom_components.connectedcars_io.device_tracker] Traceback (most recent call last):
File "/config/custom_components/connectedcars_io/device_tracker.py", line 30, in async_setup_entry
data = await _connectedcarsclient.get_vehicle_instances()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 451, in get_vehicle_instances
data = await self._get_vehicle_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 745, in _get_vehicle_data
for item in self._data["data"]["viewer"]["vehicles"]:
~~~~~~~~~~^^^^^^^^
KeyError: 'data'

2023-10-24 21:23:15.952 WARNING (MainThread) [homeassistant.components.device_tracker] Platform connectedcars_io not ready yet: 'data'; Retrying in background in 30 seconds
2023-10-24 21:23:28.226 DEBUG (MainThread) [custom_components.connectedcars_io] async_setup_entry: ['connectedcars_io'][4d9db0ade1a424d0eff97260e932eab2]
2023-10-24 21:23:28.229 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.connectedcars_io
2023-10-24 21:23:28.229 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.connectedcars_io
2023-10-24 21:23:28.230 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.connectedcars_io
2023-10-24 21:23:28.234 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Getting access token...
2023-10-24 21:23:29.042 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Got vehicle data: {"errors": [{"type": "auth-error", "message": "Failed with: JWT does not contain 3 dots"}]}
2023-10-24 21:23:29.043 WARNING (MainThread) [custom_components.connectedcars_io.sensor] Failed to add sensors: 'data'
2023-10-24 21:23:29.046 DEBUG (MainThread) [custom_components.connectedcars_io.sensor] Traceback (most recent call last):
File "/config/custom_components/connectedcars_io/sensor.py", line 51, in async_setup_entry
data = await _connectedcarsclient.get_vehicle_instances(True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 451, in get_vehicle_instances
data = await self._get_vehicle_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 745, in _get_vehicle_data
for item in self._data["data"]["viewer"]["vehicles"]:
~~~~~~~~~~^^^^^^^^
KeyError: 'data'

2023-10-24 21:23:29.046 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Getting access token...
2023-10-24 21:23:29.048 WARNING (MainThread) [homeassistant.components.sensor] Platform connectedcars_io not ready yet: 'data'; Retrying in background in 30 seconds
2023-10-24 21:23:29.283 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Got vehicle data: {"errors": [{"type": "auth-error", "message": "Failed with: JWT does not contain 3 dots"}]}
2023-10-24 21:23:29.284 WARNING (MainThread) [custom_components.connectedcars_io.binary_sensor] Failed to add sensors: 'data'
2023-10-24 21:23:29.285 DEBUG (MainThread) [custom_components.connectedcars_io.binary_sensor] Traceback (most recent call last):
File "/config/custom_components/connectedcars_io/binary_sensor.py", line 32, in async_setup_entry
data = await _connectedcarsclient.get_vehicle_instances()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 451, in get_vehicle_instances
data = await self._get_vehicle_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 745, in _get_vehicle_data
for item in self._data["data"]["viewer"]["vehicles"]:
~~~~~~~~~~^^^^^^^^
KeyError: 'data'

2023-10-24 21:23:29.286 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Getting access token...
2023-10-24 21:23:29.288 WARNING (MainThread) [homeassistant.components.binary_sensor] Platform connectedcars_io not ready yet: 'data'; Retrying in background in 30 seconds
2023-10-24 21:23:29.512 DEBUG (MainThread) [custom_components.connectedcars_io.minvw.minvw] Got vehicle data: {"errors": [{"type": "auth-error", "message": "Failed with: JWT does not contain 3 dots"}]}
2023-10-24 21:23:29.514 WARNING (MainThread) [custom_components.connectedcars_io.device_tracker] Failed to add sensors: 'data'
2023-10-24 21:23:29.515 DEBUG (MainThread) [custom_components.connectedcars_io.device_tracker] Traceback (most recent call last):
File "/config/custom_components/connectedcars_io/device_tracker.py", line 30, in async_setup_entry
data = await _connectedcarsclient.get_vehicle_instances()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 451, in get_vehicle_instances
data = await self._get_vehicle_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/connectedcars_io/minvw/minvw.py", line 745, in _get_vehicle_data
for item in self._data["data"]["viewer"]["vehicles"]:
~~~~~~~~~~^^^^^^^^
KeyError: 'data'

2023-10-24 21:23:29.516 WARNING (MainThread) [homeassistant.components.device_tracker] Platform connectedcars_io not ready yet: 'data'; Retrying in background in 30 seconds

@janderek
Copy link
Author

har installeret version 1.1.0 og wupti
2 biler ;) mon det er mig der har en fejl i 1.1.1

@jnxxx
Copy link
Owner

jnxxx commented Oct 24, 2023

👍

Jeg sad netop og kikkede på det, og det så ud til at authentikationen fejlede.
Har du haft fjernet og tilføjet integrationen igen, og dermed skrevet bruger og kode igen?

Den burde give en fejl ved forkert kode, men længe siden det er testet.

@janderek
Copy link
Author

janderek commented Oct 24, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants