homeassistant-volkswagencarnet icon indicating copy to clipboard operation
homeassistant-volkswagencarnet copied to clipboard

Support for We ConnectGO

Open lweberru opened this issue 3 years ago • 16 comments

Hi,

ever tried to get this component running for a Sharan (newest model)? All I get in the debug log is: 2021-05-16 11:22:56 DEBUG (MainThread) [custom_components.volkswagencarnet] Updating data from volkswagen WeConnect 2021-05-16 11:22:56 DEBUG (MainThread) [custom_components.volkswagencarnet] Finished fetching volkswagencarnet data in 0.009 seconds

But the entities keep unavailable.

SHARAN CL DT von Volkswagen Firmware: 2020

is all what gets discovered.

Regards Lukas

lweberru avatar May 16 '21 13:05 lweberru

Silly question maybe, but does it work in the WeConnect app?

JohNan avatar May 16 '21 13:05 JohNan

The WeConnectGo works as expected. The WeConnect works but is quite a useless App with not much content. Only usefull thing is to send navi targets to the car. But the WeConnectGo does all the rest. So its the combi of 2 Apps. Dont know why VW is so silly to have the functions splitted into 2 apps. Lukas

lweberru avatar May 16 '21 14:05 lweberru

Hi Lukas - as per the Bug template - please provide us with the JSON response and other detailed info so that we can help you debug.

tubalainen avatar May 22 '21 17:05 tubalainen

Hi,

I added some more debug flags. Now I get following debug logs:

2021-05-23 12:17:23 DEBUG (MainThread) [vw_connection] Using service https://msg.volkswagen.de
2021-05-23 12:17:23 DEBUG (MainThread) [vw_connection] Initiating new login
2021-05-23 12:17:28 DEBUG (MainThread) [vw_connection] Got authorization endpoint
2021-05-23 12:17:29 DEBUG (MainThread) [vw_connection] Authenticating with email and password.
2021-05-23 12:17:30 DEBUG (MainThread) [vw_connection] Parsing login response.
2021-05-23 12:17:30 DEBUG (MainThread) [vw_connection] Login successful, received authorization code.
2021-05-23 12:17:30 DEBUG (MainThread) [vw_connection] Trying to fetch user identity tokens.
2021-05-23 12:17:30 DEBUG (MainThread) [vw_connection] User identity token verified OK.
2021-05-23 12:17:30 DEBUG (MainThread) [vw_connection] Trying to fetch api tokens.
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] VW-Group API token verified OK.
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] Fetching vehicles associated with account
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/DE/vehicles"
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] Request for "https://msg.volkswagen.de/fs-car/usermanagement/users/v1/VW/DE/vehicles" returned with status code [200]
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] Found vehicle(s) associated with account.
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] Going to call vehicle updates
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] HTTP GET "https://mal-1a.prd.ece.vwg-connect.com/api/cs/vds/v1/vehicles/<MY_VID>/homeRegion"
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] Request for "https://mal-1a.prd.ece.vwg-connect.com/api/cs/vds/v1/vehicles/<MYID>/homeRegion" returned with status code [200]
2021-05-23 12:17:32 DEBUG (MainThread) [vw_vehicle] Get homeregion for VIN <MY_VID>
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] HTTP GET "https://msg.volkswagen.de/fs-car/vehicleMgmt/vehicledata/v2/VW/DE/vehicles/<MY_VID>"
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] Attempting extraction of subject from identity token.
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] HTTP GET "https://customer-profile.apps.emea.vwapps.io/v1/customers/<MY_CUSTOMER_ID>/realCarData"
2021-05-23 12:17:32 DEBUG (MainThread) [vw_connection] Request for "https://customer-profile.apps.emea.vwapps.io/v1/customers/<MY_CUSTOMER_ID>/realCarData" returned with status code [200]
2021-05-23 12:17:33 DEBUG (MainThread) [vw_connection] Request for "https://msg.volkswagen.de/fs-car/vehicleMgmt/vehicledata/v2/VW/DE/vehicles/<MY_VID>" returned with status code [200]
2021-05-23 12:17:33 DEBUG (MainThread) [vw_vehicle] Attempting discovery of supported API endpoints for vehicle.
2021-05-23 12:17:33 DEBUG (MainThread) [vw_connection] HTTP GET "https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/operationlist/v3/vehicles/<MY_VID>"
2021-05-23 12:17:33 DEBUG (MainThread) [vw_connection] Request for "https://mal-1a.prd.ece.vwg-connect.com/api/rolesrights/operationlist/v3/vehicles/<MY_VID>" returned with status code [200]
2021-05-23 12:17:33 DEBUG (MainThread) [vw_vehicle] API endpoints: {'rheating_v1': {'active': False}, 'rclima_v1': {'active': False}, 'rlu_v1': {'active': False}, 'trip_statistic_v1': {'active': False}, 'statusreport_v1': {'active': False}, 'rbatterycharge_v1': {'active': False}, 'rhonk_v1': {'active': False}, 'carfinder_v1': {'active': False}}
2021-05-23 12:17:33 DEBUG (MainThread) [vw_connection] Going to call vehicle updates

