robinostlund / homeassistant-volkswagencarnet

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

component broken since latest update (Volkswagen We Connect) #37

Closed nenadmilano closed 4 years ago

nenadmilano commented 5 years ago

Since the latest Car-Net Update which rebranded the service in "Volkswagen We Connect" the component is broken and won't start. Error message isCould not login to volkswagen carnet, please check your credentials and at the start i get the notification: image

tubalainen commented 5 years ago

Can confirm. The component has stopped working after VW updated their backend today.

rreinhardd commented 5 years ago

The obvious reason is probably because the whole URL changed. It is now something like https://www.portal.volkswagen-we.com/portal/...

jonaswikstrom commented 5 years ago

Would love getting it to work again. The component has worked really great for me!!!

tubalainen commented 5 years ago

Yea, tried to tinker about with the python lib with no success. The whole auth part has been changed apparently. Lets hope that @robinostlund can crack the new structure! Fingers crossed. <3

HikingMike commented 5 years ago

Yepp, worked really well and was very useful. Miss it badly already. Let's hope Robin will get this working again. 😉

knudsvik commented 5 years ago

Found this message on wv stating a name change and prediction of troubles (sorry, just found a Norwegian page): https://www.volkswagen.no/no/teknikk-og-innovasjoner/driftsmeldinger/car-net-bytter-navn.html

pattyland commented 5 years ago

@knudsvik Haha I don't think they meant problems with the "illegal" use of their interface :D

Just FYI, theoretically this is not an error with the home assistant component but with the library. There is also an open issue: https://github.com/robinostlund/volkswagencarnet/issues/5

hendymen commented 5 years ago

I can confirm the breaking of the component.

I've also really loved using it! It was such an great achievement!

robinostlund commented 5 years ago

I noticed this 😅 why did they need to change this 😅. I am currently traveling but i will try to solve this as soon as i have time.

pattyland commented 5 years ago

We should ask a Volkswagen Developer to email you about upcoming changes 🙈

HikingMike commented 5 years ago

I am pretty sure that the reason behind this is the fact that VW onboarded developers who designed the Volvo OnCall app, so that they could get VW's crappy app and "VW Connect" system to work properly. We all know that VW released a new (and rebranded) app. So my guess is that they rebuilt the back-end as well...

vomov commented 5 years ago

I'm not sure the back-end was redone as well; the rebranded app behaves quite similarly. I hoped for some improvements, but alas.

By the way, a VW employee told me once (during debugging the car-net connection) that the back-end is essentially straight from the nineties, and can't be changed due to all kinds of legacy solutions having dependencies. He didn't expect it to change, but was hoping that they'd develop something new, which would then be applied to new cars. However, this also means that the connection, if @robinostlund manages to get it working again, should be mostly stable for a long while.

robinostlund commented 5 years ago

Hi Guys, i hope that it works now. Try the latest update and come with feedback :)

rreinhardd commented 5 years ago

Works again for me. BIG THANKS for the fix! grafik

eldstado commented 5 years ago

Didnt solve it for me:

ERROR (MainThread) [homeassistant.setup] Setup failed for volkswagencarnet: Component failed to initialize.

nenadmilano commented 5 years ago

@robinostlund the fix works for me, awsome! many thanks to you!

jpharnett commented 5 years ago

image

Thank You!

arnoldpistorius commented 5 years ago

Update: I had to login on the portal at https://www.portal.volkswagen-we.com/ and allow the permissions to the account. Then it started working :) Good job!

FYI: @eldstado

No luck on my side

2019-07-22 19:17:16 WARNING (SyncWorker_18) [custom_components.volkswagencarnet] Could not login to volkswagen carnet, please check your credentials
2019-07-22 19:17:17 WARNING (SyncWorker_18) [custom_components.volkswagencarnet] Could not login to volkswagen carnet, please check your credentials
2019-07-22 19:17:17 ERROR (MainThread) [homeassistant.setup] Setup failed for volkswagencarnet: Integration failed to initialize.

