bimmer_connected icon indicating copy to clipboard operation
bimmer_connected copied to clipboard

Error conecting

Open askthomas opened this issue 5 years ago • 5 comments

Describe the issue

Intergration ger erro 400

Retrying setup: 400 Client Error: Bad Request for url: https://customer.bmwgroup.com/gcdm/oauth/authenticate

I dont think i change anything, it just starded, i double check accounts, and they wokrks on bmw www site.

Expected behavior

Get car status in to HAS

Which Home Assistant version are you using?

core-2021.11.4

What was the last working version of Home Assistant Core?

No response

What is your region?

Rest of world

ConnectedDrive website

  • [X] I can still successfully login to the BMW ConnectedDrive website and the car status is available there.
  • [X] I have ConnectedDrive enabled for my vehicle.

Number of cars

  • [ ] I have 2 or more cars linked to the ConnectedDrive account.
  • [ ] I have a Mini vehicle linked to my account.

Output of bimmer_connected fingerprint

DEBUG:bimmer_connected.account:Getting vehicle list
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): cocoapi.bmwgroup.com:443
DEBUG:urllib3.connectionpool:https://cocoapi.bmwgroup.com:443 "GET /eadrax-ucs/v1/presentation/oauth/config HTTP/1.1" 200 580
DEBUG:bimmer_connected.account:Authenticating against GCDM with MyBMW flow.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): customer.bmwgroup.com:443
DEBUG:urllib3.connectionpool:https://customer.bmwgroup.com:443 "POST /gcdm/oauth/authenticate HTTP/1.1" 200 411
DEBUG:urllib3.connectionpool:https://customer.bmwgroup.com:443 "POST /gcdm/oauth/authenticate HTTP/1.1" 302 0
DEBUG:urllib3.connectionpool:https://customer.bmwgroup.com:443 "POST /gcdm/oauth/token HTTP/1.1" 200 1963
DEBUG:bimmer_connected.account:got new token wRyAgTsDsFrNXo6Tw131AYV7AYg with expiration date 2021-11-21 10:14:37.188419DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:bimmer_connected.account:Request to: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles
DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): cocoapi.bmwgroup.com:443
DEBUG:urllib3.connectionpool:https://cocoapi.bmwgroup.com:443 "GET /eadrax-vcs/v1/vehicles?apptimezone=60.0&appDateTime=1637478878.195579&tireGuardMode=ENABLED HTTP/1.1" 200 8587
DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:bimmer_connected.account:Request to: https://cocoapi.bmwgroup.com/eadrax-vcs/v1/vehicles
DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): cocoapi.bmwgroup.com:443
DEBUG:urllib3.connectionpool:https://cocoapi.bmwgroup.com:443 "GET /eadrax-vcs/v1/vehicles?apptimezone=60.0&appDateTime=1637478880.304321&tireGuardMode=ENABLED HTTP/1.1" 200 2
Getting 'charging-sessions' for WBA6N3101MFK67711
DEBUG:bimmer_connected.account:Request to: https://cocoapi.bmwgroup.com/eadrax-chs/v1/charging-sessions
DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): cocoapi.bmwgroup.com:443
DEBUG:urllib3.connectionpool:https://cocoapi.bmwgroup.com:443 "GET /eadrax-chs/v1/charging-sessions?vin=WBA6N3101MFK67711&maxResults=40&include_date_picker=true HTTP/1.1" 200 None
Getting 'charging-statistics' for WBA6N3101MFK67711
DEBUG:bimmer_connected.account:Request to: https://cocoapi.bmwgroup.com/eadrax-chs/v1/charging-statistics
DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:bimmer_connected.account:Old token is still valid. Not getting a new one.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): cocoapi.bmwgroup.com:443
DEBUG:urllib3.connectionpool:https://cocoapi.bmwgroup.com:443 "GET /eadrax-chs/v1/charging-statistics?vin=WBA6N3101MFK67711&currentDate=2021-11-21T08%3A14%3A42.104677 HTTP/1.1" 200 None
fingerprint of the vehicles written to /root/vehicle_fingerprint/2021-11-21_09-14-37

Anything in the logs that might be useful for us?

It stared that all values not working, and now error to connect

Additional information

No response

askthomas avatar Nov 21 '21 08:11 askthomas

You probably need to confirm you've installed the new custom component myBMW because the ha integration no longer works.

https://github.com/bimmerconnected/ha_custom_component/releases/tag/20211113.1

nottledim avatar Nov 21 '21 08:11 nottledim

Yes, I had not installed the new Custom Componment in HACS, After that it works agan, Thanks for help.

askthomas avatar Nov 21 '21 08:11 askthomas

When can you support China?

zhaozengxiao avatar Nov 22 '21 06:11 zhaozengxiao

Closing it was fixed within the library/custom component and is included in the HA 2021.12 beta, so it will be released in HA on Dec. 11th.

rikroe avatar Dec 05 '21 12:12 rikroe

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Jan 05 '22 03:01 github-actions[bot]