ConnectedCar Binding myAudi, Volkswagen, VW ID, Skoda, Enyaq, Seat, Ford, WeCharge

I hope to be able to release a new version next week. I will keep you posted.

I’m currently experimenting with @gforums to get the preHeater working correctly. Could be that there will be a new or updated pull request during the coming days.

@HSorgYves I’ve updated Fix vehicle detection for carnet by wrosenauer · Pull Request #1 · HSorgYves/openhab-addons · GitHub now with a state which was confirmed to be working for @gforums . From my point this could be merged into your release and hopefully doesn’t break other things. Please let me know if I should/need to change anything in the PR or the PR itself. Not sure exactly how you are building your release.

1 Like

Hello there =)

I just upgrade from OpenHab v3.4.5 to v4.0.4 and now have problems getting the binding to work: I installed both releases from the Github however both of them have problems with the login of the Audi account:

Bridge connectedcar:myaudi:Auto_System_Konto "Auto_System_Konto"@"System" [user="XXX", password="YYY"] {
    Thing idvehicle Auto_System_Audi "Auto_System_Audi"@"System" [vin="ZZZ", pollingInterval=15, enableAddressLookup=true]
}

The log shows the following

15:20:44 (04. 11.)    Thing 'connectedcar:myaudi:Auto_System_Konto' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (NOT_YET_READY)
15:20:44 (04. 11.)    Thing 'connectedcar:idvehicle:Auto_System_Konto:Auto_System_Audi' changed from UNINITIALIZED (HANDLER_MISSING_ERROR) to UNINITIALIZED (NOT_YET_READY)
15:20:46 (04. 11.)    Thing 'connectedcar:idvehicle:Auto_System_Konto:Auto_System_Audi' changed from UNINITIALIZED (NOT_YET_READY) to UNINITIALIZED (BRIDGE_UNINITIALIZED)
15:20:46 (04. 11.)    Thing 'connectedcar:myaudi:Auto_System_Konto' changed from UNINITIALIZED (NOT_YET_READY) to INITIALIZING
15:20:46 (04. 11.)    Thing 'connectedcar:myaudi:Auto_System_Konto' changed from INITIALIZING to UNKNOWN
15:20:46 (04. 11.)    Thing 'connectedcar:idvehicle:Auto_System_Konto:Auto_System_Audi' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
15:20:46 (04. 11.)    Thing 'connectedcar:idvehicle:Auto_System_Konto:Auto_System_Audi' changed from INITIALIZING to UNKNOWN: Initializing
15:21:16 (04. 11.)    Auto_System_Audi: Reverse address lookup based on vehicle's geo position is enabled (using OpenStreetMap)
15:21:50 (04. 11.)    Thing 'connectedcar:myaudi:Auto_System_Konto' changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR): Initialization failed: API call failed GET https://identity.vwgroup.io/signin-service/v1/consent/users/bXXX/YYY@apps_vw-dilab_com?scopes=address%20badge%20birthdate%20birthplace%20email%20gallery%20mbb%20name%20nationalIdentifier%20nationality%20nickname%20phone%20picture%20profession%20profile%20vin%20openid&relayState=f8cd1d1c2271566da72636d78f04c860cd8c26b9&callback=https://identity.vwgroup.io/oidc/v1/oauth/client/callback&hmac=713eb881e711050361730e36dbda4ed9d56c402544e1970c429f43f3c2eff7ea (HTTP 500 Internal Server Error), result = 

<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/html">

<head>

    <meta charset="utf-8"/>

    <meta name="viewport"

          content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no"/>

    <meta name="identitykit" content="generalErrorBranded"/>

    

        <title>Audi ID</title>

    <link href="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/styles/audi-theme.css"

          rel="stylesheet"/>

    <link rel="apple-touch-icon" sizes="180x180"

          href="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/favicons/audi/apple-touch-icon.png"/>

    <link rel="icon" type="image/png" sizes="32x32"

          href="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/favicons/audi/favicon-32x32.png"/>

    <link rel="icon" type="image/png" sizes="16x16"

          href="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/favicons/audi/favicon-16x16.png"/>

