Deprecated Binding - Volkswagen We Connect

Hi @jannegpriv

First of all, thanks for your answer :wink:

I said I was using an OH 3.1, it was a mistake, sorry.

My OH is a 3.0.1 version, through Docker (on Synology).

My logs with DEBUG mode give these lines:

2021-02-27 17:24:15.690 [DEBUG] [econnect.internal.VWWeConnectSession] - VWWeConnectSession:initialize
2021-02-27 17:24:15.691 [DEBUG] [nal.handler.VWWeConnectBridgeHandler] - VWWeConnectBridgeHandler - Refresh thread is up’n running! job: java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@529a9b7c[Not completed, task = java.util.concurrent.Executors$RunnableAdapter@3c0c9f31[Wrapped task = org.openhab.binding.vwweconnect.internal.handler.VWWeConnectBridgeHandler$$Lambda$1092/0x0000000100d96c40@3efe614e]]
2021-02-27 17:24:15.692 [DEBUG] [econnect.internal.VWWeConnectSession] - VWWeConnectSession:refresh
2021-02-27 17:24:15.693 [DEBUG] [econnect.internal.VWWeConnectSession] - areWeLoggedIn() - Checking if we are logged in
2021-02-27 17:24:15.694 [INFO ] [econnect.internal.VWWeConnectSession] - Attempting to log in to https://www.portal.volkswagen-we.com
2021-02-27 17:24:15.695 [DEBUG] [econnect.internal.VWWeConnectSession] - Login URL: We Connect
2021-02-27 17:24:15.696 [DEBUG] [econnect.internal.VWWeConnectSession] - getVWWeConnectAPI: We Connect
2021-02-27 17:24:15.698 [WARN ] [econnect.internal.VWWeConnectSession] - Caught Exception java.util.concurrent.ExecutionException: java.util.concurrent.RejectedExecutionException: HttpClient@745769f8{STOPPED} is stopped for URL string We Connect
2021-02-27 17:24:15.699 [DEBUG] [econnect.internal.VWWeConnectSession] - Login failed, HTTP response: null
2021-02-27 17:24:15.701 [WARN ] [nal.handler.VWWeConnectBridgeHandler] - Refresh failed!
2021-02-27 17:24:15.703 [DEBUG] [.internal.handler.VWWeConnectHandler] - bridgeStatusChanged bridgeStatusInfo: OFFLINE (COMMUNICATION_ERROR)
2021-02-27 17:24:15.708 [DEBUG] [.internal.handler.VWWeConnectHandler] - bridgeStatusChanged bridgeStatusInfo: OFFLINE (COMMUNICATION_ERROR)

I will PM you other logs (with more details).

Thanks again @jannegpriv for your help.

Arnaud

Are you sure, that your logon data (userID, Passwd) is correct?

I’m running 3.1 on rpi4 and getting a warning, too. But a diffenrent on:

2021-02-27 20:05:25.602 [INFO ] [econnect.internal.VWWeConnectSession] - Attempting to log in to https://www.portal.volkswagen-we.com

2021-02-27 20:05:34.414 [WARN ] [econnect.internal.VWWeConnectSession] - Error code or JSON is null or empty on POST: url https://www.portal.volkswagen-we.com//portal/delegate/dashboard/xxxxx/-/rah/get-status, response {"errorCode":"2","timerCount":3}

==> /var/log/openhab/events.log <==

2021-02-27 20:05:36.968 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'vwweconnect:vwweconnectapi:c2f1483569' changed from UNKNOWN to ONLINE

2021-02-27 20:05:37.890 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'vwweconnect:vehicle:c2f1483569:24656b7cb0' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2021-02-27 20:05:37.894 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Arteon_TotalTripDistance' changed from 119.0 km to 0.0 km

2021-02-27 20:05:37.897 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Arteon_TotalDuration' changed from 488 min to 0 min

2021-02-27 20:05:37.900 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Arteon_Location' changed from 52.00,10.000 to 52.0,10.0

2021-02-27 20:05:37.903 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'Arteon_Temperature' changed from 5.0 °C to 0.0 °C

2

I can read the data / items from we-connet, but I can’t start teh remoteHeater:

2021-02-27 21:05:18.169 [WARN ] [.internal.handler.VWWeConnectHandler] - Failed to send https://www.portal.volkswagen-we.com//portal/delegate/dashboard/xxxxxx/-/rah/quick-start to the vehicle WVWZZZ3HZME501921 HTTP response: 302

