homeassistant-volkswagencarnet
homeassistant-volkswagencarnet copied to clipboard
[BUG] - Lock switch not working on Golf 1.5 (Petrol) 2019
Before you post a new issue - you must first check the following (and check the boxes with an "X" below)
- [X] 1.) Can you login using the smartphone app We Connect (not We Connect ID or We Connect GO) and interact with your car?
- [X] 2.) Please make sure that you can login into https://vwid.vwgroup.io/ and make sure that any "Terms and Conditions" are all checked
- [x] 3.) I do not have MFA enabled.
Environment
- Volkswagencarnet release with the issue: v4.4.58
- Last working homeassistant-volkswagencarnet release (if known): not ever worked for me.
- Home Assistant Core release with the issue: core-2021.12.1 (docker:true)
- Operating environment (Home Assistant OS/Supervised/Container/Core/venv): Container, Linux 4.4.180+ on x86_64
- Car model and year: Golf 1,5 HLBM 110TSI M6F, Firmware: 2019 (Petrol)
- Country where the car was bought: GB (UK)
- Valid We Connect subscription: Yes - Guide & Inform Basic & Security & Service Plus
- Have you verified that the We Connect service works via VW´s portal?: Everything works, but no ability to lock via We Connect app/portal so can't test like-for-like - maybe that suggests a limitation on my car model?
Describe the bug
I can see the lock: lock.golf_door_locked, and i have it in a dashboard in HA via an Entities Card. When i press it, it doesn't lock my car.
I have my S-PIN entered correctly (have checked), and i can see calls going out to APIs with 200s coming back, but it errors:
2022-04-01 15:29:08 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/authorization/v2/vehicles/{VIN-removed}/services/rlu_v1/operations/LOCK/security-pin-auth-requested"
2022-04-01 15:29:08 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/authorization/v2/vehicles/{VIN-removed}/services/rlu_v1/operations/LOCK/security-pin-auth-requested" returned with status code [200]
2022-04-01 15:29:08 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP POST "https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/authorization/v2/security-pin-auth-completed"
2022-04-01 15:29:08 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/authorization/v2/security-pin-auth-completed" returned with status code [200]
2022-04-01 15:29:08 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP POST "https://msg.volkswagen.de/fs-car/bs/rlu/v1/VW/GB/vehicles/{VIN-removed}/actions"
2022-04-01 15:29:09 ERROR (MainThread) [volkswagencarnet.vw_connection] Bad gateway, this function may not be implemented for this vehicle
2022-04-01 15:29:09 WARNING (MainThread) [volkswagencarnet.vw_vehicle] Failed to lock vehicle - Invalid or no response
As a side issue (could be related?) I notice that if i drive my car, and come back home it doesn't update the sensors without me forcing a data refresh via switch.golf_force_data_refresh
Steps to Reproduce
Set up HA with version as above, enable HACS, add Volkswagen We Connect integration via this repo, enter VIN and S-PIN, set up dashboard with lock pointing to door lock, test to see if the door locks, or if it returns the same error.
Could be specific to my model? But it does report that it's capable of locking:
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/bs/cf/v1/VW/GB/vehicles/{VIN-removed}/position" returned with status code [200]
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/bs/vsr/v1/VW/GB/vehicles/{VIN-removed}/status" returned with status code [200]
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/VW/GB/vehicles/{VIN-removed}/tripdata/shortTerm?newest" returned with status code [200]
2022-04-01 15:29:09 DEBUG (MainThread) [custom_components.volkswagencarnet] Updating data from volkswagen WeConnect
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] Setting up dashboard with config :{'mutable': True, 'spin': '{SPIN-removed}', 'miles': True, 'scandinavian_miles': False}
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Position is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door locked is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Trunk locked is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Force data refresh is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window Heater (WindowHeater:window_heater) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Climatisation from battery (BatteryClimatisation:climatisation_without_external_power) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Electric Climatisation (ElectricClimatisation:electric_climatisation) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Auxiliary Climatisation (AuxiliaryClimatisation:auxiliary_climatisation) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking Heater Ventilation (PHeaterVentilation:pheater_ventilation) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking Heater Heating (PHeaterHeating:pheater_heating) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charging (Charging:charging) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Departure Schedule 1 (DepartureTimer:departure_timer1) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Departure Schedule 2 (DepartureTimer:departure_timer2) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Departure Schedule 3 (DepartureTimer:departure_timer3) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Request results is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Minimum charge level for departure timers (Sensor:schedule_min_charge_level) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Heater source for departure timers (Sensor:schedule_heater_source) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Odometer is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Battery level (Sensor:battery_level) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Adblue level (Sensor:adblue_level) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Fuel level is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Service inspection days is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Service inspection distance is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Oil inspection days is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Oil inspection distance is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last connected is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking time is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charging time left (Sensor:charging_time_left) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Electric range (Sensor:electric_range) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Combustion range is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Combined range (Sensor:combined_range) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charger max ampere (Sensor:charge_max_ampere) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Climatisation target temperature (Sensor:climatisation_target_temperature) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average speed is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average electric engine consumption (Sensor:trip_last_average_electric_engine_consumption) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average fuel consumption is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip duration is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip length is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip recuperation (Sensor:trip_last_recuperation) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average recuperation (Sensor:trip_last_average_recuperation) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average auxillary consumption (Sensor:trip_last_average_auxillary_consumption) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average auxillary consumer consumption (Sensor:trip_last_average_aux_consumer_consumption) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip total electric consumption (Sensor:trip_last_total_electric_consumption) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking Heater heating/ventilation status (Sensor:pheater_status) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking Heater heating/ventilation duration (Sensor:pheater_duration) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Outside temperature is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Requests remaining is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} External power (BinarySensor:external_power) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Energy flow (BinarySensor:energy_flow) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking light is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Doors locked is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door closed left front is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door closed right front is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door closed left back is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door closed right back is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Trunk locked is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Trunk closed is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Hood closed is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charging cable connected (BinarySensor:charging_cable_connected) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charging cable locked (BinarySensor:charging_cable_locked) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Sunroof closed (BinarySensor:sunroof_closed) is not supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Windows closed is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window closed left front is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window closed left back is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window closed right front is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window closed right back is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Vehicle Moving is supported
2022-04-01 15:29:09 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Request in progress is supported
2022-04-01 15:29:09 DEBUG (MainThread) [custom_components.volkswagencarnet] Finished fetching volkswagencarnet data in 0.513 seconds (success: True)
Expected behavior
Car to lock, or component to report that car isn't capable of this function.
Screenshots
Traceback/Error logs
logs above ^^
Debug information - all JSON responses from logfile
Startup:
2022-04-01 15:25:41 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-04-01 15:25:41 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration eufy_security which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-04-01 15:25:41 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration volkswagencarnet which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-04-01 15:25:41 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration tapo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-04-01 15:25:45 DEBUG (MainThread) [volkswagencarnet.vw_connection] Using service https://msg.volkswagen.de
2022-04-01 15:25:45 DEBUG (MainThread) [volkswagencarnet.vw_connection] Initiating new login
2022-04-01 15:25:50 DEBUG (MainThread) [volkswagencarnet.vw_connection] Got authorization endpoint
2022-04-01 15:25:51 ERROR (MainThread) [volkswagencarnet.vw_connection] Login failed for VW account, POST password request failed
2022-04-01 15:25:51 ERROR (MainThread) [volkswagencarnet.vw_connection] POST password request failed
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/volkswagencarnet/vw_connection.py", line 249, in _login
raise Exception("POST password request failed")
Exception: POST password request failed
2022-04-01 15:25:51 INFO (MainThread) [volkswagencarnet.vw_connection] Something failed
2022-04-01 15:25:54 DEBUG (MainThread) [volkswagencarnet.vw_connection] Got authorization endpoint
2022-04-01 15:25:54 DEBUG (MainThread) [volkswagencarnet.vw_connection] Authenticating with email and password.
2022-04-01 15:25:55 DEBUG (MainThread) [volkswagencarnet.vw_connection] Parsing login response.
2022-04-01 15:25:55 DEBUG (MainThread) [volkswagencarnet.vw_connection] Login successful, received authorization code.
2022-04-01 15:25:55 DEBUG (MainThread) [volkswagencarnet.vw_connection] Trying to fetch user identity tokens.
2022-04-01 15:25:56 DEBUG (MainThread) [volkswagencarnet.vw_connection] User identity token verified OK.
2022-04-01 15:25:56 INFO (MainThread) [volkswagencarnet.vw_connection] Successfully logged in
2022-04-01 15:25:56 DEBUG (MainThread) [volkswagencarnet.vw_connection] Trying to fetch api tokens.
2022-04-01 15:25:56 DEBUG (MainThread) [volkswagencarnet.vw_connection] VW-Group API token verified OK.
2022-04-01 15:25:56 DEBUG (MainThread) [volkswagencarnet.vw_connection] Fetching vehicles associated with account
2022-04-01 15:25:56 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/GB/vehicles"
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/GB/vehicles" returned with status code [200]
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] Found vehicle(s) associated with account.
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] Going to call vehicle updates
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://mal-1a.prd.ece.vwg-connect.com/api/cs/vds/v1/vehicles/{VIN-removed}/homeRegion"
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://mal-1a.prd.ece.vwg-connect.com/api/cs/vds/v1/vehicles/{VIN-removed}/homeRegion" returned with status code [200]
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Get homeregion for VIN {VIN-removed}
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/vehicleMgmt/vehicledata/v2/VW/GB/vehicles/{VIN-removed}"
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] Attempting extraction of subject from identity token.
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://customer-profile.apps.emea.vwapps.io/v1/customers/f6455639-06f8-498b-b1a8-d76f707b75a8/realCarData"
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://customer-profile.apps.emea.vwapps.io/v1/customers/f6455639-06f8-498b-b1a8-d76f707b75a8/realCarData" returned with status code [200]
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/vehicleMgmt/vehicledata/v2/VW/GB/vehicles/{VIN-removed}" returned with status code [200]
2022-04-01 15:25:57 INFO (MainThread) [volkswagencarnet.vw_vehicle] Vehicle {VIN-removed} added. Homeregion is "https://mal-1a.prd.ece.vwg-connect.com/api"
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Attempting discovery of supported API endpoints for vehicle.
2022-04-01 15:25:57 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/operationlist/v3/vehicles/{VIN-removed}"
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/operationlist/v3/vehicles/{VIN-removed}" returned with status code [200]
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Discovered enabled service: statusreport_v1
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Discovered enabled service: carfinder_v1
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Discovered enabled service: trip_statistic_v1
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Discovered enabled service: rhonk_v1
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] API endpoints: {'rheating_v1': {'active': False}, 'rclima_v1': {'active': False}, 'rlu_v1': {'active': False}, 'trip_statistic_v1': {'active': True, 'expiration': datetime.datetime(2022, 4, 9, 23, 0, tzinfo=datetime.timezone.utc), 'operations': ['D_TRIPDATA', 'G_JOBSTATUS', 'G_AGGR_TRIPDATA', 'G_TRIPDATA']}, 'statusreport_v1': {'active': True, 'expiration': datetime.datetime(2022, 4, 9, 23, 0, tzinfo=datetime.timezone.utc), 'operations': ['G_CVDATAID', 'G_RQSTAT', 'G_CVDATA', 'G_SVDATA']}, 'rbatterycharge_v1': {'active': False}, 'rhonk_v1': {'active': True, 'expiration': datetime.datetime(2022, 4, 9, 23, 0, tzinfo=datetime.timezone.utc), 'operations': ['P_VREQ', 'G_REQSTATUS', 'G_RHIST']}, 'carfinder_v1': {'active': True, 'expiration': datetime.datetime(2022, 4, 9, 23, 0, tzinfo=datetime.timezone.utc), 'operations': ['FIND_CAR']}, 'timerprogramming_v1': {'active': False}}
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/VW/GB/vehicles/{VIN-removed}/tripdata/shortTerm?newest"
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/cf/v1/VW/GB/vehicles/{VIN-removed}/position"
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/vsr/v1/VW/GB/vehicles/{VIN-removed}/status"
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/bs/cf/v1/VW/GB/vehicles/{VIN-removed}/position" returned with status code [200]
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_vehicle] Detected new parking time: 2022-04-01 12:54:29+00:00
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/bs/vsr/v1/VW/GB/vehicles/{VIN-removed}/status" returned with status code [200]
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/VW/GB/vehicles/{VIN-removed}/tripdata/shortTerm?newest" returned with status code [200]
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] Going to call vehicle updates
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/VW/GB/vehicles/{VIN-removed}/tripdata/shortTerm?newest"
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/cf/v1/VW/GB/vehicles/{VIN-removed}/position"
2022-04-01 15:25:58 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/bs/vsr/v1/VW/GB/vehicles/{VIN-removed}/status"
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/bs/tripstatistics/v1/VW/GB/vehicles/{VIN-removed}/tripdata/shortTerm?newest" returned with status code [200]
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/bs/cf/v1/VW/GB/vehicles/{VIN-removed}/position" returned with status code [200]
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://msg.volkswagen.de/fs-car/bs/vsr/v1/VW/GB/vehicles/{VIN-removed}/status" returned with status code [200]
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet] Updating data from volkswagen WeConnect
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] Setting up dashboard with config :{'mutable': True, 'spin': '{spin-removed}', 'miles': True, 'scandinavian_miles': False}
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Position is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door locked is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Trunk locked is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Force data refresh is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window Heater (WindowHeater:window_heater) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Climatisation from battery (BatteryClimatisation:climatisation_without_external_power) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Electric Climatisation (ElectricClimatisation:electric_climatisation) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Auxiliary Climatisation (AuxiliaryClimatisation:auxiliary_climatisation) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking Heater Ventilation (PHeaterVentilation:pheater_ventilation) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking Heater Heating (PHeaterHeating:pheater_heating) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charging (Charging:charging) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Departure Schedule 1 (DepartureTimer:departure_timer1) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Departure Schedule 2 (DepartureTimer:departure_timer2) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Departure Schedule 3 (DepartureTimer:departure_timer3) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Request results is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Minimum charge level for departure timers (Sensor:schedule_min_charge_level) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Heater source for departure timers (Sensor:schedule_heater_source) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Odometer is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Battery level (Sensor:battery_level) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Adblue level (Sensor:adblue_level) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Fuel level is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Service inspection days is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Service inspection distance is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Oil inspection days is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Oil inspection distance is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last connected is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking time is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charging time left (Sensor:charging_time_left) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Electric range (Sensor:electric_range) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Combustion range is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Combined range (Sensor:combined_range) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charger max ampere (Sensor:charge_max_ampere) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Climatisation target temperature (Sensor:climatisation_target_temperature) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average speed is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average electric engine consumption (Sensor:trip_last_average_electric_engine_consumption) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average fuel consumption is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip duration is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip length is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip recuperation (Sensor:trip_last_recuperation) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average recuperation (Sensor:trip_last_average_recuperation) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average auxillary consumption (Sensor:trip_last_average_auxillary_consumption) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip average auxillary consumer consumption (Sensor:trip_last_average_aux_consumer_consumption) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Last trip total electric consumption (Sensor:trip_last_total_electric_consumption) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking Heater heating/ventilation status (Sensor:pheater_status) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking Heater heating/ventilation duration (Sensor:pheater_duration) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Outside temperature is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Requests remaining is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} External power (BinarySensor:external_power) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Energy flow (BinarySensor:energy_flow) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Parking light is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Doors locked is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door closed left front is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door closed right front is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door closed left back is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Door closed right back is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Trunk locked is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Trunk closed is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Hood closed is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charging cable connected (BinarySensor:charging_cable_connected) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Charging cable locked (BinarySensor:charging_cable_locked) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Sunroof closed (BinarySensor:sunroof_closed) is not supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Windows closed is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window closed left front is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window closed left back is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window closed right front is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Window closed right back is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Vehicle Moving is supported
2022-04-01 15:25:59 DEBUG (MainThread) [volkswagencarnet.vw_dashboard] {VIN-removed} Request in progress is supported
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet] Finished fetching volkswagencarnet data in 0.562 seconds (success: True)
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet] Async update finished for {VIN-removed} (volkswagencarnet). Next update in 0:05:00.
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_left_front
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_locked
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of hood_closed
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_right_front
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_left_back
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of trunk_locked
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of trunk_closed
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_left_back
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of door_closed_right_back
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_right_front
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of parking_light
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of request_in_progress
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of windows_closed
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of vehicle_moving
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_right_back
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.binary_sensor] Getting state of window_closed_left_front
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_average_speed
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of last_connected
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of service_inspection
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of distance
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_average_fuel_consumption
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_duration
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of fuel_level
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of oil_inspection_distance
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of outside_temperature
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of trip_last_length
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of oil_inspection
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of requests_remaining
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet] Restoring requests remaining to '-1'
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of requests_remaining
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of request_results
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of service_inspection_distance
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of parking_time
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.sensor] Getting state of combustion_range
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.switch] Getting state of refresh_data
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.lock] Getting state of door_locked
2022-04-01 15:25:59 DEBUG (MainThread) [custom_components.volkswagencarnet.lock] Getting state of trunk_locked
Additional context
Is it related to the auth issue at start-up or is it a limitation of my car?
Do others see a lock switch/button in We Connect app? (I don't see that)
If it's not available through the app, it won't work (99.9% certainly) with this integration either :disappointed:
Thanks for the response @milkboy - do you have the ability to lock the doors in the app?
Also, are the login errors in the logs above normal?
My car does not support locking through app either, but the "lock" entities are still visible in HA (though they won't work either).. So kindof "read-only" locks
The backend is surprisingly unstable, so unfortunately the login errors are "normal".. Usually the default "try 3 times to log in" is enough (or was it 3 retries.. can't remember)
Ok, I’ll close this one down… unless there’s an attribute we can hide the lock switch when we detect that it doesn’t have that capability?
Actually, there is a way to detect it. Just need to figure out how to handle it, since I at least want the lock status to show up correctly, even if I can't control the state. Didn't find anything useful for this in HA documentation yet. I guess the best (only) way is to not use the "lock" entity in this case, but a sensor instead.
On the other hand, I found a (minor) issue in the code, where we actually try to send lock/unlock command to the car, even if we already know it's not supported
https://github.com/robinostlund/volkswagencarnet/pull/188 should remove the "lock" entity, but retain the lock binary sensor
Ah perfect! 👍
There is a (possibly working) test version that includes the lock entity changes (v4.4.59 beta 2)
okay.. minor issue to fix, but apparently locked/unlocked state is reversed :rofl:
or not.. Seems I have some Schrödinger's locks. :smile_cat: :lock: Maybe someone (without remote lock/unlock support) could confirm :pleading_face:
happy to help! What do you need me to test @milkboy ? Have installed v4.4.59-beta.1
2022-04-13 08:42:26 ERROR (MainThread) [homeassistant.setup] Setup failed for volkswagencarnet: Unable to import component: No module named 'pyrate_limiter'
yea.. beta 2 should address that issue.. anyhow.. might still try to fix the lock stuff to actually use the standard Home Assistant "locked"/"unlocked" status instead of the current "on" (meaning "unlocked") and "off" (meaning locked)
I think that's a great idea and makes it easier for new users and aligns to HA standards, but we'll just need to flag that it's a breaking change in the release notes
okay.. final(?) beta version. if some entities seem wrong (or are not created/removed as expected), running the configuration of the integration should fix it, as long as you (de)select the wanted ones
Looks good, but are the locks the wrong wat round? Should it say lock = on [green] (locked), or lock = off [red] (unlocked)?
^ was on beta3, I’m just updating to beta7 to see if it’s already fixed
That's how the locks work in HA, unfortunately... Lock ON == "unlocked" as per https://www.home-assistant.io/integrations/binary_sensor/
Confused the heck out of me at first