GithubHelp home page GithubHelp logo

skodaconnect / homeassistant-skodaconnect Goto Github PK

View Code? Open in Web Editor NEW
207.0 22.0 29.0 309 KB

Skoda Connect - A home assistant plugin to add integration with your car

License: Apache License 2.0

Python 100.00%
skoda-connect homeassistant custom-component hacs

homeassistant-skodaconnect's Introduction

Version PyPi Downloads

Maintainers and contributors needed

Keeping up with changes made by Skoda/VAG to the API requires coders with access to various cars and the ability to reverse engineer changes and new features into this project. Contributions in the form of raised issues and pull requests are much needed in order to maintain the functionality for all different models of Skoda cars.

Contributors and maintainers will naturally drift away from the project once they either no longer own a Skoda or move away from Home Assistant. As a results, there aren't really any long-term maintainers or contributors still active. But we do what we can to keep the project alive and up to date.

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

Skoda Connect - A Home Assistant custom component for Skoda Connect/MyŠKODA

If you are new to Home Assistant, please read the Home Assistant documentation first.

This is fork of robinostlund/homeassistant-volkswagencarnet modified to support Skoda Connect/MySkoda through native app API (API calls directly to vwg-connect services)

This integration for Home Assistant will fetch data from Skoda Connect servers related to your Skoda Connect enabled car. Skoda Connect never fetch data directly from car, the car sends updated data to VAG servers on specific events such as lock/unlock, charging events, climatisation events and when vehicle is parked. The integration will then fetch this data from the servers. When vehicle actions fails or return with no response, a force refresh might help. This will trigger a "wake up" call from VAG servers to the car. The scan_interval is how often the integration should fetch data from the servers, if there's no new data from the car then entities won't be updated.

This project contains the Home Assistant custom component code. It depends on https://github.com/skodaconnect/skodaconnect which provides the Python library interacting with the Skoda API.

Supported setups

This integration will only work for your car if you have Skoda Connect/MyŠKODA functionality. Cars using other third party, semi-official, mobile apps such as the "MinSkoda" from ConnectedCars in Denmark won't work. The library used for API communication is reverse engineered from the MySkoda Android app. Initial support has been added for SmartLink and newer style API cars, such as the Enyaq iV.

The car privacy settings must be set to "Share my position" for full functionality of this integration. Without this setting, if set to "Use my position", the sensors for position (device tracker), requests remaining and parking time might not work reliably or at all. Set to even stricter privacy setting will limit functionality even further.

If you encounter problems

If you encounter a problem where the integration can't be setup or if you receive an error that there's unaccepted terms or EULA, it might be because of your mobile app platform. The underlying library is built by reverse engineering the Android App behavior and thus it use the same client configurations as an Android device. If you only use the app on iPhone/iOS devices it might cause issues with this integration.

