robinostlund / homeassistant-volkswagencarnet

Volkswagen Carnet Component for home assistant
GNU General Public License v3.0
304 stars 60 forks source link

[Call to Action] WE NEED YOUR CREDENTIALS :) #526

Closed oliverrahner closed 4 months ago

oliverrahner commented 6 months ago

As part of our effort to bring back all functionality to this integration, the development team requires some credentials to Volkswagen accounts containing cars with specific sets of functionality.

What we already have:

What we need:

Terms

How? You could send your credentials to me, under <firstname>@<lastname>.me. It would also be possible/helpful to receive a mobile number for efficient coordination via Signal/Telegram/Whatsapp/SMS/whatever for any changes we would like to make to you car's configuration. If it helps you trust us, I would also be willing to get on a call with you so you can get to know me personally before handing out your credentials.

corneel27 commented 6 months ago

Why should I share my credentials? The integration is stopped working at all with the new vw-app (which works well with my credentials). I can not login with my credentials in the current integration, so why should this be possible for you?

robinostlund commented 6 months ago

Why should I share my credentials? The integration is stopped working at all with the new vw-app (which works well with my credentials).

I can not login with my credentials in the current integration, so why should this be possible for you?

As he is able to find the root cause and not just saying it doesn't work 🧐. You don't need to share but don't complain about that this integration is not working 😊

oliverrahner commented 6 months ago

Thanks @robinostlund :) I am just trying with another user if also the "invitation" feature within the VW app would work, as that would be much less concerning than actually handing out the credentials. If it works, I will adjust the CtA accordingly

oskari commented 6 months ago

I'd be more than happy to "share" my vehicle if the "invitation" feature is sufficient. It does give access to the volkswagen app, so I'd guess it should be enough? I have to sort out my app with vw support first tho as it seems that even the (new) vw app somehow broke for me.

oliverrahner commented 6 months ago

I found out in discussions with another volunteer that inviting someone is quite painful currently :-/ The rough steps are:

(A dedicated account is needed because I need to hand out the credentials, so everybody who invites me would have access to all other helpers' cars as well)

sfnis commented 6 months ago

I am in the US, and I'd really like to see this work. I can share my login for my car, because the only security risk I can think of is that you would unlock my car and try to steal something. And there is nothing in it..

So, anyways, yeah, if you are testing US Cars, I have a 2022 Jetta GLI, lets chat.

oliverrahner commented 6 months ago

For full disclosure, we would be able to change the email address on the account, then change the password and basically "steal" the whole account for you. You would probably be able to get it back, if not the account then at least the car in a new account.

I'm not trying to fear anybody away, just going for full transparency here :) I'm still working with the guy mentioned above to get the invitation working, as soon as we got that going it will be much less risky to share access with us.

That being said, @sfnis, I would love to get access to a car in the US, just to see if the API behaves the same outside of the EU.

andy-81 commented 6 months ago

Happy to help where I can, not sure if my car will provide you anything you don’t already have.

I have a 2022 Golf R (uk model) so doesn’t have the heater other than the turning on climatisation (without the heater) but I think you get that with the models you already have access to.

The work you and the team have done to bring the integration back online has been fantastic, it’s great having the sensors, just looking forward to the lock/unlock controls coming back.

Let me know if you think it would be useful, I couldn’t see anything my car has which isn’t on the other cars but happy to share for a short period if you need another Golf.

Edzilla2000 commented 6 months ago

Hi, I have a Tiguan in Canada which doesn't work with the new version of the integration, we can arrange sharing the credentials if it helps.

thomasblankschein commented 6 months ago

If you are interested in testing with another eUp EV (2020), please contact me.

oliverrahner commented 6 months ago

@Edzilla2000 Did the old version of the integration work for you in the past? Do you also use the MyVW app in Canada as they do in the US?

Edzilla2000 commented 6 months ago

@Edzilla2000 Did the old version of the integration work for you in the past? Do you also use the MyVW app in Canada as they do in the US?

The integration never worked for me, they migrated us to the MyVW app fairly recently (2 months ago I think)

virtualdj commented 6 months ago

I am just trying with another user if also the "invitation" feature within the VW app would work

@oliverrahner Any progress on the invitation feature with the test user? Does it really work?

iainfogg commented 6 months ago

@oliverrahner are you able to share the script you're running to capture the data? If so, I'm happy to run it locally and do a pull request to add the data in that you're looking for (I tried doing this a couple of weeks ago but couldn't find a good way of collecting the data - I tried copying it from the debug window, but that wouldn't copy it out properly).

I have a 2019 e-Golf.

oliverrahner commented 6 months ago

@oliverrahner Any progress on the invitation feature with the test user? Does it really work?

The guy I’m working with on this didn’t find the time yet… if you’d be up for it, don’t hesitate 😅

oliverrahner commented 6 months ago

@oliverrahner are you able to share the script you're running to capture the data?

The process we’re using does not involve a script, it’s roughly this:

Then you should be able to see the requests of the app logged in the clear Not a particularly easy way 😅

iainfogg commented 6 months ago

Ah ok thanks @oliverrahner - I was assuming you were after more data similar to what's here https://github.com/robinostlund/volkswagencarnet/tree/master/tests/fixtures/resources/responses - is that correct?

I managed to see the data within the debug window of VS Code when running Home Assistant with the component installed within it, I just didn't get a decent way of copying it out as VS Code puts an abbreviated version of the data onto the clipboard.

If that's the data you're after, and I can't get it from VS Code, I'll try what you outlined above.

danielszilagyi commented 6 months ago

@oliverrahner are you able to share the script you're running to capture the data?

I sent a solution to @virtualdj for Android phones earlier, but didn't hear back on the outcome.

The stock VW app has certificate pinning unfortunately AFAICT.

virtualdj commented 6 months ago

I sent a solution to @virtualdj for Android phones earlier, but didn't hear back on the outcome.

@danielszilagyi You're right, I had some personal issues that stole my free time... and then I forgot. :-/ I will try in a couple of days (not today, unfortunately) and let you know!

The stock VW app has certificate pinning unfortunately AFAICT.

I don't think it's using certificate pinning, because the same issue prevents capturing HTTPS traffic from every Android app! I think your solution enables the ability to "see" user certificates (those that allow HTTPS decrypting) in the single APK, as it's explained in the HTTP Toolkit docs. Apparently iOS doesn't have this limitation and doesn't require this "hassle".

iainfogg commented 6 months ago

I did this using:

If you connect to the emulator by running adb -e shell, HTTP Toolkit has an option 'Android device connected by ADB' - it can install what's needed within the emulator to ensure that the HTTPS requests from the emulator land in the HTTP Toolkit application on your host machine, and you can view the requests in there. It was pretty simple once I'd got stuff downloaded and installed.

See this HTTP Toolkit article for more info.

And if you're trying to figure out where the SDK toolkit with adb is, for me it was in C:\Users\myuser\AppData\Local\Android\Sdk\platform-tools on my Windows machine, not sure about MacOS or Linux locations.

pauluhz commented 6 months ago

I have a VW Tiguan can I help with getting this HA app running again?

A lot of things are working in the new release unfortunately some things not. I have a hybrid Tiguan and a saw that some things of the charging time and department schedule are not working.

enoch85 commented 6 months ago

@pauluhz Please follow the instructions in this thread. I don't think the Tiguan is on the list, which means it's missing. So it would be great if you could share it!

OZ1SEJ commented 6 months ago

Sorry - I'm new to Volkswagen and have installed this integration; does this thread imply that this integration currently doesn't work?

oliverrahner commented 6 months ago

It used to not work :) now it should again. The control features (locking, climatisation and the like) are not yet released, but all (or at least, most) sensors are working again.

OZ1SEJ commented 6 months ago

Haha - thanks for the explanation. I actually got it to work yesterday - nice work! Thank you!

pauluhz commented 6 months ago