My config is

volkswagencarnet:
  username: !secret carnet_username
  password: !secret carnet_password
knudsvik commented 5 years ago

After changing from update_interval to scan_interval in my configuration.yaml it works for me too :)

eldstado commented 5 years ago

Okay, so logging in manually on the website solved the issue for me. (Signing in with the app is not enough) thnx arnold😁

hendymen commented 5 years ago

Thanks foy all your effort! Works like an charm again!

amblyo commented 5 years ago

Okay, so logging in manually on the website solved the issue for me. (Signing in with the app is not enough) thnx arnold😁

Thanks, Solved it for me!

HikingMike commented 5 years ago

Works like a charm. Thanks a lot Robin!

jonaswikstrom commented 5 years ago

It works great!!! Thanks! Thanks! So so great!

tubalainen commented 5 years ago

Works great! Thanks Robin for your great work! <3 I truly hope the component (and the backend) will evolve with the We Connect featureset so that it will continue to work with the new (facelift) models.

pattyland commented 5 years ago

@robinostlund A comment from a diesel driver: Here too the display of the supported values works again. The error messages as described in #19 or #29 remain! It would be great if you could take a look, I'm also a bit afraid that VW might block you if you make too many incorrect requests...

MRvH88 commented 5 years ago

Thanks! It’s working again!

@rreinhardd could you tell me where you got that custom card? 😄

hendymen commented 5 years ago

Does this now mean that we can change the update/scan interval to an lower value. Without the risk of being blocked?

greberg commented 5 years ago

I update init file and signed in to we connect but I still get the ”integration failed to initilize” you write ”allow permission to the app in we connect. What do you mean with that?

greberg commented 5 years ago

Still getting 2019-07-26 15:47:09 DEBUG (SyncWorker_9) [custom_components.volkswagencarnet] Creating connection to volkswagen carnet 2019-07-26 15:47:09 DEBUG (SyncWorker_9) [custom_components.volkswagencarnet] Logging in to volkswagen carnet 2019-07-26 15:47:09 WARNING (SyncWorker_9) [custom_components.volkswagencarnet] Could not login to volkswagen carnet, please check your credentials 2019-07-26 15:47:09 INFO (SyncWorker_9) [custom_components.volkswagencarnet] Starting volkswagencarnet component 2019-07-26 15:47:10 WARNING (SyncWorker_9) [custom_components.volkswagencarnet] Could not login to volkswagen carnet, please check your credentials 2019-07-26 15:47:10 ERROR (MainThread) [homeassistant.setup] Setup failed for volkswagencarnet: Integration failed to initialize.

I have even tried deleting car-net account from volkswagen ID and made a new connection between volkswagen ID and car-net/we connect. any chance it has to do with lang or region. I'm running from Sweden?

robinostlund commented 5 years ago

Have you logged in from a webbrowser to carnet? You need to approve a question there after they upgraded their systems 😀

greberg commented 5 years ago

Yes I have done that as well. https://www.portal.volkswagen-we.com

greberg commented 5 years ago

I tried out the volkswagencarnet 4.0.20 and run it from the terminal using your python client. Getting the same error Failed to login with user xxxxx@xxxxx, check your credentials. Is it possible to get a lib that prints the complete response/request for more debugging Robin?. I have even tried and new user as well and that didn't work either.

tubalainen commented 5 years ago

I tried out the volkswagencarnet 4.0.20 and run it from the terminal using your python client. Getting the same error Failed to login with user xxxxx@xxxxx, check your credentials. Is it possible to get a lib that prints the complete response/request for more debugging Robin?. I have even tried and new user as well and that didn't work either.

I have the same issue now. Worked for one day and now I get the same error. I have restarted Home Assistant several times in a short period of time. This might be the reason?

I havnt tried "going for a drive" yet. It worked with the older versions. Might solve it. Currently occupied with the kids here so I cannot check. If you try to "go for a drive" and it worked please let us know. :)

