Audi MMI support

The entire login mechanism probably changed, so just changing the server names is not likely to work.

I hope that this change is the first step in the integration of the different systems of Audi, VW, ŠKODA etc. That way we can hopefully have one codebase to integrate with all VW brands which will give better maintenance. And while I’m dreaming, maybe there will be an official api.

Thomas

Hmm,
When I try to log in, I have a very long address.
https://identity.vwgroup.io/signin-service/v1/signin/c7c15e7f-135c-4bd3-9875-63838616509f@apps_vw-dilab_com?relayState=19209ee5d30029032cbb730e1c8d7ce475e76f90

But like Thomas says, maybe whole infrastructure is different.
If you use the id.audi address, it looks like tou come in another environment than the “normal” userportal.
Hope you know what I mean.

yeah, i see that long link too, tried it also, no succes either :slight_smile:

The new login API is at https://app-api.live-my.audi.com/myaudiappidk/v1 but a code change is required to support it.

How do you know that link?

it’s from the Android client in version 3.20

{
	"issuer": "https://identity.vwgroup.io",
	"authorization_endpoint": "https://identity.vwgroup.io/oidc/v1/authorize",
	"token_endpoint": "https://app-api.my.audi.com/myaudiappidk/v1/token",
	"revocation_endpoint": "https://app-api.my.audi.com/myaudiappidk/v1/revoke",
	"end_session_endpoint": "https://identity.vwgroup.io/oidc/v1/logout",
	"jwks_uri": "https://identity.vwgroup.io/oidc/v1/keys",
	"userinfo_endpoint": "https://identity-userinfo.vwgroup.io/oidc/userinfo",
	"response_types_supported": ["code", "token", "id_token", "code token", "code id_token", "token id_token", "code token id_token"],
	"subject_types_supported": ["public"],
	"id_token_signing_alg_values_supported": ["RS256"],
	"code_challenge_methods_supported": ["S256"],
	"scopes_supported": ["aboutMe", "address", "affinity", "badge", "battery", "birthdate", "birthplace", "carConfigurations", "carMeasurements", "cars", "charging", "climatisation", "dealers", "doors_windows", "driversLicense", "ecus", "email", "errors", "fuelLevels", "gallery", "intExtTemperature", "lock_unlock", "manageCharging", "manageClimatisation", "manageDestinations", "mbb", "mileage", "name", "nationalIdentifier", "nationality", "navigation", "nickname", "openid", "parking_position", "phone", "picture", "preferred_language", "profession", "profile", "range", "vehicleLights", "vehicleOnlineCapabilities", "vin", "warning_lights", "we_connect_vehicles", "wl_raw"],
	"claims_supported": ["iss", "sub", "aud", "iat", "exp", "nonce", "name", "email", "email_verified", "phone_number", "phone_number_verified", "updated_at"],
	"grant_types_supported": ["access_token", "refresh_token", "authorization_code", "client_credentials"],
	"ui_locales_supported": ["bg", "bs", "cs", "cs-CZ", "da", "da-DK", "da-GL", "de", "de-AT", "de-BG", "de-CH", "de-DE", "de-LI", "de-LU", "de-PL", "el", "el-CY", "el-GR", "en", "en-AE", "en-AL", "en-AM", "en-AU", "en-AZ", "en-BA", "en-BG", "en-BH", "en-BN", "en-BW", "en-CA", "en-CL", "en-CN", "en-CY", "en-DK", "en-FI", "en-GB", "en-GE", "en-GI", "en-GL", "en-GR", "en-HU", "en-ID", "en-IE", "en-IL", "en-IN", "en-IS", "en-JO", "en-KW", "en-KZ", "en-LS", "en-LT", "en-LV", "en-MD", "en-ME", "en-MK", "en-MT", "en-MY", "en-MZ", "en-NA", "en-NO", "en-NZ", "en-OM", "en-PH", "en-QA", "en-RO", "en-RS", "en-SA", "en-SE", "en-SG", "en-SG", "en-SK", "en-TH", "en-TW", "en-UA", "en-US", "en-UZ", "en-ZA", "es", "es-AD", "es-AR", "es-CL", "es-ES", "es-IC", "es-MX", "es-MX", "et", "et-EE", "fi", "fi-FI", "fr", "fr-AD", "fr-BE", "fr-CA", "fr-CH", "fr-FR", "fr-LU", "fr-MC", "hr", "hr-HR", "hu", "hu-HU", "is", "it", "it-CH", "it-IT", "it-SM", "it-VA", "ja", "ja-JP", "ko-KR", "lt", "lt-LT", "lv", "lv-LV", "mk", "nl", "nl-BE", "nl-NL", "no", "no-NO", "pl", "pl-PL", "pt", "pt-BR", "pt-BR", "pt-PT", "ro", "ru", "ru-BY", "ru-BY", "ru-RU", "ru-UA", "sk", "sk-SK", "sl", "sl-SI", "sq", "sr", "sv", "sv-SE", "tr", "tr-TR", "uk", "zh", "zh-CN", "zh-TW"],
	"acr_values_supported": ["https://identity.vwgroup.io/assurance/loa-2", "https://identity.vwgroup.io/assurance/loa-3"],
	"token_endpoint_auth_methods_supported": ["client_secret_post", "client_secret_basic"]
}

And did it work @pergola.fabio?

Nope, tried all possible logins, code needs to be changed too, I think its a small change, if you look at post above, the json looks similar

There is progress made on this issue here.

cool, thnx for sharing
so if new audiapi is released, we can maybe use a custom manifest file

Happy to report that the latest version of integration works perfectly! All of my Q5 data is back in HA!

same here, great support by @arjenvr

but after the last update of audi connect (today, 14.09) my hassio is broken, wont start up

I see 2 updates , I did the first update from today, that works… Maybe rollback to previous version?

but how, have only a shell on the system
first update was fine to me too, happy that it works again, spen some beer, next update knocks me out :slight_smile:

After update i get an error on the added dependecy:

Setup failed for beautifulsoup4: Integration not found.

:frowning: i’ve created an issue on the Github page but i’m not sure if this is maby an issue on my installation:

just remove the audi folder from your custom component dir

edit, also for new dependencies, reboot your complete system, a restart is most of the times not enough…

dependies are installed upon full reboot

“ha snapshot” toke me back to live

I changed the manifest file