@pauluhz Please follow the instructions in this thread. I don't think the Tiguan is on the list, which means it's missing. So it would be great if you could share it!

If you send me an account I could add this one as co-user to my car right? We could also use telegram if this is faster and easier.

virtualdj commented 6 months ago
  • A phone emulator built into the Android Studio installed on my Windows PC, using an image based on Google APIs (but not Google Play)
  • The VW app installed within the emulator (downloaded from APK Pure)

@iainfogg Interesting! Installing the Volkswagen app in the emulator works and HTTP Toolkit is able to capture the data. Previously I've tried with the We Connect app (the old one, that we loved) and it did not run. It seemed to run, but after tapping the icon it crashed, probably because it was using a native library that wasn't ported to the x86_64 platform of the emulator. This was the logcat:

12-07 11:03:08.732 11877 11877 E AndroidRuntime: FATAL EXCEPTION: main
12-07 11:03:08.732 11877 11877 E AndroidRuntime: Process: de.volkswagen.carnet.eu.eremote, PID: 11877
12-07 11:03:08.732 11877 11877 E AndroidRuntime: java.lang.UnsatisfiedLinkError: No implementation found for int fvpffh.duogeebar.ravitfb.ovlu.HXsLQke(int) (tried Java_fvpffh_duogeebar_ravitfb_ovlu_HXsLQke and Java_fvpffh_duogeebar_ravitfb_ovlu_HXsLQke__I)

I wish HTTP Toolkit allows me to export the capture data for later use, but I doesn't in the free version 😢

if you’d be up for it, don’t hesitate

@oliverrahner I'm interested in trying the co-user, just leave me some days until the VW support tries to fix the fact I can't start the charge from the app. And you're on vacation, right? 😄 Interestly, I can stop the charge from the app, but I can't start it.

Running the VW app in the emulator led to the same issue, with error 502 when issueing the REST POST command https://emea.bff.cariad.digital/vehicle/v1/vehicles/WVWZZZ.../charging/start with this response back:

{
  "error": {
    "message": "Bad Gateway",
    "info": "Upstream service responded with an unexpected status. If the problem persists, please contact our support.",
    "code": 4101,
    "group": 2
  }
}

I've already contacted the support 6 days ago but they didn't answer yet; it's more than a week that I'm unable to start the charge 😞 I just don't want them to argue that it's due to the co-user.

iainfogg commented 6 months ago

@virtualdj glad you got it working!

I've no idea about that error, I'm afraid, none of the names in the library made any sense to me 🤷‍♂️

I've got (and have reported) the same issue, where I can stop charging but can't start it from the app, there's some issue with the VW backend.

virtualdj commented 6 months ago

I've got (and have reported) the same issue, where I can stop charging but can't start it from the app, there's some issue with the VW backend.

@iainfogg Ah, I'm not the only one then!

In the mean time, as a workaround to start charging, I noticed that you can set a close departure timer with charging enabled using the same VW app. It's using https://emea.bff.cariad.digital/vehicle/v1/vehicles/WVWZZZ.../departure/timers.

iainfogg commented 6 months ago

@virtualdj yep that's what I've had to resort to, it's just a pretty poor interface for setting charging times in that app - no idea who thought that hiding charging percentages hidden away in schedules and locations was a good idea!

virtualdj commented 6 months ago

oliverrahner are you able to share the script you're running to capture the data?

I sent a solution to virtualdj for Android phones earlier, but didn't hear back on the outcome.

@danielszilagyi I was able to test it on my second smartphone, eventually. Sorry for the delay: real life issues! It works! So with this method it's possible to use Requestly on a real phone with HTTPS decryption.

Alex-ala commented 6 months ago

Thank you for developing this integration! I just got into the business with a new ID.3

I'm willing to help out (but not as far as sharing credentials..) I quickly set up a MITMProxy on my end to capture my Apps communications while just briefly going through the app, enabling/disabling climate, start/delay charging and changing the target charging level.

As these captures include quite some IDs I'd prefer to share them in private.