<script src="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/javascripts/base/jquery-3.5.0.min.js"></script>

<script type="application/javascript"

        src="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/javascripts/base/PasswordRevealer.js"></script>

<script type="application/javascript"

        src="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/javascripts/base/InputFieldSessionPersistence.js"></script>

<script type="application/javascript"

        src="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/javascripts/base/OnDocumentLoaded.js"></script>

<script type="application/javascript"

        src="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/javascripts/base/TimeElapsedCounter.js"></script>

<script type="application/javascript"

        src="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/javascripts/base/consent.js"></script>

<script type="application/javascript">

//<![CDATA[

    new OnDocumentLoaded(document, callback);

    function callback() {

        new PasswordRevealer(document, document.querySelector('[type="password"]'), '#input_password_revealer');

        new InputFieldSessionPersistence(document.getElementById("input_email"), window);

    }

//]]>

</script>

    <script>

        window._IDK = {

            templateModel: {"clientLegalEntityModel":{"clientId":"f4d0934f-32bf-4ce4-b3c4-699a7049ad26@apps_vw-dilab_com","clientAppName":"myAudi App","clientAppDisplayName":"myAudi App","legalEntityInfo":{"name":"Audi","shortName":"AUDI","productName":"Audi ID","theme":"audi","defaultLanguage":"de","termAndConditionsType":"DEFAULT","legalProperties":{"revokeDataContact":"","imprintText":"IMPRINT","countryOfJurisdiction":"DE"}},"informalLanguage":false,"legalEntityCode":"audi","imprintTextKey":"imprint.link.text"},"template":"generalErrorBranded","hmac":null,"useClientRendering":false,"titleKey":null,"title":null,"errorCode":"26578904-bd6e-4d76-9161-b1a291c47481-20231104-142150309","loginUrl":"https://identity.vwgroup.io/oidc/v1/authorize?client_id=f4d0934f-32bf-4ce4-b3c4-699a7049ad26@apps_vw-dilab_com&scope=address+badge+birthdate+birthplace+email+gallery+mbb+name+nationalIdentifier+nationality+nickname+phone+picture+profession+profile+vin+openid&response_type=code&redirect_uri=myaudi%3A%2F%2F%2F&nonce=MTY5OTEwNzY0Njc3Nw==&state=0a42043c-c8f7-44f9-bc34-7f292f2ff0f1"},

            disabledFeatures: {

                isFooterEnabled: true,

            },

            currentLocale: 'en',

            csrf_parameterName: '_csrf',

            csrf_token: 'XXX',

            userSession: {

                userId: 'bXXX',

                countryOfResidence: ''

            },

            baseUrl: '',

            consentBaseUrl: ''

        }

    </script>

</head>

<body>

    <div id="page-container-background">

    </div>

    <div class="body-container">

        <div class="page-container generalErrorBranded-page">

            <div class="page-content">

                <div class="hide spacer-top"></div>

                    <div id="legal-entity" class="legal-entity">

                        <div class="legal-entity-logo" role="img"

                             aria-label="Audi logo"

                             title="Audi logo"></div>

                        <div id="legal-entity-name" class="legal-entity-name">

                            Audi ID

                        </div>

                    </div>

