now i take you github fork, but i dont see the config, only i have this: sensor.tmbXXXXXk0055006_requests_remaining
state is -1
Instead of using latest code, download the latest release: https://github.com/lendy007/homeassistant-skodaconnect/releases/tag/1.0.27
Else you might get mismatched library and integration.
The github code should be working but it’s not quite ready for the public, it’s got many changes. Wait for next release.
I have very many error messages:
Could not fetch tripstatistics, error: 401, message=‘Unauthorized’, url=URL(‘https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/skoda/CZ/vehicles/xxxxx/tripdata/shortTerm?newest’)
10:06:20 AM – /usr/local/lib/python3.8/site-packages/skodaconnect/api.py (WARNING) - message first occurred at January 26, 2021, 3:33:50 PM and shows up 192 times
is that the right url from “https://msg.volkswagen.de/fs-car/bs/climatisation/v1/skoda/CZ/vehicles/xxxxxx/” ?
For your car it might be.
I have published a new beta release that should fix most problems that causes errors.
For those that are willing to try it, you can install it via HACS. If you have beta versions enabled it will appear as v1.0.30-rc.
To enable beta versions you can choose the repository, choose reinstall and then enable beta versions and install.
If there’s enough people testing it and all seems fine I will release as non-beta.
Very Very nice. Thanks for Big Update!!!
i check now the new Stuff
a new Error
Could not fetch pre-heating, error: name ‘err’ is not defined
11:25:42 AM – /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py (WARNING) - message first occurred at 11:21:40 AM and shows up 5 times
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/skodaconnect/switch.py:32
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 11:23:53 AM (1 occurrences)
Last logged: 11:23:53 AM
[140666155944688] Data refresh i not supported.
Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 135, in handle_call_service await hass.services.async_call( File “/usr/src/homeassistant/homeassistant/core.py”, line 1445, in async_call task.result() File “/usr/src/homeassistant/homeassistant/core.py”, line 1480, in _execute_service await handler.job.target(service_call) File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 204, in handle_service await self.hass.helpers.service.entity_service_call( File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 593, in entity_service_call future.result() # pop exception if have File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 664, in async_request_call await coro File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 630, in _handle_entity_call await result File “/config/custom_components/skodaconnect/switch.py”, line 32, in async_turn_on await self.instrument.turn_on() File “/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py”, line 372, in turn_on await self.vehicle.set_refresh() File “/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py”, line 438, in set_refresh raise Exception(‘Data refresh i not supported.’) Exception: Data refresh i not supported.
Thanks, minor typo in code. I will fix and publish new RC right away. This is good because pre-heater is something I can’t test myself.
Edit: Can you please send me the logging info from row with "Enabled API endpoints: " ?
It will tell me which API endpoints the integration can discover for your car.
Edit2: RC2 is released, should fix pre-heater errors. Also disabled check for “enabled service” for refresh request. It might not work as intended for some cars.
thanks for the fast new Update.
Here the Error:
Logger: skodaconnect.connection
Source: /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py:598
First occurred: 11:57:43 AM (3 occurrences)
Last logged: 11:59:44 AM
Could not fetch pre-heating, error: name ‘err’ is not defined
But now my connection to the car dont work
New Config:
username: !secret skodaconnect_octavia_username
password: !secret skodaconnect_octavia_password
spin: !secret skodaconnect_octavia_spin
scandinavian_miles: false
scan_interval:
minutes: 1
name:
tmbxxxx1k0055006: 'Octavia'
response_debug: True
Sorry, I forgot to update manifest so it installs correct updated library version Try RC3.
the error is fixed.
But, i cant cconnect to the car
Can you download the complete home assistant log and send it to me? Please redact all sensitive data first, search+replace VIN etc.
I sent you a private message
I have the same problem, how can i help?
Edit:
RC4 seems to work, thanks!!
yes, I have now tested the new version
But my car is in the service…
But I hope that for everyone the new update works. I have no more error messages
is it just me or does Lock Unlock actually work…
when I do it, its say Remote Lock/Unlock not available
i try to use (RC4) works, but i don’t have all resourcers:
I have a citigo full electric
Binary sensors
- charging_cable_connected
- charging_cable_locked
- energy_flow
- external_power
- door_closed_left_front
- door_closed_left_back
- door_closed_right_front
- door_closed_right_back
- hood_closed
- parking_light
- request_in_progress
- trunk_closed
- trunk_locked
- window_closed_left_front
- window_closed_left_back
- window_closed_right_front
- window_closed_right_back
- windows_closed
# Sensors
- battery_level
- charging_time_left
- climatisation_target_temperature
- combined_range
- combustion_range
- electric_range
- last_connected
- outside_temperature
- request_results
- requests_remaining
# Switches
- charging
- electric_climatisation
!
now, some items are wrong, others are not there (while from the Skoda app there are). If I try to add Odometer, the configuration fails.
does anyone have a full electric and can help me?
Please read the README.
The resources configuration is only there to let you restrict created entities of there’s certain entities that you don’t want.
If you leave it out all resources available will be created.
With that said it might be that your car isn’t fully supported in the current state of the integration. I don’t have a BEV so I can’t test.
If something isn’t working as expected please open an issue on github and attach full debug log with sensitive information redacted.
new Error:
Logger: skodaconnect.connection
Source: /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py:469
First occurred: 8:25:38 PM (2 occurrences)
Last logged: 10:23:15 PM
Could not fetch StoredVehicleDataResponse, error: 0
Logger: skodaconnect.connection
Source: /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py:312
First occurred: 10:23:15 PM (1 occurrences)
Last logged: 10:23:15 PM
Received “unauthorized” error while fetching data: 401, message=‘Unauthorized’, url=URL(‘https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/skoda/CZ/vehicles/XXXXXX1K0055006/tripdata/shortTerm?newest’)
Logger: homeassistant.util.logging
Source: util/logging.py:108
First occurred: 7:49:51 PM (236 occurrences)
Last logged: 11:48:38 PM
Exception in see_vehicle when dispatching ‘skodaconnect.updated’: () Traceback (most recent call last): File “/config/custom_components/skodaconnect/device_tracker.py”, line 31, in see_vehicle if instrument.state[0] is None: File “/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py”, line 279, in state state = super().state #or {} File “/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py”, line 59, in state return self.vehicle.get_attr(self.attr) File “/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py”, line 488, in get_attr return find_path(self.attrs, attr) File “/usr/local/lib/python3.8/site-packages/skodaconnect/utilities.py”, line 86, in find_path return find_path(src[path[0]], path[1:]) KeyError: ‘position’
That’s fine, the integration might miss one or two data fetch from the servers. This might be because of many things, shaky Internet connection, server busy, malformed response etc.
This one however is probably because the tokens expired at some point and the code didn’t catch it before next time it tried to refresh. I will add some more check though it should “self-heal” next update.
This error seems to be a never ending story. I’m not sure but must be some error when trying to access the position property, perhaps it’s not set correctly at all times. “self.vehicle.get_attr” should not be called at all for the position property. Will add some more checks and debugs for it.
okay thanks!
I have found a mistake @Farfar :
All sensor/binary have now been updated from the fin to the name
But one is output with fin number: sensor.xxxxxx1k0055006_requests_remaining
Is it just only me?