Jaspils commented 6 months ago

I have an Arteon 2.0 TDI BiTurbo with Auxilery heater from 2018. The auxilery heater is controlled with the Volkswagen App, or with a remote control. I think this classifies me for the requested:

I'm not sure what you mean by 'activated' remote control. Do you mean by that a active subscription (in my case: Security & Service Plus, which was required to control the auxilery heater). My subscription does end on 08-02-2024 (not too far in the future).

Please let me know where I can help and where/how to share my credentials in the safest way.

enoch85 commented 6 months ago

How? You could send your credentials to me, under <firstname>@<lastname>.me

@Jaspils Everything is in the first post.

Thanks for sharing!

alexpfau commented 6 months ago

2023 Tiguan Allspace full spec here, i.e. with auxiliary heating and climatization. @oliverrahner, if you still need such a vehicle for confirmation, I am happy to use the "invitation" feature.

Jaspils commented 6 months ago

How? You could send your credentials to me, under <firstname>@<lastname>.me

@Jaspils Everything is in the first post.

Thanks for sharing!

I think I mailed to Oliver, but haven't had contact yet. If it's not coming through, please let me know. :)

ediazrod commented 5 months ago

I have a VW Arteon GTE from 2023 on Europe happy to share my credentials. ping me if you need it.

I use A LOT this app, to find my car on the street, find if I left any window open.. or the car open.. a lot of value in this.. integration

stickpin commented 5 months ago

@ediazrod, I don't think we have a VW Arteon GTE yet. Please send me credentials to stickpins at gmail dot com, please specify your mobile phone number as well so I will be able to reach you via WhatsApp/Signal or Telegram.

Thanks! :)

enoch85 commented 5 months ago

@stickpin @oliverrahner Do you have VW e-UP! 2021? Noticed that with beta3 I'm back to -1 requests for the API.

Vinestou commented 4 months ago

Hi guys, I own a VW Tiguan GTE 2023 (e-Hybrid). EU. Same combination and functionality to @ediazrod Arteon. Let me know if you need information about this vehicle.

stickpin commented 4 months ago

I think we are ok with the different types of vehicles for the time being, except maybe the vehicles with Auxiliary heaters, and ID models other than ID.3. For sure there gonna be edge cases that are not covered, I guess we will manage them case by case.

Jaspils commented 4 months ago

I think we are ok with the different types of vehicles for the time being, except maybe the vehicles with Auxiliary heaters, and ID models other than ID.3. For sure there gonna be edge cases that are not covered, I guess we will manage them case by case.

I still haven't had a response on contact I tried to make. I have an Arteon 2017 with auxilary heater, which is a function that hasn't been fixed yet. Please contact me if you need access to my vehicle.

Thanks for the work on all other issues. Really love the integration in Home Assistant.

stickpin commented 4 months ago

Hi @Jaspils,

Yes, I need more vehicles with Auxiliary heater. Please send me the details to my email (stickpins at gmail dot com). Please share S-PIN and your phone number as well, so I sync with you before making any changes.

Thanks! :)

Edzilla2000 commented 4 months ago

@stickpin do you also want vehicles from Canada?

stickpin commented 4 months ago

@Edzilla2000 Unfortunately I don't have the capacity to start looking into North America implementation. Sorry. VW seems to be using a completely different Backend there and I am the only one active developer now.

Edzilla2000 commented 4 months ago

@Edzilla2000 Unfortunately I don't have the capacity to start looking into North America implementation. Sorry. VW seems to be using a completely different Backend there and I am the only one active developer now.

No problem, I understand.

craigjmidwinter commented 1 month ago

I might be able to look into support for Canada. I'm currently just trying to get the client library package working in my development library. @stickpin @oliverrahner do you know if the test suite is supposed to pass currently on the main branch?

stickpin commented 1 month ago

Hi @craigjmidwinter, The main branch will fail on tests. I would suggest using the v5.0.0 branch, it's an upcoming version with many changes under the hood.