Jump to content
Bo (ABRP)

Alpha Feedback - Audi e-tron

Recommended Posts

Hi,

in a different froum (https://www.motor-talk.de/forum/api-fuer-online-services-t6656742.html) I found some guidelines how to access the data of the myAudi Website/App. Maybe this could help to get e-tron connected to ABBR.

You need to have an myAudi account, with that you can get an authorisation token. The API is in RESTful. As I'm no developer I will just copy the cURL from the motor-talk.de forum:

Quote

 

Authorisation:

curl --header "Content-Type: application/x-www-form-urlencoded" --data 'grant_type=password&username=Username deines MyAudi Account&password=Passwort deines MyAudi Account' --request POST https://msg.audi.de/fs-car/core/auth/v1/Audi/DE/token

In the response you will find the access_token.

 

Retrieve vehicle list (if chassis number not known)

curl --header "Accept: application/json" --header "X-App-Name: eRemote" --header "X-App-Version: 1.0.0" --header "User-Agent: okhttp/2.3.0" --header "Authorization: AudiAuth 1 access_token" https://msg.audi.de/fs-car/usermanagement/users/v1/Audi/DE/vehicles

Retrieve status information

curl --header "Accept: application/json" --header "X-App-Name: eRemote" --header "X-App-Version: 1.0.0" --header "User-Agent: okhttp/2.3.0" --header "Authorization: AudiAuth 1 access_token" https://msg.audi.de/fs-car/bs/vsr/v1/Audi/DE/vehicles/FAHRGESTELLNUMMER/status

Retrieval of charging information

curl --header "Accept: application/json" --header "X-App-Name: eRemote" --header "X-App-Version: 1.0.0" --header "User-Agent: okhttp/2.3.0" --header "Authorization: AudiAuth 1 access_token" https://msg.audi.de/fs-car/bs/batterycharge/v1/Audi/DE/vehicles/FAHRGESTELLNUMMER/charger

 

The current SOC can then be found in the JSON, for example: charger/status/batteryStatusData/stateOfCharge/content

 

 

Share this post


Link to post
Share on other sites

Hi,

e-tron 50 and e-tron 55 got an update: https://www.audi-mediacenter.com/en/press-releases/better-efficiency-and-longer-range-technical-update-for-the-audi-e-tron-12382

e-tron Sportback 50 and e-tron Sportback 55 are now also available for order: https://www.audi-mediacenter.com/en/press-releases/suv-coupe-for-the-e-tron-familythe-audi-e-tron-sportback-12339

I did my best to write the current values from the configuration into a table. But additional variants are possible (for example wheels). However, these differ only minimally in consumption and range.

image.png.3016c06ef83de79ccfaf4db989774807.png

All values without guarantee.

Share this post


Link to post
Share on other sites

Hello,

I have the e-tron since September and already drived 9000 kms. I’m surprised that the post of Sven has no answer yet, it seems very exciting that Audi has an API ! So we can connect our Audi to ABRP !

The consumption for me is higher than the suggested. At this moment I think I’m around 30 kWh / 100 Kms, even 32 at around 7°

What is the temperature for the parameters consumption ? 20 ° ?

Bo, can you tell us if you can manage the Audi API ? It should be possible since MyAudi can fetch the % of battery and kms avaible 

Jean Luc

Share this post


Link to post
Share on other sites
5 hours ago, Jean-Luc said:

Hello,

I have the e-tron since September and already drived 9000 kms. I’m surprised that the post of Sven has no answer yet, it seems very exciting that Audi has an API ! So we can connect our Audi to ABRP !

The consumption for me is higher than the suggested. At this moment I think I’m around 30 kWh / 100 Kms, even 32 at around 7°

What is the temperature for the parameters consumption ? 20 ° ?

Bo, can you tell us if you can manage the Audi API ? It should be possible since MyAudi can fetch the % of battery and kms avaible 

Jean Luc

I've used a Python https://github.com/davidgiga1993/AudiAPI api to access data from my e-tron and get it into "Home Assistant" see hass.io, but Audi changed the handling of SSL certificates three weeks ago, so it no longer works. The author of the API is aware of it, so I'm hoping it can resolved.

If so, the Python code can be used as a reference.

 

Share this post


Link to post
Share on other sites

I am not a specialist, so please explain what this API-post means. How can I connect my e-tron to ABRP? Can I plan routes and send them to the car? Better yet: can i use ABRP in the car now?? Or what exactly?

I would certainly share your excitement, if I (and other simple e-tron owners) would be able to understand what this is all about.

Share this post


Link to post
Share on other sites

Hi Herman,

To talk with our e-tron cars, ABPR needs to access informations of the car like myAudi app do. It is important that ABPR knows the real percentage of battery during your travel.

In a previous post, I have read that the developper of ABPR will be happy to have access to those informations.

The API is the way to access it. And Sven have found it. So he has shared the API documentation here :)

I use abetterroute planner to pan my route, but then I share it with Waze that I use in the car (via AppleCar Play)

Works fine for me. 

The app ABPR is not yet avaible in AppleCar Play. I guess it will possible in a next version ?

 

 

Share this post


Link to post
Share on other sites

Picture taken earlier this week: charging at a Fastned station in the Netherlands. E-tron is charging at... 152 kw, which is 2 kw more than its maximum:-).

20200108_152146.jpg

  • Like 1

Share this post


Link to post
Share on other sites
On 12/25/2019 at 5:59 PM, Jean-Luc said:

Hello,

I have the e-tron since September and already drived 9000 kms. I’m surprised that the post of Sven has no answer yet, it seems very exciting that Audi has an API ! So we can connect our Audi to ABRP !

