audiconnect / audi_connect_ha

Adds an audi connect integration to home assistant
MIT License
245 stars 100 forks source link

Audi app does not open or close car #433

Open Dominique1997 opened 5 months ago

Dominique1997 commented 5 months ago

Describe the bug When the vin is provided and the action to close or open the car is called. Home assistant shows that the action is performed. But in real life the action is not performed.

To Reproduce Execute the following script: service: audiconnect.execute_vehicle_action data: vin: ***** action: unlock

Expected behavior To open or close the car

Logfile How to enable audiconnect debugging? Settings > Integrations > Audi Connect > Enable Debug Logging Run service refresh_cloud_data Disable Debug Logging

Your Vehicle Details Model: A3 Year: 2023 Type (ICE/PHEV/BEV): SPORTBACK

github-actions[bot] commented 4 months ago

This issue is stale because it has been open for 45 days with no activity. Are you still experiencing this issue?

coreywillwhat commented 4 months ago

US Region Endpoint for Lock:

https://mal-3a.prd.eu.dp.vwg-connect.com/api/bs/rlu/v1/vehicles/{vin}/lock

US Region Endpoint for Unlock

https://mal-3a.prd.eu.dp.vwg-connect.com/api/bs/rlu/v1/vehicles/{vin}/unlock
coreywillwhat commented 4 months ago

I've got this working for US region

mrechs commented 3 months ago

Hi is it correct that this is still broken? I am getting the following in my log file: This error originated from a custom integration.

Logger: custom_components.audiconnect.util Source: custom_components/audiconnect/util.py:25 integration: Audi Connect (documentation, issues) First occurred: 8:15:28 PM (1 occurrences) Last logged: 8:15:28 PM

Unable to lock [VIN]: 404, message='Not Found', url=URL('https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/rlu/v1/Audi/US/vehicles/[VIN]/actions')

cdnninja commented 3 months ago

US Region Endpoint for Lock:


https://mal-3a.prd.eu.dp.vwg-connect.com/api/bs/rlu/v1/vehicles/{vin}/lock

US Region Endpoint for Unlock


https://mal-3a.prd.eu.dp.vwg-connect.com/api/bs/rlu/v1/vehicles/{vin}/unlock

Did just the endpoint change or anything else in the command?

g3gg0 commented 3 months ago

Same error here in DE region:

Unable to lock wauzzzXXX: 404, message='Not Found', url='https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/rlu/v1/Audi/DE/vehicles/WAUZZZXXX/actions'

wessa66 commented 3 months ago

I see the same problem but I see the error below (the same thing shows when trying to start preheater)

2024-08-15 09:10:31.604 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] Sending command to lock to vehicle **46ha142 2024-08-15 09:10:31.917 ERROR (MainThread) [custom_components.audiconnect.util] Unable to lock ***46ha142*: object of type 'NoneType' has no len()

martijncas commented 3 months ago

also cannot perform any action on the car. all data is being updated fine. HA log:

Unable to unlock wauzzzf24xxxxxxxx: 404, message='Not Found', url='https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/rlu/v1/Audi/DE/vehicles/WAUZZZF24MN018677/actions'

goldengod503 commented 2 months ago

i'm having this issue as well. same 404 message

wessa66 commented 1 month ago

I see the same problem but I see the error below (the same thing shows when trying to start preheater)

2024-08-15 09:10:31.604 DEBUG (MainThread) [custom_components.audiconnect.audi_connect_account] Sending command to lock to vehicle **46ha142 2024-08-15 09:10:31.917 ERROR (MainThread) [custom_components.audiconnect.util] Unable to lock **46ha142: object of type 'NoneType' has no len()

Suddenly this works for me?! , I can see error sometimes and see the 403, message='', url='https://msg.volkswagen.de/fs-car/bs/rs/v1/Audi/DE/vehicles/xxxxxxxxxxxx/action'

but I also saw I was forced to login to https://my.audi.com/ and accept the new term and conditions, I saw this in my log 2024-10-03 09:13:10.836 ERROR (MainThread) [custom_components.audiconnect.audi_connect_account] LOGIN: Login to Audi service failed: /signin-service/v1/xxxxxxxxxxxxxxxxxx@apps_vw-dilab_com/terms-and-conditions?relayState=xxxxxxxxxxxxxxxxxxxxxx&canChangeCountryOfResidence=true&userId=xxxxxxxxxxxxxxxxxxxxxxxxxc

P3nryn commented 1 month ago

Still got the 404 message after relogin to Audi app and accepting the new terms and conditions.

So vor me it looks like that the integration can read data but can't send data to the the AUDI/VW API

goldengod503 commented 1 month ago

i still consistently get a 404 when attempting to lock the doors via HA.

Unable to lock XXXXXXXXXXXXXX: 404, message='Not Found', url='https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/bs/rlu/v1/Audi/US/vehicles/XXXXXXXXXXX/actions'

seanwalter commented 3 weeks ago

I am also having lock/unlock issues. I noticed a “default code” in the lock/unlock settings and have tried my 4-digit pin, 8-digit s-pin, and leaving it empty:

Logger: custom_components.audiconnect.util
Source: custom_components/audiconnect/util.py:26
integration: Audi Connect ([documentation](https://github.com/audiconnect/audi_connect_ha), [issues](https://github.com/audiconnect/audi_connect_ha/issues))
First occurred: 8:04:58 AM (10 occurrences)
Last logged: 8:57:55 AM

Unable to unlock XXXXXXXXXXXXXX: 403, message='', url='https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/security-pin-auth-completed'
Unable to unlock XXXXXXXXXXXXXX: 403, message='', url='https://mal-3a.prd.eu.dp.vwg-connect.com/api/rolesrights/authorization/v2/vehicles/XXXXXXXXXXXXXX/services/rlu_v1/operations/UNLOCK/security-pin-auth-requested'