robinostlund / homeassistant-volkswagencarnet

Volkswagen Carnet Component for home assistant
GNU General Public License v3.0
306 stars 59 forks source link

[BUG] Unlocking/Locking vehicle is not working #492

Closed eopo closed 7 months ago

eopo commented 11 months ago

Before you post a new issue - you must first check the following (and check the boxes with an "X" below)

Environment

Describe the bug

It is not possible to lock or unlock my vehicle via the HA integration

Steps to Reproduce

Expected behavior

Vehicle is locked or unlocked an locking state is updated

Screenshots

--

Traceback/Error logs

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: volkswagencarnet.vw_connection
Source: custom_components/volkswagencarnet/lock.py:57 
Integration: Volkswagen WeConnect (documentation, issues) 
First occurred: 00:11:11 (1 occurrences) 
Last logged: 00:11:11

Got unhandled error from server: 404

Debug information - all JSON responses from logfile

2023-08-17 23:40:33.040 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/vehicles/[[redacted]]/services/rlu_v1/operations/UNLOCK/security-pin-auth-requested"
2023-08-17 23:40:33.203 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/vehicles/[[redacted]]/services/rlu_v1/operations/UNLOCK/security-pin-auth-requested"
2023-08-17 23:40:33.350 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/vehicles/[[redacted]]/services/rlu_v1/operations/UNLOCK/security-pin-auth-requested" returned with status code [200], response: {'securityPinAuthInfo': {'securityToken': '[[redacted]]', 'securityPinTransmission': {'hashProcedureVersion': 2, 'challenge': '[[redacted]]'}, 'remainingTries': 3}}
2023-08-17 23:40:33.351 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP POST "https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/security-pin-auth-completed"
2023-08-17 23:40:33.462 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/vehicles/[[redacted]]/services/rlu_v1/operations/UNLOCK/security-pin-auth-requested" returned with status code [200], response: {'securityPinAuthInfo': {'securityToken': '[[redacted]]', 'securityPinTransmission': {'hashProcedureVersion': 2, 'challenge': '[[redacted]]'}, 'remainingTries': 3}}
2023-08-17 23:40:33.463 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP POST "https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/security-pin-auth-completed"
2023-08-17 23:40:33.544 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/security-pin-auth-completed" returned with status code [200], response: {'securityToken': '[[redacted]]'}
2023-08-17 23:40:33.545 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP POST "https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/rlu/v1/VW/DE/vehicles/[[redacted]]/actions"
2023-08-17 23:40:33.729 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/security-pin-auth-completed" returned with status code [200], response: {'securityToken': '[[redacted]]'}
2023-08-17 23:40:33.731 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP POST "https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/rlu/v1/VW/DE/vehicles/[[redacted]]/actions"
2023-08-17 23:40:33.779 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for "https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/rlu/v1/VW/DE/vehicles/[[redacted]]/actions" returned with status code [202], response: {'rluActionResponse': {'requestId': 1261135595, 'vin': '[[redacted]]'}, 'rate_limit_remaining': '13'}
2023-08-17 23:40:33.779 DEBUG (MainThread) [volkswagencarnet.vw_connection] Data call returned: {'rluActionResponse': {'requestId': 1261135595, 'vin': '[[redacted]]'}, 'rate_limit_remaining': '13'}
2023-08-17 23:40:33.780 DEBUG (MainThread) [volkswagencarnet.vw_connection] Request for lock action returned with state "1261135595", request id: 1261135595, remaining requests: 13
2023-08-17 23:40:33.780 INFO (MainThread) [volkswagencarnet.vw_vehicle] 13 requests
2023-08-17 23:40:33.782 DEBUG (MainThread) [volkswagencarnet.vw_connection] HTTP GET "https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/lock/v1/VW/DE/vehicles/[[redacted]]/requests/1261135595/status"
2023-08-17 23:40:33.822 ERROR (MainThread) [volkswagencarnet.vw_connection] Got unhandled error from server: 404

Additional context