greberg commented 5 years ago

I tried out the volkswagencarnet 4.0.20 and run it from the terminal using your python client. Getting the same error Failed to login with user xxxxx@xxxxx, check your credentials. Is it possible to get a lib that prints the complete response/request for more debugging Robin?. I have even tried and new user as well and that didn't work either.

I have the same issue now. Worked for one day and now I get the same error. I have restarted Home Assistant several times in a short period of time. This might be the reason?

I havnt tried "going for a drive" yet. It worked with the older versions. Might solve it. Currently occupied with the kids here so I cannot check. If you try to "go for a drive" and it worked please let us know. :)

I have been out driving and no luck. Haven't that many restarts as well on my HA so I doubt that is an issue.

nenadmilano commented 5 years ago

For whatever reason the component stopped working for me again. Did VW change something again?

Log Details (ERROR) Fri Jul 26 2019 20:44:21 GMT+0200 (Central European Summer Time) Setup failed for volkswagencarnet: Integration failed to initialize.

azazul1980 commented 5 years ago

Same here with Passat GTE

arnoldpistorius commented 5 years ago

Same here. I've updated ha to 96.5, but don't think that's the cause..

HikingMike commented 5 years ago

Worked well for a just couple of days... sadly. Verified my credentials by logging in to VW website and noticed that the login pages looks different. Could it be that the developers doing constant changes to the platform and remake it after all...

2019-07-27 09:40:16 WARNING (Thread-17) [custom_components.volkswagencarnet] Could not login to volkswagen carnet, please check your credentials 2019-07-27 09:40:18 WARNING (Thread-17) [custom_components.volkswagencarnet] Could not login to volkswagen carnet, please check your credentials 2019-07-27 09:40:19 ERROR (MainThread) [homeassistant.setup] Setup failed for volkswagencarnet: Component failed to initialize.

rreinhardd commented 5 years ago

@MRvH88, I customized Robin's Passat card for my eGOLF with some GIMPing and tweaking. PM me if you are interested in the images and the code... Best R

BTW I also think that the changes in the Webpage are the reason for the error message :-/

fgsalvador commented 5 years ago

I got this working for just a couple of days, but then started to fail.....😔

MRvH88 commented 5 years ago

@rreinhardd not sure how to send a PM but i am interested in the images and code. It will be highly appreciated if you can put it on github or share it with me :D

robinostlund commented 5 years ago

They modified the login again so i have updated this component with a new version, you can just replace to this in ini.py: REQUIREMENTS = ['volkswagencarnet==4.0.22']

hendymen commented 5 years ago

They modified the login again so i have updated this component with a new version, you can just replace to this in ini.py: REQUIREMENTS = ['volkswagencarnet==4.0.22']

Hi Robinostlund,

Thanks, it started working again after your change!

rreinhardd commented 5 years ago

works again. this i becoming a bit of a cat and mouse game here. i hope they finish their developement soon at VW. thanks for keeping up @robinostlund - great work...

greberg commented 5 years ago

Nice Robin! It works again :-)

eldstado commented 5 years ago

Getting this error now, could it be an issue with python3.7?

Failed to login to carnet, Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

robinostlund commented 5 years ago

Getting this error now, could it be an issue with python3.7?

Failed to login to carnet, Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?

Have you installed beautifulsoup4? https://github.com/robinostlund/volkswagencarnet/blob/master/setup.py

rreinhardd commented 5 years ago

Getting this error now, could it be an issue with python3.7?

I don't think so. I also use 3.7 in an VENV and it works.

eldstado commented 5 years ago

yes its installed: Requirement already satisfied: beautifulsoup4 in /srv/homeassistant/lib/python3.7/site-packages (4.8.0) Requirement already satisfied: soupsieve>=1.2 in /srv/homeassistant/lib/python3.7/site-packages (from beautifulsoup4) (1.9.2)