Skip to main content

Communicate with Skoda Connect

Project description

Version PyPi Downloads PyPi

Skoda Connect

Fork of https://github.com/robinostlund/volkswagencarnet, modified to support Skoda Connect. Changes has been made to mimic the MySkoda mobile app.

This is an API library for Skoda connected cars. The library is reverse engineered by intercepting HTTP requests from MySkoda app, there is no official API. Use at your own risk. If the Skoda API changes, this library may stop working without warning.

Information

Retrieve statistics about your Skoda from the Skoda Connect online service.

  • Support for Skoda Connect services
  • Support for SmartLink
  • All (native) Skoda cars supported though newer cars (Skoda Enyaq iV) use newer API that's under development
  • If your Skoda car don't work with the MySkoda app it won't work with this integration

Please contribute improvements/bugfixes etc.

Breaking changes

  • From version 1.1.0 and onwards there has been changes to token handling, login procedure and overall mode streamlined code. Logins should now be significantly faster and reliable.

  • From version 1.0.40 and onwards there has been changes to Skoda API and this might break the integration for some cars.

  • From version 1.0.30 and onwards there might be breaking changes for the combustion heating/climatisation.

  • Parking Heater is the auxiliary/parking heater for non-PHEV vehicles. This uses the "legacy" remotestandheizung API function. Heating is what it sounds like and ventilation is used to ventilate/cool the car.

  • Auxiliary Heater is the auxiliary/parking heater for PHEV vehicles. This uses the climater API function, same as electric climatisation.

Thanks to

  • RobinostLund for initial project for Volkswagen Carnet which this is based on initially
  • Farfar for modifications related to electric engines
  • tanelvakker for modifications related to correct SPIN handling for various actions and using correct URLs also for MY2021
  • wieshka for help with Skoda Enyaq iV development
  • WebSpider and GAEvakYD from Discord for their help with fixing login form handling

Other related repositories

Installation

[venv-python3] user@localhost:~
$ pip install skodaconnect

Example

For an extensive example, please use the code found in example/example.py. When logged in the library will automatically create a vehicle object for every car registered to the account. Initially no data is fetched at all. Use the doLogin method and it will signin with the credentials used for the class constructor. Method get_vehicles will fetch vehicle basic information and create Vehicle class objects for all associated vehicles in account. To update all available data use the update_all method of the Connect class. This will call the update function for all registered vehicles, which in turn will fetch data from all available API endpoints.

Attributes

The Vehicle class contains all of the attributes with values fetched from the API. To access a single attribute, please see and use the example/example.py. This will print all available methods, variables and properties as well as a list of supported attributes for discovered car.

Methods

Vehicle, in the following example the car object is an object of Vehicle class:

car.set_charger(action = "start")                          # action = "start" or "stop"
car.set_charger_current(value=<int/str>                    # value = integer 1-255 or Maximum/Reduced (For PHEV: 252=Reduced and 254=Maximum)
car.set_charge_limit(value=<int>)                          # value = integer 0-100 in 10 increments. Valid values is PHEV: 0-50, EV: 50-100.
car.set_battery_climatisation(mode = False)                # mode = False or True
car.set_climatisation(mode = "auxilliary", spin="1234")    # mode = "auxilliary", "electric" or "off". spin is S-PIN and only needed for aux heating
car.set_climatisation_temp(temperature = 22)               # temperature = integer from 16 to 30
car.set_window_heating(action = "start")                   # action = "start" or "stop"
car.set_lock(action = "unlock", spin = "1234")             # action = "unlock" or "lock". spin = SPIN, needed for both
car.set_pheater(mode = "heating", spin = "1234")           # action = "heating", "ventilation" or "off". spin = SPIN, not needed for off
car.set_charge_limit(limit = 30)                           # limit = 0,10,20,30,40,50
car.set_timer_active(id = 1, action = "on"}                # id = 1, 2, 3, action = "on" or "off".
car.set_timer_schedule(id = 1,  schedule = dict)           # id = 1, 2, 3, see example for full information about schedule variable
car.set_refresh()                                          # Takes no arguments, will trigger force update

Connection:

session = aiohttp.ClientSession(headers={'Connection': 'keep-alive'})   # Create a aiohttp session object
conn = Connection(session, username, password, fulldebug)               #
conn.doLogin()                                                         # Attempt a login, returns true/false, variable conn.
conn.get_vehicles()                                                     # Attempts to fetch all vehicles associated to account.
conn.update_all()                                                       # Calls update for all vehicle objects.
conn.logout()                                                           # Logout from API, call for revoke of tokens.
conn.terminate()                                                        # Terminate session, calls logout().
conn.get<method>                                                        # The get methods calls on API endpoints and returns data. See example.
conn.set<method>                                                        # The set methods calls on API endpoints to set config for vehicle.

Refrain from using methods starting with _, they are intended for internal use only.

Further help or contributions

For questions, further help or contributions you can join the Discord server at https://discord.gg/826X9jEtCh

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skodaconnect-1.1.26.tar.gz (56.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skodaconnect-1.1.26-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file skodaconnect-1.1.26.tar.gz.

File metadata

  • Download URL: skodaconnect-1.1.26.tar.gz
  • Upload date:
  • Size: 56.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for skodaconnect-1.1.26.tar.gz
Algorithm Hash digest
SHA256 928c61b33460f397360c32af0f4aa766ea34ea8525e0b272e48c7934e71080f3
MD5 76b2e07e613ca1ce2a676ae4cd92a11a
BLAKE2b-256 3a8c74b348a5df520774c6c6774a34c1db7068df2f53958ad97a50735d0a7079

See more details on using hashes here.

File details

Details for the file skodaconnect-1.1.26-py3-none-any.whl.

File metadata

  • Download URL: skodaconnect-1.1.26-py3-none-any.whl
  • Upload date:
  • Size: 53.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for skodaconnect-1.1.26-py3-none-any.whl
Algorithm Hash digest
SHA256 4e51af71995cdf8774bab4ccab52446bf726702eedbf0c5f0d39980d51014bbd
MD5 22e6f730820af25ec1ffc35b9801f88c
BLAKE2b-256 5a62570f63298f31267d607b1cf8110b176654ce2e7fc62cd15ae006d3430908

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page