The consumption for me is higher than the suggested. At this moment I think I’m around 30 kWh / 100 Kms, even 32 at around 7°

What is the temperature for the parameters consumption ? 20 ° ?

Bo, can you tell us if you can manage the Audi API ? It should be possible since MyAudi can fetch the % of battery and kms avaible 

Jean Luc

Is that on average, including short trips?

The consumption for me is _lower_ than suggested. I’ve done some substantial testing and over 22.000 kms, and find that the 2019 e-tron quattro (83,6 kWh w/mirrors) uses under 235 Wh/km. doing 110 km/h on a roundtrip with neutral weather; 18-20C, no wind, no traffic, 20 inch wheels, summer tires and 2,9 bar tire pressure. Drive mode Efficiency, 21C,fan speed 1. 

240 Wh/km should be the reference consumption for the 2019 model (83,6 kWh).

Probably 235 Wh/km for the 2020 e-tron 55 quattro (86,5 kWh) and e-tron 50 quattro (64,7 kWh). Without mirrors is like -3 Wh/km..?

Edited by EViking

Share this post


Link to post
Share on other sites

 

On 12/27/2019 at 5:20 PM, Jean-Luc said:

Hi Herman,

To talk with our e-tron cars, ABPR needs to access informations of the car like myAudi app do. It is important that ABPR knows the real percentage of battery during your travel.

In a previous post, I have read that the developper of ABPR will be happy to have access to those informations.

The API is the way to access it. And Sven have found it. So he has shared the API documentation here 🙂

I use abetterroute planner to pan my route, but then I share it with Waze that I use in the car (via AppleCar Play)

Works fine for me. 

The app ABPR is not yet avaible in AppleCar Play. I guess it will possible in a next version ?

 

 

 

Hi,

is there any progress on ABRP live data for Audi etron?

 

Tomi

 

Share this post


Link to post
Share on other sites
On 7/29/2019 at 12:49 PM, Sven said:

Hi,

in a different froum (https://www.motor-talk.de/forum/api-fuer-online-services-t6656742.html) I found some guidelines how to access the data of the myAudi Website/App. Maybe this could help to get e-tron connected to ABBR.

You need to have an myAudi account, with that you can get an authorisation token. The API is in RESTful. As I'm no developer I will just copy the cURL from the motor-talk.de forum:

 

I can confirm that this API works.

 

Example response at /charger/status from my e-tron 50:

{
    "chargerStatus": {
        "chargingStatusData": {
            "actualChargeRate": {
                "content": 0,
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "chargingMode": {
                "content": "off",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "chargeRateUnit": {
                "content": "km_per_h",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "chargingStateErrorCode": {
                "content": 0,
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "chargingReason": {
                "content": "invalid",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "chargeTargetTime": {
                "hour": 16,
                "month": 5,
                "offset": 0,
                "year": 2020,
                "day": 15,
                "timestamp": "2020-05-18T07:23:04Z",
                "minute": 10
            },
            "chargingPower": {
                "content": 0,
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "externalPowerSupplyState": {
                "content": "unavailable",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "energyFlow": {
                "content": "off",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "chargingState": {
                "content": "off",
                "timestamp": "2020-05-18T07:23:04Z"
            }
        },
        "cruisingRangeStatusData": {
            "engineTypeFirstEngine": {
                "content": "typeIsElectric",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "primaryEngineRange": {
                "content": 146,
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "hybridRange": {
                "content": 146,
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "engineTypeSecondEngine": {
                "content": "unsupported",
                "timestamp": "2020-05-18T08:01:22Z"
            }
        },
        "ledStatusData": {
            "ledColor": {
                "content": "none",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "ledState": {
                "content": "off",
                "timestamp": "2020-05-18T07:23:04Z"
            }
        },
        "flapStatusData": {
            "flapState": {
                "content": "invalid",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "flapLockState": {
                "content": "flapALocked",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "flapErrorState": {
                "content": "noError",
                "timestamp": "2020-05-18T07:23:04Z"
            }
        },
        "batteryStatusData": {
            "stateOfCharge": {
                "content": 59,
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "remainingChargingTime": {
                "content": 65535,
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "remainingChargingTimeTargetSOC": {
                "content": "maxSOC",
                "timestamp": "2020-05-18T07:23:04Z"
            }
        },
        "plugStatusData": {
            "plugState": {
                "content": "disconnected",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "plugConnectionState": {
                "content": "noPlugConnected",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "plugLockState": {
                "content": "noPlugLocked",
                "timestamp": "2020-05-18T07:23:04Z"
            },
            "lockState": {
                "content": "unlocked",
                "timestamp": "2020-05-18T07:23:04Z"
            }
        }
    }
}

 

Share this post


Link to post
Share on other sites

This is very interesting...but has anyone from the UK tried to access the API? The URL mentioned on the link above is for a myAudi account registered in Germany, I have tried various permutations such as msg.audi.com or msg.audi.co.uk, plus changed the "DE" to "GB" or "UK" but I simply get an "unsupported_grant_type" error.

Any guidance would be greatly appreciated!

Marc

Share this post


Link to post
Share on other sites

To give some info to you that I received from ABRP themselves when I was hoping they would use the Jaguar API to get live data, it wasn’t possible. Unfortunately, one of the things they need is a live report on power being consumed (or added when charging) and the API does not provide that data. I can’t be certain for the Audi, but I strongly suspect that it also doesn’t provide that figure via the API. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


Contact Us

Bo - Lead Developer and Tesla owner: bo@abetterrouteplanner.com

Jason - New Car Models, Developer and Bolt owner : jason@abetterrouteplanner.com

Idreams - Forums Administrator, Forums Developer and Tesla owner : idreams@abetterrouteplanner.com

×
×
  • Create New...