2021-02-27 21:05:18.174 [WARN ] [.internal.handler.VWWeConnectHandler] - The vehicle xxxxxx failed to handle action remoteHeater true

Any idea?

Hi @Barnecke, does it work when you start the remote heater from the Webpage when you logged into the VW We Connect portal?
https://www.portal.volkswagen-we.com/

If that works, could you turn on log level TRACE and PM me the log?

Hi @jannegpriv , sorry for my delayed answer. In the meantime it worked sometimes and sometimes not, now it is working fine, I think it cause by VW.
Strange was only, that the binding and the WeConnect Appl was getting actual data, but activating remote heater was not possible.

I will have a look

Hello Jan,

First of all, thank you for the great work. Is it possible to implement the whole thing for the VW WeConnectID app?

Maybe it helps to see how the “competition” does it. I hope it is allowed to share the link: GitHub - TA2k/ioBroker.vw-connect: ioBroker Adapter for VW We connect and Skoda connect

Is there a way to virtually buy you a beer?

Again 1000 thanks for your work!

Hi @Lorddoener, thanks for your kind words. :slight_smile:

Regarding support for the app API I would set my hope to the Audi Carnet binding that @markus7017 is implementing.

This binding will be based on the Web API since I’m able to easily reverse engineer it, I’ve not been able to do that for the app API due to certificate pinning, but I think that Markus has succeded in doing that.

For the moment I have no plans for making the binding official but I will continue to support it. I hope that Markus binding in the future can be developed to support both Skoda, VW, Audi, one binding to rule them all :slight_smile:

Please see my comment on github. Since openHAB 3 has removed support for org.apache.commons*, your Binding does not start any longer. Tested with openHAB 3.1 M3.
Would it be possible to update to apache.commons 3 ???

Hi @hmerk!

I’m still running 3.0.1 in my sandbox but I can make a try to upgrade the coming week-end so that I have somewhere to test it besides my Eclipse environment, I’ll keep you posted!

1 Like

I actually did the upgrade tonight, my sandbox is using k3s and own built docker images and this was a really smooth and fast upgrade.

I’ve updated the 3.1.0-binding jar-file in the original post, it starts up in my 3.1.0.M3 sandbox :slight_smile:

image

1 Like

Excellent, will test tomorrow.

Excellent !!! It is working again.
Any chance to get this changes added to you PR, so we can have the binding released officially somme time ?

I think that it is maybe better to have one binding to rule them all, there is another binding that uses the App API that @markus7017 is developing, that also could be ported to support VW.
But I will continue to support this binding.

Hmmm, as far as I understood, the Carnet API he is using is not compatible with Volkswagen We Connect.
I really prefer a separate binding.
In the meantime, glad that you‘re further supporting your binding.

Ok, as of a mail received today, I have to revert my request.

Volkswagen informed me about closing down the We Connect portal April 27th 2021, moving to myVolkswagen…

I will discuss this with @markus7017

With the existing binding I use CarNet to get access to myAudi. CarNet is also available for Volkswagen, Skoda and other brands. Even all of them seems to use the same API there are differences with authentication (token management), service points (http endpoints & parameteers), but also car models, e.g. the ID.3 requires special handling. This is PIAS and the reason why I didn’t made the move to support VW or other brands so far. Fiddling out those things is time consuming (even I’m in contact with some other developers) and then from time to time things get changed :frowning: The ioBroker guy already has an implementation, which supports multiple brand, but with limited spare time…

This binding was working wonderfully for me, but it looks like VW just killed the WeConnect portal, which makes the binding useless at the moment. Does anybody know a solution for this?

VW moved the services to the myvolkswagen portal yesterday.
I think the API calls need to be adjusted for the new portal.

Maybe @jannegpriv can have a look on that and get the binding back to work.

1 Like

As @hmerk wrote above, Volkswagen has closed down the We Connect portal 27 of April, hence my binding will no longer work.

I think we should work for one binding for all VW owned brands and that also uses the App API instead of web API, I have my hope to the binding that @markus7017 has started on.

I have not received any information from VW regarding this close down, if anyone has more info on this please send me a PM!

2 Likes


I did receive this Dutch communication from VW on the topic a while ago:

OK, I have not received any info at all here in Sweden.

I think we need to help Markus with his CarNet based binding and get it to also support VW. The web based API will not be usable any more.

BR,

/Janne