I removed my VIN and CUSTOMER_ID from debug log...

Lukas

lweberru avatar May 23 '21 07:05 lweberru

Just a control question. Are you using the OBD dongle called "We Connect Go"?

tubalainen avatar May 25 '21 07:05 tubalainen

Yes I have that dongle within the car. Is that the problem?

lweberru avatar May 25 '21 16:05 lweberru

We have recently discovered that Volkswagen have split up the services into three different backends and apps. "We Connect" - This custom custom component - We Connect service built into the car "We Connect Go" - Not this custom component (at this moment in time) - Using the OBD dongle "Volksvagen We Connect ID" - Not this custom component - New service for the new ID cars, new control units in the cars

In regards to your JSON response - let me reach out to @JohNan and @robinostlund to see if we can accomodate the "We Connect GO" users hence they indeed can login. image

tubalainen avatar May 25 '21 17:05 tubalainen

I think we need to sniff the traffic from the We Connect Go app to be able to get any further. Since I don't have a car that is compatible someone else have to do it.

JohNan avatar May 25 '21 19:05 JohNan

Ok, as I have this kind of dongle, i could do the sniffer. Any tips how to sniffer iphone/ipad traffic?

lweberru avatar May 27 '21 06:05 lweberru

HI to all

Is it working "We connect go" Application in Home Assistant? I have tried, but it is not working for me

Regards

daniperaleda avatar Oct 07 '21 06:10 daniperaleda

For me it does not

lweberru avatar Oct 07 '21 15:10 lweberru

@JohNan @tubalainen my spontaneously feeling says that this should be an own integration? for me it is 2 separate products and different ways to get the information?

robinostlund avatar Feb 01 '22 08:02 robinostlund

Or -- shall we (re)make this integration to suit all existing and upcoming variants of the VW We Connect flavours?

To do this, we need many more active developers.

tubalainen avatar Feb 01 '22 08:02 tubalainen

As @robinostlund says it is two different products, but I also agree with @tubalainen that it might as well be a part of a We Connect Suit. But without a car that uses Go it's really hard to get it working. Or is there any working library already?

JohNan avatar Feb 02 '22 07:02 JohNan

Yes indeed, there are working libs/githubs out there for both We Connect ID and GO as well as Skoda and Seat. Do not know of the features nor how well they work.

They all share a similar (unknown to me how similar) backend architecture.

tubalainen avatar Feb 02 '22 07:02 tubalainen

I have a car with We Connect and We Connect Go - happy to help and test, but not a capable enough python coder. The available data from the ODB is incredible, and would be a great addition to the HA data provided from We Connect! We would need to build in a way that didn't create dependencies on the two components.

LeedsDBA avatar Apr 01 '22 15:04 LeedsDBA