strange, now it doesn’t go online anymore. It did till the last change but now it stays “unknown” and in the log is the pairing issue again.
as said, if it‘s bot fully initialized it stasy UNKNOWN
yes I understand that. What I do not understand is why my login works with other third party sites.
I just tried one of the older builds and it shows the following in the log
2021-03-07 07:14:22.849 [TRACE] [carnet.internal.api.CarNetHttpClient] - HTTP Response: {"operationList":{"vin":"WXXXXXXXXXXXXXX","channelClient":"APP","userId":"jzIshbaQTrMIPmCiBOleUgBzrJK","role":"PRIMARY_USER","securityLevel":"HG_2b","status":"ENABLED", (a lot more information follows.
but then
2021-03-07 07:14:23.805 [WARN ] [nternal.handler.CarNetVehicleHandler] - WXXXXXXXXXXXXXX: Pairing for PRIMARY_USER is not completed, use MMI to pair with code
2021-03-07 07:14:23.808 [DEBUG] [nternal.handler.CarNetVehicleHandler] - WXXXXXXXXXXXXXX: Active userId = jzIshbaQTrMIPmCiBOleUgBzrJK, role = PRIMARY_USER (securityLevel HG_2b), status = ENABLED, Pairing Code
2021-03-07 07:14:23.811 [DEBUG] [inding.carnet.internal.api.CarNetApi] - Setting up CarNet API for brand Audi (DE), user xxxxxx@xxx.xx
Not sure if that means anything? But as I understand it first the primary user is correct ?
But no need to waste anymore of your weekend with this,
so, if getOperstionsLiat worked before, there is a way to solve, every peace in the puzzle helps. CarNet is a complex set of APIs, different infrastructures, car/model dependencies etc. Like support for Vw - same API in general, but 3% specifics, which drive tons of nuts
Could someone else confirm that‘s still working for your setup. Do we have a working e-tron?
(that‘s the only one I see the 307 redirect, which is an indicator for me that Audi had several platforms behind the API like the US market)
Hi Markus, the binding is working great for my A7 (EU). Channels are not disappearing anymore. Thx.
I hope I’m not anoying you to much with my replies.
I reinstalled the latest version and looked through the log files again.
2021-03-07 15:07:39.992 [DEBUG] [inding.carnet.internal.api.CarNetApi] - WXXXXXXXXXXXXX:Checking for Redirect (HTTP 0)
2021-03-07 15:07:39.995 [DEBUG] [inding.carnet.internal.api.CarNetApi] - WXXXXXXXXXXXXX: API call getOperationList failed: java.util.concurrent.ExecutionException: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header(org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header) GET https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/operationlist/v3/vehicles/WXXXXXXXXXXXXX(HTTP 0 ), result = java.util.concurrent.ExecutionException: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2021-03-07 15:07:39.998 [DEBUG] [nternal.handler.CarNetVehicleHandler] - WXXXXXXXXXXXX: Available services coould not be determined, continue with default profile
2021-03-07 15:07:40.294 [TRACE] [carnet.internal.api.CarNetHttpClient] - HTTP Response: {"pairingInfo":{"pairingStatus":"UNPAIRED","xmlns":"http://www.vw.com/mbb/usermanagement","userId":"jzIshbaQTrMIPmCiBOleUgBzrJK","pairingCode":"","vehicle":"WXXXXXXXXXXXXXX"}}
It seems the getOperationList doesn’t work in this version. Not sure if that is the reasen why the pairungStatus is unpaired.
@markus7017 I’ve tested your latest jar (OH3) with my Audi A6, it works as before (channels get re-created as well).
Hi all, I have an Etron
my connection does not work. Paring with the car is completed, In the audi app it shows that its online.
In Openhab I got the following messages:
2021-03-14 10:47:47.910 [WARN ] [nternal.handler.CarNetVehicleHandler] - WAUZZZxxxxxxxxx: Pairing is not completed, use MMI to pair with code
2021-03-14 10:47:48.111 [INFO ] [nternal.handler.CarNetVehicleHandler] - WAUZZZGxxxxxxxxxx: API Service is not available:
not sure what I can do? Can anybody help. Carnet Account is online , and I find my car in the Inbox, but after conneting it shows: status unkonw
2021 Audi e-tron Spb 300/M1J (DE-GEACAE) UNKNOWN
ok, now you are #3, which confirms my assumption that the e-tron is handled on a dedicated platform. I got the credentials from an e-tron user, but didn’t found the time to work on this so far
Please try the updated build. Other projects helped me to fix this issue.
At least the e-tron I’m using now comes up and creates the channels.
Latest DEV build: 2.5.13 - 3.1.0 - README - Installation - Bugs/Features
Note the 2.5 distro doesn’t receive updates anymore so you have to switch to the DEV build.
e-tron MJ21 - used the latest dev build on 2.5. Everything working fine.
latest dev build gets me all the channels (OH3 and e-tron MJ 21) but it seems that none of the switches do anything to my e-tron and some channel do not update automaticlly. I have to disable and enable the binding to get a value (Outdoor Temperature, Kilometer and ClimatisationState as an example) Postion shows up as “UNDEF” and some stay at “NULL”.
another build fixed the problem that the PIN config option doesn’t show up on OH3 U(vehicle thing)
tonight the bridge thing went offline with a communication error
COMMUNICATION_ERROR
API returned error GET https://fal-3a.prd.eu.dp.vwg-connect.com/fs-car/promoter/portfolio/v1/Audi/DE/vehicle//WAUZZZXXXX/carportdata (HTTP 400 Bad Request), result = {"error":{"errorCode":"gw.error.parameter","description":"Invalid VIN"}}
The msg is directly out of the UI. Unfortunatley I cannot find anything in the logs. The VIN in the link is the correct VIN I changed it for this post.
After disabling and enabling the bridge is online again and channels have been updated.
I’ll enable TRACE logging again and wait if it happens again.
Strange, maybe I need to add a recovery after thing went offline
@markus7017 binding is now stable for 36 hours or so.
But still none of the switches ar working for me. The switches themselves also do not represent the state from the car. The state items show the correct (like climater state shows “heating” but the switch stays “OFF”. The same with locked vehicle).
None of the positions are shown in the items but I see in the logs at least on location beeing returned.
I attached a log that started logging this morning. I tried the switches right then.
carnet.log (714.6 KB)
I confirm this behavior with my installation
I updated the DEV build, now works with A6 and E-Tron (different URLs for API access)
I check the code, each time you see a successful status update the binding computes the switch values for channels lock, maintenance required, tires ok, windows closed.
Please not: This is based on polling, so it will take a while if you lock the car with the app until it shows up on the OH side - there is no way to register something like an event callback.
I updated the DEV build and implemented periodic status update requests, please check if this makes a difference
Thanks for your work on this binding!
I’m ready to set this up, but I’m a bit confused about something that’s pretty fundamental…
Car: 2021 Audi Q5
Country: US
I’ve set up an account on the Audi web site, and I’m able to login successfully through the web site, and using the MyAudi smartphone app.
However, I see the binding is using the following URL to authenticate to get the refresh and access tokens. But, the account I created above isn’t a valid account here.
https://identity.vwgroup.io/oidc/v1/authorize?response_type=token%20id_token&client_id=XXXXX%
40apps_vw-dilab_com&redirect_uri=myaudi%3A%2F%2F%2F&scope=address%20profile%20badge%20birthdate%20birthplace%20nationalIdentifier%20nationality%20profession%20email%20vin%20phone%20nickname%20name%20picture
%20mbb%20gallery%20openid&state=YYYYY&nonce=ZZZZZ==&prompt=login&ui_locales=de-DE%20de
Am I missing something pretty basic?