Possible workarounds:

  • Log in using the old "MySkoda Essentials" iOS/Android app (see #198). It should present an EULA or new terms and conditions to be accepted.
  • Log in through a web browser (https://www.skoda-connect.com/)

If this does not work for you and the particular problem you are facing, please open an issue and provide as detailed problem description as possible and relevant debug logs.

What is working, all cars

  • Automatic discovery of enabled functions (API endpoints).
  • Charging plug connected
  • Charging plug locked
  • Charger connected (external power)
  • Battery level
  • Electric range
  • Model image, URL in 1080 resolution
  • Start/stop charging
  • Start/stop Electric climatisation, window_heater and information
  • Charger maximum current (1-16 tested OK for Superb iV, Enyaq limited to "Maximum"/"Reduced")
  • Set departure timers (switch on/off and service call to set parameters)
  • Odometer and service info
  • Lock, windows, trunk, hood, sunroof and door status
  • Position - gps coordinates, if vehicle is moving, time parked
  • Device tracker - entity is set to 'not_home' when car is moving

Additional information/functions VW-Group API ("All" Skodas except Enyaq iV so far)

  • Fuel level, range, adblue level
  • Last trip info
  • start/stop auxiliary climatisation for PHEV cars
  • Lock and unlock car
  • Parking heater heating/ventilation (for non-electric cars)
  • Requests information - latest status, requests remaining until throttled
  • Trigger data refresh - this will trigger a wake up call so the car sends new data

Additional information/functions Skoda native API (Enyaq iV so far)

  • Charging power (Watts)
  • Charging rate (km per hour)
  • Charging time left (minutes)
  • Seat heating (???)

Under development and BETA functionality (may be buggy)

  • Config flow multiple vehicles from same account
  • SmartLink:
    • Fuel level
    • Odometer
    • Service inspection distance
    • Service inspection time
    • Oil service distance
    • Oil service time
  • Skoda Enyaq iV:
    • Start/stop charging (switch)
    • Set charger max current (service call)
    • Set charge limit (service call)

What is NOT working

  • Switches doesn't immediately update "request results" and "request_in_progress". Long running requests will not show up until completed which might take up to 3-5 minutes.
  • Config flow convert from yaml config

Breaking changes

  • Combustion heater/ventilation is now named parking heater so it's not mixed up with aux heater for PHEV
  • Many resources have changed names to avoid confusion in the code, some have changed from sensor to switch and vice versa. Sensors with trailing "_km" in the name has been renamed to "_distance" for better compatibility between imperial and non-imperial units.
  • Major code changes has been made for requests handling.
    • request_in_progress is now a binary sensor instead of a switch
    • force_data_refresh is a new switch with the same functionality as "request_in_progress" previously, it will force refresh data from car

Installation

Install with HACS (recomended)

If you have HACS (Home Assistant Community Store) installed, just search for Skoda Connect and install it direct from HACS. HACS will keep track of updates and you can easly upgrade to the latest version when a new release is available.

If you don't have it installed, check it out here: HACS

Manual installation

Clone or copy the repository and copy the folder 'homeassistant-skodaconnect/custom_component/skodaconnect' into '[config dir]/custom_components'. Install required python library with (adjust to suit your environment):

pip install skodaconnect

Enable debug logging

For comprehensive debug logging you can add this to your <config dir>/configuration.yaml:

logger:
  default: info
  logs:
    skodaconnect.connection: debug
    skodaconnect.vehicle: debug
    custom_components.skodaconnect: debug
    custom_components.skodaconnect.climate: debug
    custom_components.skodaconnect.lock: debug
    custom_components.skodaconnect.device_tracker: debug
    custom_components.skodaconnect.switch: debug
    custom_components.skodaconnect.binary_sensor: debug
    custom_components.skodaconnect.sensor: debug
  • skodaconnect.connection: Set the debug level for the Connection class of the Skoda Connect library. This handles the GET/SET requests towards the API

  • skodaconnect.vehicle: Set the debug level for the Vehicle class of the Skoda Connect library. One object created for every vehicle in account and stores all data.

  • skodaconnect.dashboard: Set the debug level for the Dashboard class of the Skoda Connect library. A wrapper class between hass component and library.

  • custom_components.skodaconnect: Set debug level for the custom component. The communication between hass and library.

  • custom_components.skodaconnect.XYZ Sets debug level for individual entity types in the custom component.

Configuration

Configuration in configuration.yaml is now deprecated and can interfere with setup of the integration. To configure the integration, go to Configuration in the side panel of Home Assistant and then select Integrations. Click on the "ADD INTEGRATION" button in the bottom right corner and search/select skodaconnect. Follow the steps and enter the required information. Because of how the data is stored and handled in Home Assistant, there will be one integration per vehicle. Setup multiple vehicles by adding the integration multiple times.

Configuration options

The integration options can be changed after setup by clicking on the "CONFIGURE" text on the integration. The options available are:

  • Poll frequency The interval (in seconds) that the servers are polled for updated data. Several users have reported being rate limited (HTTP 429) when using 60s or lower. It is recommended to start with a value of 120s or 180s. See #215.

  • S-PIN The S-PIN for the vehicle. This is optional and is only needed for certain vehicle requests/actions (auxiliary heater, lock etc).

  • Mutable Select to allow interactions with vehicle, start climatisation etc.

  • Full API debug logging Enable full debug logging. This will print the full respones from API to homeassistant.log. Only enable for troubleshooting since it will generate a lot of logs.

  • Resources to monitor Select which resources you wish to monitor for the vehicle.

  • Distance/unit conversions Select if you want to convert distance/units.

Automations

In this example we are sending notifications to an ios device. The Android companion app does not currently support dynamic content in notifications (maps etc.)

Save these automations in your automations file <config dir>/automations.yaml

Use input_select to change pre-heater duration

First create a input_number, via editor in configuration.yaml or other included config file, or via GUI Helpers editor. It is important to set minimum value to 10, maximum to 60 and step to 10. Otherwise the service call might not work.

# configuration.yaml
input_number:
  pheater_duration:
    name: "Pre-heater duration"
    initial: 20
    min: 10
    max: 60
    step: 10
    unit_of_measurement: min

Create the automation, in yaml or via GUI editor. You can find the device id by going to Settings->Devices & Services and then clicking on the device for the Skodaconnect vehicle. The device ID will show in the web browser address bar after "/config/devices/device/". The ID can also be found by using the GUI services editor under developer tools. Choose one of the skodaconnect services and choose your vehicle. Change to YAML mode and copy the device ID.

# automations.yaml
- alias: Pre-heater duration
  description: ""
  trigger:
    - platform: state
      entity_id: input_number.pheater_duration
  condition: []
  action:
    - service: skodaconnect.set_pheater_duration
      data_template:
        device_id: <Your Device ID for vehicle>
        duration: "{{ (states('input_number.pheater_duration') | float ) | round(0) }}"
  mode: single

Charge rate guesstimate

Thanks to @haraldpaulsen An estimated charge rate template sensor based on battery capacity and reported time left. Replace with the name of your vehicle and with battery capacity in Wh.

template:
  - sensor:
    - name: "Charge speed guesstimate"
      state: >
        {% if is_state('switch.skoda_<name>_charging', 'on') %}
          {% set battery_capacity = <battery-size-in-kwh> | int %}
          {% set charge = { "remaining": states('sensor.skoda_<name>_minimum_charge_level') | int - states('sensor.skoda_<name>_battery_level') | int } %}
          {% set timeleft = states('sensor.skoda_<name>_charging_time_left') | int %}
          {% set chargeleft = battery_capacity * charge.remaining / 100  %}
          {% set chargespeed = chargeleft / (timeleft / 60) %}
          {{ chargespeed | round (1) }}
        {% else %}
          0
        {% endif %}
      unit_of_measurement: "kW"
      state_class: measurement

Get notification when your car is on a new place and show a map with start position and end position

Note: only available for iOS devices since Android companion app does not support this yet. This might be broken since 1.0.30 when device_tracker changed behaviour.

- id: notify_skoda_position_change
  description: Notify when position has been changed
  alias: Skoda position changed notification
  trigger:
    - platform: state
      entity_id: device_tracker.kodiaq
  condition: template
    condition: template
    value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
  action:
    - service: notify.ios_my_ios_device
      data_template:
        title: "Kodiaq Position Changed"
        message: |
          🚗 Skoda Car is now on a new place.
        data:
          url: /lovelace/car
          apns_headers:
            'apns-collapse-id': 'car_position_state_{{ trigger.entity_id.split(".")[1] }}'
          push:
            category: map
            thread-id: "HA Car Status"
          action_data:
            latitude: "{{trigger.from_state.attributes.latitude}}"
            longitude: "{{trigger.from_state.attributes.longitude}}"
            second_latitude: "{{trigger.to_state.attributes.latitude}}"
            second_longitude: "{{trigger.to_state.attributes.longitude}}"
            shows_traffic: true

Announce when your car is unlocked but no one is home

- id: 'notify_skoda_car_is_unlocked'
  alias: Skoda is at home and unlocked
  trigger:
    - entity_id: binary_sensor.vw_carid_external_power
      platform: state
      to: 'on'
      for: 00:10:00
  condition:
    - condition: state
      entity_id: lock.kodiaq_door_locked
      state: unlocked
    - condition: state
      entity_id: device_tracker.kodiaq
      state: home
    - condition: time
      after: '07:00:00'
      before: '21:00:00'
  action:
    # Notification via push message to smartphone
    - service: notify.device
      data:
        message: "The car is unlocked!"
        target:
          - device/my_device
    # Notification via smart speaker (kitchen)
    - service: media_player.volume_set
      data:
        entity_id: media_player.kitchen
        volume_level: '0.6'
    - service: tts.google_translate_say
      data:
        entity_id: media_player.kitchen
        message: "My Lord, the car is unlocked. Please attend this this issue at your earliest inconvenience!"

homeassistant-skodaconnect's People

Contributors

asd20752 avatar chodorenko avatar christophcaina avatar dvx76 avatar farfar avatar jd1 avatar laurenshoogendijk avatar lendy007 avatar loeffelpan avatar maeklund86 avatar misa1515 avatar mzorzy avatar ornellino avatar stefanuc111 avatar webspider avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homeassistant-skodaconnect's Issues

Something went wrong when refreshing VW-Group API tokens,

Describe the bug
Lately I've been getting the following error message several times a day. Is this because of the addon or is it on the skoda side?
SkodaConnect v1.0.42-rc2, the addon seems to work fine.

Logger: skodaconnect.connection
Source: /usr/local/lib/python3.9/site-packages/skodaconnect/connection.py:1411
First occurred: 12:59:04 (2 occurrences)
Last logged: 12:59:07

Something went wrong when refreshing VW-Group API tokens. <!doctype html><html lang="en"><head><title>HTTP Status 403 – Forbidden</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 403 – Forbidden</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Access Denied</p><p><b>Description</b> The server understood the request but refuses to authorize it.</p><hr class="line" /><h3>Server Unknow/1.0.00</h3></body></html>

Installation:

System Health

version core-2021.7.3
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.9.5
os_name Linux
os_version 5.10.45
arch x86_64
timezone Europe/Amsterdam
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 5000
Installed Version 1.13.2
Stage running
Available Repositories 851
Installed Repositories 19
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 6.1
update_channel stable
supervisor_version supervisor-2021.06.8
docker_version 20.10.6
disk_total 30.8 GB
disk_used 13.7 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons File editor (5.3.2), Samba share (9.5.1), Zigbee2mqtt (1.20.0-1), MariaDB (2.4.0), Assistant Relay BETA (4.0.0b2), TimescaleDB (1.1.6), DSMR Reader (0.5.0), Terminal & SSH (9.1.3)
Lovelace
dashboards 1
resources 10
views 5
mode storage

v1.0.40-RC5: VW-Group API token could not be verified!

Describe the bug
On starting HA I see this error in the log. I can normally use the web pages and have agreed to the rules.

Latest working release
I never succeded to make it work. Vehicle is Skoda Citigoe iv

Debug logs
Logger: skodaconnect.connection
Source: /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py:429
First occurred: 7:37:31 PM (1 occurrences)
Last logged: 7:37:31 PM

VW-Group API token could not be verified!

Installation:

  • Home Assistant variant: Core, latest version (2020.6.2)
  • Python version: 3.8

Additional context

Services in need of spin doesn't work

Describe the bug
I cannot make any calls that requires the SPIN, like turn on the heater or lock doors. I know the SPIN is corect, checked it with original app. But the error message suggests it is wrong!?

Latest working release
New user

Debug logs

2021-02-27 14:45:07 INFO (MainThread) [homeassistant.components.automation.carheater_start] Initialized trigger Carheater start,
2021-02-27 14:46:26 ERROR (MainThread) [skodaconnect.connection] Could not generate security token (maybe wrong SPIN?), error: non-hexadecimal number found in fromhex() arg at position 3,
2021-02-27 14:46:26 WARNING (MainThread) [skodaconnect.vehicle] Failed to lock vehicle - non-hexadecimal number found in fromhex() arg at position 3,
2021-02-27 14:46:26 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [1798031200] Lock action failed,
Traceback (most recent call last):,
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 136, in handle_call_service,
    await hass.services.async_call(,
  File "/usr/src/homeassistant/homeassistant/core.py", line 1455, in async_call,
    task.result(),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1490, 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 595, 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 632, in _handle_entity_call,
    await result,
  File "/config/custom_components/skodaconnect/lock.py", line 36, in async_lock,
    await self.instrument.lock(),
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 321, in lock,
    return await self.vehicle.set_lock('lock', self.spin),
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 475, in set_lock,
    raise Exception('Lock action failed'),
Exception: Lock action failed,

Installation:

  • Home Assistant variant: Hass 2021.3.0 on Docker
  • Python version 3.8

Additional context
My config:

skodaconnect: !include skodaconnect.yaml

#skodaconnect.yaml
username: !secret skoda_user
password: !secret skoda_pass
spin: !secret skoda_spin
scandinavian_miles: false
scan_interval:
  minutes: 1
name:
  tmblsfefs833388: 'Kodiaq'

v1.0.40-RC5: vehicle-status api returns 404

Describe the bug
Recently I started seeing 404 errors being generated by the skodaconnect integration. After some investigation it appears that the api has changed and as a result the car is detected as a smartlink vehicle however the api it is trying to access does not exist.

Al though the integration does continue start up there is no actual data being retrieved so all the sensors stay unavailable.

Debug logs
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.connection] Token for smartlink verified OK.
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.connection] Going to call vehicle updates
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.connection] Adding vin for data refresh
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.connection] Calling update function for all vehicles
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.vehicle] API endpoints: {'vehicle_status': {'active': True}}
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/vehicle-status/*vin*"
2021-06-08 10:59:48 ERROR (MainThread) [skodaconnect.connection] Got unhandled error from server: 404
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.connection] Going to call vehicle updates
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.connection] Adding vin for data refresh
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.connection] Calling update function for all vehicles
2021-06-08 10:59:48 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v1/vehicle-status/*vin*"
2021-06-08 10:59:48 ERROR (MainThread) [skodaconnect.connection] Got unhandled error from server: 404
2021-06-08 10:59:48 DEBUG (MainThread) [custom_components.skodaconnect] Updating data from Skoda Connect
2021-06-08 10:59:48 INFO (MainThread) [custom_components.skodaconnect] Adding data for VIN: vin from Skoda Connect

Installation:

  • Hass OS
  • Python 3.8.9
  • skodaconnect 1.0.40rc5

Allow int amp values for charging speeds other than reduced and maximum

Is your feature request related to a problem? Please describe.

Hi I've a skoda citigo and I would like to select charging speed that I want but I've saw that currently it allow only "maximum" and "reduced" string values which map to 254 and 252, it would be nice to allaow also to take directly int values, infact I've tested by changing the code and if you pass a value from 5 to 32 (for skoda citigo) to the api it set directly the current to the correspond value

Describe the solution you'd like

Somethig like that:

    async def set_current(call):
        """Prepare data and modify for data call."""
        try:
            current = call.data.get('current')
            if current == "maximum":
                current = 254
            elif current == "reduced":
                current = 252
            _LOGGER.debug("Try to fetch object for VIN: %s" % call.data.get("vin", ""))
            vin = call.data.get("vin")
            car = connection.vehicle(vin)
            _LOGGER.debug(f"Found car: {car.nickname}")
            _LOGGER.debug(f"Set charger current to {call.data.get('current')} ({current})")
            await car.set_charger_current(current)
            async_dispatcher_send(hass, SIGNAL_STATE_UPDATED)
            return
        except Exception as error:
            _LOGGER.warning(f"Couldn't execute, error: {error}")
            async_dispatcher_send(hass, SIGNAL_STATE_UPDATED)
        raise Exception(f"Service call failed")    
SERVICE_SET_MAX_CURRENT_SCHEMA = vol.Schema(
    {
        vol.Required("vin"): cv.string,
        vol.Required("current"): vol.Any(vol.In(range(5, 33)), vol.In([ "maximum", "reduced"])),
    }
)

Login failed, token exchange failed

Describe the bug
After removing skodaconnect from HACS, restarting, installing v1.0.42-rc2 and restarting I'm getting this error in the log:
10:53:42 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, Token exchange failed 10:53:42 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working

In configuration.yaml I have:
skodaconnect: username: !secret skoda_username password: !secret skoda_password scan_interval: minutes: 5

And looking for Integration gave these results:
image

I have checked creds and they work on skoda-connect.com

Any ideas?

Latest working release
v1.0.40-RC5

Debug logs
See above

Stopped starting

Hi, since a few days the integrations stopped working and on startup it takes ages and slows down the full Home Assistant:

2021-02-16 21:38:45 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: skodaconnect
2021-02-16 21:38:46 WARNING (MainThread) [homeassistant.setup] Setup of skodaconnect is taking over 10 seconds.
2021-02-16 21:39:45 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: skodaconnect

Logger: homeassistant.setup
Source: setup.py:215
First occurred: 21:43:36 (1 occurrences)
Last logged: 21:43:36

Setup of skodaconnect is taking longer than 300 seconds. Startup will proceed without waiting any longer

Did anybody else notify similar problems? I actually don't know how to debug this issue...

Thanks, Michael

Difficulties with logon

Hi,
I have tried to install your integration via HACS.

Unfortunatly it fails logging onto the Skoda Cconnect Service.

Can you guide me in the right direction?

Best regards
Orm

Skærmbillede 2021-02-24 kl  18 00 58

Skoda Connect does not show up under Integrations

Describe the bug
Skoda Connect does not show up under Integrations after installed via HACS.

Latest working release
If the problem started after updating to a new release, please state latest working release.

Debug logs
If applicable, add debug logs. See README on how to enable debug logs with response debugging.

Installation:

  • Home Assistant variant: [e.g. Hass OS, Docker, Core, Supervised]
    Home Assistant OS 5.12
    Supervisor-2021.02.11
    Core-2021.2.3

  • Python version [e.g. 3.7, 3.8]

  • Python library versions ["python3 -m pip list"]

Additional context
Add any other context about the problem here.

Issue after installing v1.0.42-RC1

Describe the bug
After updating to the lateste RC1

Latest working release
v1.0.40-RC5

Debug logs
2021-06-30 16:08:15 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: unknown error Traceback (most recent call last): File "/srv/homeassistant/venv_3.8.9/lib/python3.8/site-packages/homeassistant/setup.py", line 200, in _async_setup_component component = integration.get_component() File "/srv/homeassistant/venv_3.8.9/lib/python3.8/site-packages/homeassistant/loader.py", line 490, in get_component cache[self.domain] = importlib.import_module(self.pkg_path) File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 779, in exec_module File "<frozen importlib._bootstrap_external>", line 916, in get_code File "<frozen importlib._bootstrap_external>", line 846, in source_to_code File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/home/homeassistant/.homeassistant/custom_components/skodaconnect/__init__.py", line 254 return True ^ IndentationError: unexpected indent

Installation:

  • Home Assistant variant: core-2021.6.3
  • Python version 3.8
  • Python library versions ["python3 -m pip list"]

Additional context
Not appliccable

Seat Connect wont load on HA 2021.6

Describe the bug
Seat Connect wont load on HA 2021.6 (no issue reporting on that fork so i hope this is ok?)

Debug logs
The custom integration 'seatconnect' does not have a valid version key (None) in the manifest file and was blocked from loading. See https://developers.home-assistant.io/blog/2021/01/29/custom-integration-changes#versions for more details

Additional context
I think this is due to HA now demands an version manifest for third party integrations?

Charging doesn't start and help with requests

Hi,

i'm using your integration and it works fine mostly. But sometimes charging doesn't start as supposed. Debug-Log is below.
The automation changes the charging current (which works) and should start charging. But it doesn't.

Furthermore I noticed, that sensor "request in progress" does not change to "connected" with every service call to your integration. And the "request result" sensor doen't change to "in progress", too.

I was wondering how to make my automation more "robust" to request-failures. So I have some questions:

  1. Is that behaviour above by design? In which cases those sensors should change?
  2. Is and service call to your switch or your own service call finished when it ends? Or is it just called when home assistant continues?
  3. Any way to really check if the further request is finished and successful?

I would appreciate any help with this.
And with the charge-start problem.

2021-02-26 11:15:00 DEBUG (MainThread) [custom_components.skodaconnect] Try to fetch object for VIN: tmbjw9np8l7030632
2021-02-26 11:15:00 DEBUG (MainThread) [custom_components.skodaconnect] Found car: Superb iV
2021-02-26 11:15:00 DEBUG (MainThread) [custom_components.skodaconnect] Set charger current to reduced (252)
2021-02-26 11:15:11 INFO (MainThread) [homeassistant.components.automation.laden_starten_reduziert_winter] Laden starten - Reduziert (Winter): Choose at step 2: choice 1: Running automation actions
2021-02-26 11:15:11 INFO (MainThread) [homeassistant.components.automation.laden_starten_reduziert_winter] Laden starten - Reduziert (Winter): Choose at step 2: choice 1: Executing step call service
2021-02-26 11:15:11 DEBUG (MainThread) [custom_components.skodaconnect.switch] Turning ON charging.
2021-02-26 11:15:21 INFO (MainThread) [homeassistant.components.automation.laden_starten_reduziert_winter] Laden starten - Reduziert (Winter): Choose at step 2: choice 1: Executing step call service
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of request_results
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of distance
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of battery_level
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of fuel_level
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of service_inspection_distance
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of oil_inspection_distance
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of last_connected
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of charging_time_left
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of electric_range
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combustion_range
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of combined_range
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of charge_max_ampere
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of climatisation_target_temperature
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_speed
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_electric_consumption
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_average_fuel_consumption
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_duration
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of trip_last_length
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of outside_temperature
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.sensor] Getting state of requests_remaining
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of external_power
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of energy_flow
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of parking_light
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of door_locked
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of door_closed_left_front
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of door_closed_right_front
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of door_closed_left_back
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of door_closed_right_back
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of trunk_locked
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of trunk_closed
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of hood_closed
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of charging_cable_connected
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of charging_cable_locked
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of sunroof_closed
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of windows_closed
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of window_closed_left_front
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of window_closed_left_back
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of window_closed_right_front
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of window_closed_right_back
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.binary_sensor] Getting state of request_in_progress
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.lock] Getting state of door_locked
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.lock] Getting state of trunk_locked
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.switch] Getting state of refresh_data
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.switch] Getting state of window_heater
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.switch] Getting state of climatisation_without_external_power
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.switch] Getting state of electric_climatisation
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.switch] Getting state of auxiliary_climatisation
2021-02-26 11:15:21 DEBUG (MainThread) [custom_components.skodaconnect.switch] Getting state of charging

Platform intermittently won't setup.

Describe the bug
Platform doesn't setup if restart HA too frequently. Once in a 24 hour period seems to be the maximum. Is this a limitation of the platform, or can it be fixed?

Latest working release
Never worked

Debug logs
Unable to prepare setup for platform skodaconnect.device_tracker: Unable to set up component.
20:32:04 – (ERROR) setup.py - message first occurred at 20:32:04 and shows up 41 times
Setup failed for skodaconnect: Integration failed to initialize.
20:30:59 – (ERROR) setup.py
Could not login to Skoda Connect, please check your credentials and verify that the service is working
20:30:59 – (WARNING) skodaconnect (custom integration)
Could not update information: 'serviceInfo'
20:30:59 – (WARNING) /usr/local/lib/python3.9/site-packages/skodaconnect/connection.py
Could not fetch operation list, HTTP status code: 401
20:30:59 – (WARNING) /usr/local/lib/python3.9/site-packages/skodaconnect/connection.py
Received "unauthorized" error while fetching data: 401, message='Unauthorized', url=URL('https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/operationlist/v3/vehicles/XXXXXXXX/users/XXXXXXX?scope=ALL')
20:30:59 – (WARNING) /usr/local/lib/python3.9/site-packages/skodaconnect/connection.py
Setup of skodaconnect is taking over 10 seconds.
20:30:37 – (WARNING) /usr/local/lib/python3.9/asyncio/events.py - message first occurred at 20:30:14 and shows up 2 times

Installation:

  • HA Docker 2021.7.3

Add extra info from Skoda Enyaq

DEBUG:skodaconnect.connection:Request for "https://api.connect.skoda-auto.cz/api/v1/charging/xxxx/status" returned with status code [200], response: {'plug': {'connectionState': 'Connected', 'lockState': 'Locked'}, 'charging': {'state': 'Charging', 'remainingToCompleteInSeconds': 7800, 'chargingPowerInWatts': 10500.0, 'chargingRateInKilometersPerHour': 60.0, 'chargingType': 'Ac', 'chargeMode': 'MANUAL'}, 'battery': {'cruisingRangeElectricInMeters': 206000, 'stateOfChargeInPercent': 47}}
DEBUG:skodaconnect.connection:Got vehicle data {'plug': {'connectionState': 'Connected', 'lockState': 'Locked'}, 'charging': {'state': 'Charging', 'remainingToCompleteInSeconds': 7800, 'chargingPowerInWatts': 10500.0, 'chargingRateInKilometersPerHour': 60.0, 'chargingType': 'Ac', 'chargeMode': 'MANUAL'}, 'battery': {'cruisingRangeElectricInMeters': 206000, 'stateOfChargeInPercent': 47}}

RC2 works fine with me, however I am still seeing some attributes you could add when charging like:

charingPowerInWatts, charingRateInKilometersPerHour.

Could you add them ?

Login problems

Describe the bug
Integration does not work because login is failing

Latest working release
I had v1.0.30 and tried to update to 1.0.38, which did not solve the issue

Debug logs

Could not login to Skoda Connect, please check your credentials and verify that the service is working
8:39:32 AM – (WARNING) skodaconnect - message first occurred at April 7, 2021, 11:05:19 PM and shows up 565 times

Login failed for skoda account, 'NoneType' object is not subscriptable
8:39:32 AM – (ERROR) /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py - message first occurred at April 7, 2021, 11:05:19 PM and shows up 565 times

Installation:

  • Home Assistant variant: Hass OS
  • Python version 3.8.7
  • Python library versions ???

Additional context
Is this problem solved in current RC versions? Should I update to beta release?

Failed to set parking heater mode to off[BUG]

Environment

  • skodaconnect release with the issue: v1.0.30-rc7
  • Last working homeassistant-skodaconnect release (if known): v1.0.30-rc5
  • Home Assistant Core release with the issue: core-2021.1.5
  • Operating environment (Home Assistant/Supervised/Docker/venv): Home Assistant OS 5.10
  • Car model and year: Super 2018
  • Valid We Connect subscription: Yes
  • Debug logs enabled: Yes

Describe the bug

When attempting to deactivate the preheater an error occurs stating that there is an invalid or no response and then failure to execute.

Steps to Reproduce

Toggle the switch for disabling the pre heater.

Expected behavior

It should be deactivated

Screenshots

Screenshot 2021-02-01 at 10 46 37
Some additional log ocurrances too

Traceback/Error logs

DEBUG (MainThread) [skodaconnect.connection] HTTP POST "https://msg.volkswagen.de/fs-car/bs/rs/v1/skoda/CZ/vehicles/vin-goes-here/action"
ERROR (MainThread) [skodaconnect.connection] Failure to execute:
WARNING (MainThread) [skodaconnect.vehicle] Failed to set parking heater mode to off - Invalid or no response
  File "/config/custom_components/skodaconnect/switch.py", line 38, in async_turn_off
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 530, in turn_off
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 407, in set_pheater

Additional context

[BUG] Invalid config for [skodaconnect]

Hi all and thanks for the very nice Plugin!

But i have two resources with Error:

- vehicleMoving
- parkingTime

Invalid config for [skodaconnect]

After i disable this two, the Plugin works.

Thanks for help.

Average fuel consumption sensor unavailable after latest update

Describe the bug
A clear and concise description of what the bug is.

Average fuel consumption sensor unavailable after latest update

Latest working release
If the problem started after updating to a new release, please state latest working release.

Debug logs
If applicable, add debug logs. See README on how to enable debug logs with response debugging.

Installation:

  • Home Assistant variant: [e.g. Hass OS, Docker, Core, Supervised]
  • Python version [e.g. 3.7, 3.8]
  • Python library versions ["python3 -m pip list"]

Additional context
Add any other context about the problem here.

Config migration not working in v1.0.42-RC2

Describe the bug
None of the entities are working, no errors are being shown (see screenshot)
image

Latest working release
v1.0.40-RC5

Additional context
I've downgraded back to RC5 and now it works again
image

Switch for charger_max_ampere

I would like to change the ability to adjust charger_max_ampere for an automation with my solar battery.

Is this possible?

Integration can not connect to Skoda Connect

I have installed the integration via HACS. I get this error in the log:

image

Here is part of my config file:

image

I can login to Skoda Connect webpage (although my car doesnt have Skoda Connect) and I use the MySkoda app on my phone and the phone app is working fine. I have the same user/pass for both Skoda Connect and MySkoda
What to do??

No ‘version’ key in the manifest file

“No ‘version’ key in the manifest file for custom integration ‘skodaconnect’. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of ‘skodaconnect’”

No way to set charging speed on departure schedules

Is your feature request related to a problem? Please describe.

Currently there is no way to set the charging speed and the off-peak period and the function (Charging or Clima), it would be nice to add this params to the skodaconnect.set_departure_schedule service

service: skodaconnect.set_departure_schedule
data:
  device_id: b4c63460cb2a42b8b6811bf24eab2782
  id: 1
  enabled: true
  recurring: true
  time: '8:30:00'
  days: yyyyyyy

Describe the solution you'd like

service: skodaconnect.set_departure_schedule
data:
  device_id: b4c63460cb2a42b8b6811bf24eab2782
  id: 1
  enabled: true
  recurring: true
  time: '8:30:00'
  days: yyyyyyy
  off_peak_start: '11:30:00'
  off_peak_end: '7:30:00'
  charging_speed: max
  clima: true
  charging: true

Describe alternatives you've considered

An alternative wolud be to create a new service to set only this params

Unable to login

Describe the bug
The integration can't login into the Skoda portal

Latest working release
last release

Debug logs
Logger: skodaconnect.connection
Source: /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py:283
First occurred: 12:04:07 PM (12 occurrences)
Last logged: 12:15:19 PM

Login failed for skoda account, 'NoneType' object is not subscriptable

Installation:

  • Home Assistant variant: Docker/Supervised
  • Python version 3.8
  • Python library versions ["long list"]

Additional context
Add any other context about the problem here.

Errors after update to 1.0.23

Environment

  • skodaconnect release with the issue: 1.0.23
  • Last working homeassistant-skodaconnect release (if known): 1.0.19
  • Home Assistant Core release with the issue: 2020.12.1
  • Operating environment (Home Assistant/Supervised/Docker/venv): Home Assistant
  • Car model and year: Citigo eV 2020
  • Valid We Connect subscription: Yes
  • Debug logs enabled: Yes

Describe the bug

Errors in the log

Steps to Reproduce

Restart, check logs

Expected behavior

Not sure if this impact functionality. I was actually checking logs for my own integration I maintain, and I noticed the errors below.

Screenshots

Traceback/Error logs

  File "/usr/local/lib/python3.8/site-packages/dashboardskoda.py", line 126, in state
    if val and self.unit and "mi" in self.unit and self.convert == True:
AttributeError: 'Sensor' object has no attribute 'convert'

  File "/usr/local/lib/python3.8/site-packages/dashboardskoda.py", line 134, in state
    elif val and self.unit and "°C" in self.unit and self.convert == True:
AttributeError: 'Sensor' object has no attribute 'convert'

Exception in async_write_ha_state when dispatching 'skodaconnect.updated': () Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state sstate = self.state File "/config/custom_components/skodaconnect/sensor.py", line 27, in state return self.instrument.state File "/usr/local/lib/python3.8/site-packages/dashboardskoda.py", line 134, in state elif val and self.unit and "°C" in self.unit and self.convert == True: AttributeError: 'Sensor' object has no attribute 'convert'
Exception in async_write_ha_state when dispatching 'skodaconnect.updated': () Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state sstate = self.state File "/config/custom_components/skodaconnect/sensor.py", line 27, in state return self.instrument.state File "/usr/local/lib/python3.8/site-packages/dashboardskoda.py", line 126, in state if val and self.unit and "mi" in self.unit and self.convert == True: AttributeError: 'Sensor' object has no attribute 'convert'

Additional context

Departure schedule switches not working in v1.0.42-RC2

Describe the bug

trying to switch on/off departure times produces "name 'data' is not defined"

Debug logs
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 760, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call await result File "/config/custom_components/skodaconnect/switch.py", line 51, in async_turn_on await self.instrument.turn_on() File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 604, in turn_on await self.vehicle.set_timer_active(id=1, action="on") File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 375, in set_timer_active data['id'] = id NameError: name 'data' is not defined

Installation:

  • Home Assistant variant: Hass OS
  • Python version 3.8

Login doesnt work for HA2021.6

Describe the bug
After setting up the integration for the first time, a login error occurs

Debug logs
2021-07-01 23:57:32 DEBUG (MainThread) [skodaconnect.connection] VW-Group API token verified OK.
2021-07-01 23:57:32 DEBUG (MainThread) [skodaconnect.connection] Fetching vehicles associated with account
2021-07-01 23:57:32 DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles"
2021-07-01 23:57:32 INFO (MainThread) [custom_components.hacs] Restore started
2021-07-01 23:57:32 INFO (MainThread) [custom_components.hacs] Restore done
2021-07-01 23:57:32 INFO (MainThread) [custom_components.hacs] Setup task HacsSetupTask.SENSOR
2021-07-01 23:57:32 INFO (MainThread) [custom_components.hacs] Stage changed: HacsStage.WAITING
2021-07-01 23:57:32 INFO (MainThread) [custom_components.hacs] Setup complete, waiting for Home Assistant before startup tasks starts
2021-07-01 23:57:32 INFO (MainThread) [custom_components.hacs] HACS is enabled
2021-07-01 23:57:32 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.hacs
2021-07-01 23:57:32 DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" returned with status code [200]
2021-07-01 23:57:32 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object has no attribute 'get'
2021-07-01 23:57:32 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working
2021-07-01 23:57:32 INFO (MainThread) [homeassistant.setup] Setup of domain skodaconnect took 3.6 seconds
2021-07-01 23:57:32 ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

Installation:

  • Home Assistant variant: Hass OS 5.13
  • Python version: Whatever comes with Hass OS

Additional context
This is my first attempt to get this working.
The skoda-connect.com portal shows my Enyaq iV 80, and the app does as well.

I'm not afraid of some debugging or manual python calls, just wanting to get this to work 👯‍♂️

No longer connected

HI,

It is a very nice job you have done with this integration.

But for some days now my skoda just shows away and alle other entitys unavaliable .
The logs says unable to initiate.
I have now uninstalled it via HACS to try a reinstall, but now my HACS cant find th Skoda connect integration.

Any help apriciated
\FWH

Sensors for Windows closed report open

Using 1.0.40-rc2
In ha the state for all "windows closed" is open.
In MySKODA I only get a summary that doors/windows are all closed so don't know any details from there.

Great work with this integration!

Sorry about that, in the new webpage of Skoda connect I see 3 dashes on the windows part, so it seems my car don't have window sensors.
You could disregard this post!

Login problems

Hello,
Since today after a reboot of my homeassitant i get the following errors;

**Could not login to Skoda Connect, please check your credentials and verify that the service is working
17:30:18 – skodaconnect (WARNING) - Meddelandet inträffade först 17:22:10 och har hänt 9 gånger

Login failed for skoda account, 'NoneType' object is not subscriptable
17:30:18 – /usr/local/lib/python3.8/site-packages/skodaconnect/connection.py (ERROR) - Meddelandet inträffade först 17:22:10 och har hänt 9 gånger

Setup failed for skodaconnect: Integration failed to initialize.
17:22:10 – setup.py (ERROR)**

App is working good, and this addon has been working perfect until today.

No module named 'skodaconnect'

I try to use the skodaconnect integration and I am relatively new to the custom components. I copied the files under custom_components to the local HASS VM - folder: /config/custom_components/skodaconnect.

I also added the config to configurations.yaml. Now I receive the following error message when rebooting HASS.

Logger: homeassistant.loader
Source: custom_components/skodaconnect/__init__.py:25
Integration: skodaconnect
First occurred: 11:19:00 AM (5 occurrences)
Last logged: 11:33:04 AM
Error loading custom_components.skodaconnect. Make sure all dependencies are installed

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 609, in _load_file
    module = importlib.import_module(path)
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/skodaconnect/__init__.py", line 25, in <module>
    from skodaconnect import Connection
ModuleNotFoundError: No module named 'skodaconnect'

Icon Enhancement

Hi,

it's not a bug but a suggestion about icons:

  • change icon for parking lights with mdi:car-parking-lights

  • change icon for car doors with mdi:car-door and mdi:car-door-lock

What do you think?

NB: I'm also creating a request for car windows on MDI and I saw a request for trunk. Let's see if we're lucky.

Thank you!

Adding and updating sensors combustion_range and combined_range fails

Describe the bug
HA logs errors about the two sensors combustion_range and combined_range at start and at every update

Latest working release

Debug logs

Logger: homeassistant.components.sensor
Source: custom_components/skodaconnect/sensor.py:27
Integration: Sensor (documentation, issues)
First occurred: 10:37:43 (3 occurrences)
Last logged: 10:37:43

Error adding entities for domain sensor with platform skodaconnect
Error while setting up skodaconnect platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 317, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 530, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 295, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 319, in _async_write_ha_state
    sstate = self.state
  File "/config/custom_components/skodaconnect/sensor.py", line 27, in state
    return self.instrument.state
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 114, in state
    val = super().state
  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 528, 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: 'combustion_range'
Logger: homeassistant.util.logging
Source: util/logging.py:99
First occurred: 10:38:44 (2 occurrences)
Last logged: 10:38:44

Exception in async_write_ha_state when dispatching 'skodaconnect.updated': () Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 295, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 319, in _async_write_ha_state sstate = self.state File "/config/custom_components/skodaconnect/sensor.py", line 27, in state return self.instrument.state File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 114, in state val = super().state 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 528, 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: 'combustion_range'
Exception in async_write_ha_state when dispatching 'skodaconnect.updated': () Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 295, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 319, in _async_write_ha_state sstate = self.state File "/config/custom_components/skodaconnect/sensor.py", line 27, in state return self.instrument.state File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 114, in state val = super().state 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 528, 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: 'combined_range'

Installation:

  • Home Assistant variant: Supervised
  • Python version: 3.8
  • Python library versions: pip_list.txt
  • skodaconnect version: 1.0.36

Cupra Connect

Hi Lendy007

Could you make another fork for CupraConnect, im sure some also would love to see Seat Connect...

Thanks

Kim

Credentials not recognised in latest release and latest beta release

Dear all,

The Skoda custom component used to run fine untill I restarted my HA server this evening.
I was running the latest release (1.0.38) . In the logs I got the warning that the credentials might be wrong or the service might nog be working. Since my credentials have not been changed (both for my Skoda and for the custom component) I assume it is the latter one.
This issue also persisted when I have upgraded to the latest beta release (1.0.42 RC2).

Logging into the service worked fine using the mobile phone app or PC.
To give as much information as possible, I have added a screenshot of the warning and a screenshot of the error message from the logs.

Please let me know if I can be of some use testing this custom component.

Many thanks.

Kind regards.

image

image

Friendly name

Hello I put a friendly name but doesn't work

name:
wvw1234567812356: 'Superb'

I have my vin number

image

Periodic update sensor remaining_requests

I have an automation running for charging depending on solar power, which consumps quite a lot of requests at some days. Sometimes 15 requests gone to 0.
In that cases I „reset“ the request by turning ignition on and off. But the integration seems not to update that sensor periodically and my automations are stuck, as I use the remaining request as a condition. For now I have to force an update via switch, which consumps one request for „nothing“.

Is the limitation to 15 request by your integration or is this by skodas service?
Could you either update that sensor as all the others?
Maybe you could force an update without consumping a request?

Request: geocoded_location

Hi!

I would like to see the sensor.[car]_geocoded_location as part of the plugin. It would seem to be a possible , all nessesary data is present.

Keep up the good work!

Start/stop Climatisation not working v1.0.42-RC2

Describe the bug

I've a skoda citigo eiv and I've this switch in home assistant: switch.e_citigo_sty_61_e1f_electric_climatisation

The switch desn't work anymore when pressed it says 'Vehicle' object has no attribute 'set_climater'

Latest working release

Debug logs

2021-06-30 23:37:21 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2976384696] 'Vehicle' object has no attribute 'set_climater' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 658, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 760, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 695, in _handle_entity_call await result File "/config/custom_components/skodaconnect/switch.py", line 51, in async_turn_on await self.instrument.turn_on() File "/usr/local/lib/python3.8/site-packages/skodaconnect/dashboard.py", line 411, in turn_on await self.vehicle.set_climatisation('electric') File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 538, in set_climatisation return await self.set_climater(data, spin) AttributeError: 'Vehicle' object has no attribute 'set_climater'

Installation:

  • Home Assistant variant: Hass OS

You have reached the maximum number of the requests that can be sent.

Hi,
I'm polling my car data in 15min loop and store it into mysql which is the backend for my grafana. That seems to be too often because I get the following warning in my MySkoda app "You have reached the maximum number of the requests that can be sent.". This warning does not show in Skoda Connect response only in my android app.
I didn't find any information what is the request limit per day for the API. Does anyone know ?

Bad Gateway / Forbidden error

Hi!
I was trying to setup this integration but I can't get it to work. I keep getting Bad Gateway / Forbidden errors.
When I log in to the Skoda Connect portal everything works, so my credentials are correct. This is my config:

I'm running Home Assistant version: 2020.12.0
SkodaConnect integration version: 1.0.27

skodaconnect:
  username: !secret skoda_username
  password: !secret skoda_password
  scandinavian_miles: false
  imperial_units: false
  scan_interval:
    minutes: 5

And this is the errorlog:

Could not fetch tripstatistics, error: 403, message='Forbidden', url=URL('https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/skoda/CZ/vehicles/TMBAP9NE6xxxxxx/tripdata/shortTerm?newest')

Could not fetch StoredVehicleDataResponse, error: 502, message='Bad Gateway', url=URL('https://msg.volkswagen.de/fs-car/bs/vsr/v1/skoda/CZ/vehicles/TMBAP9NE6xxxxxx/status')

Could not fetch position (ClientResponseError), error: 502, message='Bad Gateway', url=URL('https://msg.volkswagen.de/fs-car/bs/cf/v1/skoda/CZ/vehicles/TMBAP9NE6xxxxxx/position')

I tried with and without the S-PIN and also resetted the S-PIN as well as the password for my account.
What am I missing?

Thank you in advance!

Jeffrey

Error loading custom_components.skodaconnect. Make sure all dependencies are installed

Hello, I have this issues

Thanks for you wroks

Logger: homeassistant.loader
Source: custom_components/skodaconnect/init.py:24
First occurred: 22:02:31 (5 occurrences)
Last logged: 22:23:50

Error loading custom_components.skodaconnect. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 387, in _load_file
module = importlib.import_module(path)
File "/usr/local/lib/python3.7/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/config/custom_components/skodaconnect/init.py", line 24, in
from skodaconnect import Connection
ModuleNotFoundError: No module named 'skodaconnect'

Can't connect to skoda new API

Describe the bug
I did accept terms on https://www.skoda-connect.com/ . On 1.38 is just saying wrong credentials.
2021-05-24 11:37:27 WARNING (MainThread) [skodaconnect.connection] You need to login to Skoda Connect online and accept the terms and conditions.
2021-05-24 11:37:27 ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, the terms and conditions must be accepted
2021-05-24 11:37:27 WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working

Latest working release
If the problem started after updating to a new release, please state latest working release. Everything stop working when skoda is acceted only on new API(skoda one).

Debug logs
If applicable, add debug logs. See README on how to enable debug logs with response debugging.

Installation:

  • Home Assistant variant: Core
  • Python version 3.9
  • Python library versions
    (11:38:24)(3.4G) [root@has-001:~] # python3 -m pip list
    Package Version

acme 0.31.0
apparmor 2.13.2
asn1crypto 0.24.0
beautifulsoup4 4.7.1
certbot 0.31.0
certbot-apache 0.31.0
certifi 2018.8.24
chardet 3.0.4
ConfigArgParse 0.13.0
configobj 5.0.6
cryptography 2.6.1
entrypoints 0.3
future 0.16.0
html5lib 1.0.1
idna 2.6
josepy 1.1.0
keyring 17.1.1
keyrings.alt 3.1.1
LibAppArmor 2.13.2
lxml 4.3.2
mock 2.0.0
parsedatetime 2.4
pbr 4.2.0
pip 18.1
pycrypto 2.6.1
pycurl 7.43.0.2
PyGObject 3.30.4
pyOpenSSL 19.0.0
pyRFC3339 1.1
python-apt 1.8.4.3
python-augeas 0.5.0
pytz 2019.1
pyxdg 0.25
requests 2.21.0
requests-toolbelt 0.8.0
SecretStorage 2.3.1
setuptools 40.8.0
six 1.12.0
soupsieve 1.8
urllib3 1.24.1
webencodings 0.5.1
wheel 0.32.3
zope.component 4.3.0
zope.event 4.2.0
zope.hookable 4.0.4
zope.interface 4.3.2

Additional context
My car is skoda superb 2018

Can't start combustion heater after update

I just updated to 1.0.35 and the refactoring seems to work well and I get everything from lock status to mileage etc reported correctly. What doesn't seem to work is the heater action (the new switches). I have a 2019 Kodiaq and it all worked today before I updated to the new version. I'm pretty sure I was on 1.0.26 previously.

Car: 2019 Kodiaq
Skoda Connect: 1.0.35
HACS: 1.11.3
Home Assistant: 2021.2.3
I'm running on docker on a Raspberry Pi 4 on Ubuntu if it matters. The car shows 12 requests remaining.

The action fails almost immediately (Failed to call service switch/turn_on. Pre-heater action failed)
and this is shown in the log.

Logger: homeassistant.core
Source: custom_components/skodaconnect/switch.py:32
First occurred: 9:19:56 PM (1 occurrences)
Last logged: 9:19:56 PM

Error executing service: <ServiceCall switch.turn_on (c:226cb642c2122c0a0caaae89d21e718b): entity_id=['switch.kodiaq_parking_heater_heating']>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1471, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1490, 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 595, 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 632, 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 526, in turn_on
    await self.vehicle.set_pheater(mode='heating', spin=self.spin)
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 431, in set_pheater
    raise Exception('Pre-heater action failed')
Exception: Pre-heater action failed
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/skodaconnect/switch.py:32
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9:20:58 PM (2 occurrences)
Last logged: 9:54:35 PM

[281472847932768] Pre-heater action failed
[281472606411312] Pre-heater action failed
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 136, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1455, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1490, 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 595, 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 632, 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 526, in turn_on
    await self.vehicle.set_pheater(mode='heating', spin=self.spin)
  File "/usr/local/lib/python3.8/site-packages/skodaconnect/vehicle.py", line 431, in set_pheater
    raise Exception('Pre-heater action failed')
Exception: Pre-heater action failed

[BUG] Install Error

Got this message after install. Installed in custom components.


Logger: homeassistant.components.hassio
Source: components/hassio/init.py:420
Integration: Hass.io (documentation, issues)
First occurred: 9:15:45 (5 occurrences)
Last logged: 9:24:57

Component error: skodaconnect - cannot import name 'find_path' from 'utilities' (/usr/local/lib/python3.8/site-packages/utilities/init.py)


SkodaConnect

skodaconnect:
username: [email protected]
password: xxxxxxxxx
spin: xxxx
combustion_engine_heating_duration: <allowed values 10,20,30,40,50,60 (minutes)>
combustion_engine_climatisation_duration: <allowed values 10,20,30,40,50,60 (minutes)>
scandinavian_miles: false
imperial_units: false
scan_interval:
minutes: 5
name:
tmbjxxxxxxxxx25: 'Ocatvia'
resources:
- combustion_engine_heating
- combustion_climatisation
- distance
- position
- service_inspection
- oil_inspection
- door_locked
- trunk_locked
- request_in_progress
- fuel_level
- windows_closed
- adblue_level
- climatisation_target_temperature
- last_connected
- combustion_range
- trip_last_average_speed
- trip_last_average_fuel_consumption
- trip_last_duration
- trip_last_length
- parking_light
- door_closed_left_front
- door_closed_left_back
- door_closed_right_front
- door_closed_right_back
- trunk_closed
- window_closed_left_front
- window_closed_left_back
- window_closed_right_front
- window_closed_right_back
- sunroof_closed
- service_inspection_km
- oil_inspection_km
- outside_temperature
- electric_climatisation
- window_heater
- charging
- battery_level
- charging_time_left
- electric_range
- combined_range
- charge_max_ampere
- climatisation_target_temperature
- external_power
- climatisation_without_external_power
- charging_cable_connected
- charging_cable_locked
- trip_last_average_electric_consumption
- hood_closed
- combustion_engine_heatingventilation_status
- vehicleMoving
- parkingTime
- energy_flow
- requests_remaining

Two accounts?

How do I add two cars registered to two different accounts (me and my wife)? Thanks!

Skoda Enyaq: not showing entities

Describe the bug
I'm not being able to login with both of our Skoda Connect accounts.

Latest working release
Never used it before. Installed the latest stable and the latest beta

Debug logs
Logging from latest stable:
DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint, logging on. ERROR (MainThread) [skodaconnect.connection] Login failed for skoda account, 'NoneType' object has no attribute 'find_all' WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.

Logging from latest beta:
DEBUG (MainThread) [skodaconnect.connection] Using service https://msg.volkswagen.de DEBUG (MainThread) [skodaconnect.connection] Initiating new login DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password. DEBUG (MainThread) [skodaconnect.connection] Parsing login response. DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. INFO (MainThread) [skodaconnect.connection] Successfully logged in DEBUG (MainThread) [skodaconnect.connection] Trying to fetch api tokens. DEBUG (MainThread) [skodaconnect.connection] VW-Group API token verified OK. DEBUG (MainThread) [skodaconnect.connection] Fetching vehicles associated with account DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/skoda/CZ/vehicles" returned with status code [200] DEBUG (MainThread) [skodaconnect.connection] Failed to retrieve list of cars, trying new API DEBUG (MainThread) [skodaconnect.connection] Got authorization endpoint DEBUG (MainThread) [skodaconnect.connection] Authenticating with email and password. DEBUG (MainThread) [skodaconnect.connection] Parsing login response. DEBUG (MainThread) [skodaconnect.connection] Login successful, received authorization code. DEBUG (MainThread) [skodaconnect.connection] Trying to fetch user identity tokens. DEBUG (MainThread) [skodaconnect.connection] User identity token verified OK. INFO (MainThread) [skodaconnect.connection] Successfully logged in to Skoda new API DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://api.connect.skoda-auto.cz/api/v2/garage/vehicles" WARNING (MainThread) [homeassistant.setup] Setup of skodaconnect is taking over 10 seconds. DEBUG (MainThread) [skodaconnect.connection] Request for "https://api.connect.skoda-auto.cz/api/v2/garage/vehicles" returned with status code [200] DEBUG (MainThread) [skodaconnect.connection] Going to call vehicle updates DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://mal-1a.prd.ece.vwg-connect.com/api/cs/vds/v1/vehicles/[VIN]/homeRegion" ERROR (MainThread) [skodaconnect.connection] Got unhandled error from server: 404 DEBUG (MainThread) [skodaconnect.connection] Could not get homeregion, error 'homeRegion' DEBUG (MainThread) [skodaconnect.vehicle] Get homeregion for VIN [VIN] DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/fs-car/promoter/portfolio/v1/skoda/CZ/vehicle/[VIN]/carportdata" DEBUG (MainThread) [skodaconnect.connection] Attempting extraction of subject from identity token. DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://customer-profile.apps.emea.vwapps.io/v1/customers/[GUID]/realCarData" DEBUG (MainThread) [skodaconnect.connection] Request for "https://msg.volkswagen.de/fs-car/promoter/portfolio/v1/skoda/CZ/vehicle/[VIN]/carportdata" returned with status code [200] DEBUG (MainThread) [skodaconnect.connection] Request for "https://customer-profile.apps.emea.vwapps.io/v1/customers/[GUID]/realCarData" returned with status code [200] INFO (MainThread) [skodaconnect.vehicle] Vehicle [VIN] added. Homeregion is "https://msg.volkswagen.de" DEBUG (MainThread) [skodaconnect.vehicle] Attempting discovery of supported API endpoints for vehicle. DEBUG (MainThread) [skodaconnect.connection] HTTP GET "https://msg.volkswagen.de/api/rolesrights/operationlist/v3/vehicles/[VIN]" ERROR (MainThread) [skodaconnect.connection] Got HTTP 400 "Bad Request" from server, this request might be malformed or not implemented correctly for this vehicle WARNING (MainThread) [skodaconnect.connection] Could not fetch operation list, HTTP status code: 400 WARNING (MainThread) [skodaconnect.connection] Could not update information: 'serviceInfo' WARNING (MainThread) [custom_components.skodaconnect] Could not login to Skoda Connect, please check your credentials and verify that the service is working ERROR (MainThread) [homeassistant.setup] Setup failed for skodaconnect: Integration failed to initialize.
Installation:

  • Home Assistant variant: Core
  • Python version: 3.8.9
  • Python library versions: pip==20.2.3, setuptools==49.2.1

Additional context
Clean set-up via HACS, logged on with same credentials via https://www.skoda-connect.com/ and that works. Accepted new terms.

App screenshot

Position of car not working

Since 2 updates, the position of the car is not received.
Tracker says: "absent"
Car moving is not available

Do I need to do something after updating?
Anything else works as it should.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.