<form class="content" id="gotoLoginForm" name="gotoLoginForm">

    <div id="title" class="title error-title">

        <div class="primary-title">Something went wrong</div>

        <div class="sub-title">

            Please try again.

            <br/>

            <br/>

            If the problem continues contact Audi support.

        </div>

    </div>

    <div class="error-content">

        Error code: 26578904-bd6e-4d76-9161-b1a291c47481-20231104-142150309

    </div>

        <div class="btn-group-single">

    <button

            id="login-btn"

            

            onclick="window.location.href='https://identity.vwgroup.io/oidc/v1/authorize?client_id=f4d0934f-32bf-4ce4-b3c4-699a7049ad26@apps_vw-dilab_com&amp;scope=address+badge+birthdate+birthplace+email+gallery+mbb+name+nationalIdentifier+nationality+nickname+phone+picture+profession+profile+vin+openid&amp;response_type=code&amp;redirect_uri=myaudi%3A%2F%2F%2F&amp;nonce=MTY5OTEwNzY0Njc3Nw==&amp;state=0a42043c-c8f7-44f9-bc34-7f292f2ff0f1';"

            

            class="btn zenith-button btn-active"

            type="button"

    >

        Log in

    </button>

        </div>

</form>

                <div class="hide spacer-bottom"></div>

    <div class="idk-react-footer"></div>

            </div>

        </div>

    <div class="idk-react-footer"></div>

    </div>

<script type="text/javascript" src="https://identity-cdn.vwgroup.io/assets/26ba98d1faaa49a256bc84e0bcb702913c1b2a9b/signIn.bundle.js"></script>

</body>

</html>

15:21:50 (04. 11.)    Thing 'connectedcar:idvehicle:Auto_System_Konto:Auto_System_Audi' changed from UNKNOWN: Initializing to OFFLINE (BRIDGE_OFFLINE)

The snapshot from github worked flawlessly on OpenHAB v3.4.5.
Do you have any hints for me?

Don’t worry today.
Also the Volkswagen App gets a internal server error today.
I can’t connect to Volkswagen Server since 1 day 22 hours 12 mins.
No App Connection, no Connected Car, no EVCC…

I think we must wait.

2 Likes

Okay, would you please be so kind and let me know when it works again? Then I will try and reinstall the binding.
Thank you! =)

In general it works again since late saturday.
But in other forums there are some issues reported which may affect certain brands and so.
At least my Audi and Cupra get updates w/o issues apparently.

Yep, same here.
Should mostly work now.

Can confirm, works with OpenHab 4.0.4 and Audi. (Had to add some {unit="km"} since I switched from OH 3 to 4)

FYI: In other forums it has been reported that at least Skoda (but I wouldn’t expect a real difference to the other VW brands) might block API requests. Users then see something like this in the official app:

which says (in german) that it was identified that an inofficial application/service was connected and the API has been blocked because of that. Apparently this seems to be a temporary block but users of the binding should have that in mind. Also it’s unclear how it is identified. Eventually the refresh interval in the binding should not be too agressive? (Default is 15 minutes AFAIK which might be too often?)

1 Like

They are much more likely to check the user agent or a header to identify and “official” app. I am also not sure if this happens to VW/Seat owners since skoda and audi running own Infrastrcture while VW and Seat seems to share their infrastructure. I am pulling my volkswagen every 10 minutes without any problems

My Audi shows no such signs of limitations, the binding is still working well. Seems to be some Skoda fun only (up to now}.

thanks for the response, appreciated

I installed yves snapshot yesterday, created a thing and some items like lockstate and it worked for my Audi e-tron (2020). Thanks for the add-on. :slight_smile:
Next I need to test some more details, of course.
One open question from my side would be:
Is yves snapshot the most actual/complete now, or are the branches/forks devided and different in functionality?

I am making slower progress than expected. But I am making progress. Thanks for all the inputs which will be in the next release.

1 Like

HI, I’m sometimes I try with Ford Account but the binding still not work…
Today the error is :

Status:

OFFLINE

COMMUNICATION_ERROR

Initialization failed: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 165 path $.error ( Unable to parse ‘{“error_description”:“CSIAQ0155E An invalid client authentication was provided for the client with the identifier [9fb503e0-715b-47e8-adfd-ad4b7770f73b].”,“error”:“invalid_client”}’)

FYI
thanks