home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.14k stars 29.82k forks source link

BMW Connected Drive - no longer possible to login in after update to HAss 2024.8.2 #124464

Closed JohanKSE closed 2 weeks ago

JohanKSE commented 3 weeks ago

The problem

After I upgraded to Home Assistant 2024.8.2 I am no longer able to use the BMW Connected Drive app. After trying to reload, reboot etc I tried to reinstall but that didn't work either.

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

2024.8.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

BMW Connected Drive

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

CooLeroff commented 3 weeks ago

Confirmed, today I faced with it too.

UPD: It seems to be a problem on the BMW ConnectedDrive API side. I can't even login through the official website, I get the error β€œDue to a system error, your request cannot be processed at this time. Try again later.”

zytica commented 3 weeks ago

same issues here too.

JohanKSE commented 3 weeks ago

Confirmed, today I faced with it too.

UPD: It seems to be a problem on the BMW ConnectedDrive API side. I can't even login through the official website, I get the error β€œDue to a system error, your request cannot be processed at this time. Try again later.”

Good catch, same for me. I can't login on the website but the my BMW app is working.

mimainka commented 3 weeks ago

Duplicate of #124469

home-assistant[bot] commented 3 weeks ago

Hey there @gerard33, @rikroe, mind taking a look at this issue as it has been labeled with an integration (bmw_connected_drive) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `bmw_connected_drive` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign bmw_connected_drive` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


bmw_connected_drive documentation bmw_connected_drive source (message by IssueLinks)

wvtuijl commented 3 weeks ago

The problem

After I upgraded to Home Assistant 2024.8.2 I am no longer able to use the BMW Connected Drive app. After trying to reload, reboot etc I tried to reinstall but that didn't work either.

What version of Home Assistant Core has the issue?

2024.8.2

What was the last working version of Home Assistant Core?

2024.8.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

BMW Connected Drive

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

The same here since Yesterday, after upgrading to 13.1 (I skipped a few versions) Debug log says:

2024-08-23 11:22:57.373 ERROR (MainThread) [bimmer_connected.api.authentication] MyBMWAPIError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed 2024-08-23 11:23:10.581 ERROR (MainThread) [bimmer_connected.api.authentication] MyBMWQuotaError due to HTTPStatusError: Client error '429 Too Many Requests' for url 'https://customer.bmwgroup.com/gcdm/oauth/authenticate' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429 2024-08-23 11:23:48.463 DEBUG (MainThread) [bimmer_connected.account] Getting vehicle list 2024-08-23 11:23:48.463 DEBUG (MainThread) [bimmer_connected.account] Getting vehicle list 2024-08-23 11:23:48.536 DEBUG (MainThread) [bimmer_connected.api.authentication] Authenticating with refresh token for North America & Rest of World. 2024-08-23 11:23:48.696 ERROR (MainThread) [bimmer_connected.api.authentication] MyBMWAPIError due to HTTPStatusError: invalid_request - The request is missing a required parameter, includes an unsupported parameter value (other than grant type), repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed 2024-08-23 11:23:48.699 DEBUG (MainThread) [bimmer_connected.api.authentication] Unable to get access token using refresh token, falling back to username/password. 2024-08-23 11:23:48.734 DEBUG (MainThread) [bimmer_connected.api.authentication] Authenticating with MyBMW flow for North America & Rest of World. 2024-08-23 11:23:48.880 DEBUG (MainThread) [bimmer_connected.api.authentication] Sleeping 4 seconds due to 429 Too Many Requests 2024-08-23 11:23:52.934 DEBUG (MainThread) [bimmer_connected.api.authentication] Sleeping 4 seconds due to 429 Too Many Requests 2024-08-23 11:23:56.988 DEBUG (MainThread) [bimmer_connected.api.authentication] Sleeping 4 seconds due to 429 Too Many Requests 2024-08-23 11:24:01.064 ERROR (MainThread) [bimmer_connected.api.authentication] MyBMWQuotaError due to HTTPStatusError: Client error '429 Too Many Requests' for url 'https://customer.bmwgroup.com/gcdm/oauth/authenticate' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429 2024-08-23 11:24:01.065 DEBUG (MainThread) [homeassistant.components.bmw_connected_drive.coordinator] Finished fetching bmw_connected_drive-@home.nl data in 12.602 seconds (success: False)

e3drigs commented 3 weeks ago

Identical here logs. I'm still on 2024.8.1 and had made no HA changes. My MyBMW app did stop working for a while but is now working again. API update again presumably...

Auka84 commented 3 weeks ago

Same for me after updating to 13.1

Schermbecker commented 3 weeks ago

Identical here logs. I'm still on 2024.8.1 and had made no HA changes. My MyBMW app did stop working for a while but is now working again. API update again presumably...

Could you check if a login to BMW website is possible with your BMW id? For me it does not work but myBMW app works fine.

e3drigs commented 3 weeks ago

Identical here logs. I'm still on 2024.8.1 and had made no HA changes. My MyBMW app did stop working for a while but is now working again. API update again presumably...

Could you check if a login to BMW website is possible with your BMW id? For me it does not work but myBMW app works fine.

Site let me click around fine already logged in. Logout then login = "Due to a system error, your request cannot be processed at the moment. Please try again later."

Schermbecker commented 3 weeks ago

Yesterday there was a global outage of BMW services, myBMW did not work anymore. This seems to be fixed now and I think our issue has to do with that issue from yesterday. Nevertheless I contacted the BMW support asking for help.

In addition I created a new BMW account on the corporate website and login is possible. Weird.

hitower69 commented 3 weeks ago

Still no login possible at BMW Connected Drive website. MyBMW app is working.

Technobeats commented 3 weeks ago

Still no login possible at BMW Connected Drive website. MyBMW app is working.

Same here. App and car are working fine. However login on the BMW website or use their API on HA doesn't work. The BMW website shows an error abour a technical problem on their side. I tried to do a pwd reset but no success.

greytuk commented 3 weeks ago

Same issue here, with one extra bit of info in case it helps.

BMW Rest of the World region fails as described above. BMW USA region continues to work correctly

atiscopied commented 3 weeks ago

Login on the website, as well as the api are working again since a couple of minutes. At least on my system...

Schermbecker commented 3 weeks ago

German site now requests a new password. After resetting password the login still fails and requests a new password again.

Not to mention that my password meets their policy. Weird.

atiscopied commented 3 weeks ago

I just skipped the 'new password' request and (for whatever reason) that seemed to work...

Schermbecker commented 3 weeks ago

Does the HA integration work as well?

I just skipped the 'new password' request and (for whatever reason) that seemed to work...

atiscopied commented 3 weeks ago

yes it does. HA integration and evcc (which wasn't working for me as well) are fully operational for the moment.

Schermbecker commented 3 weeks ago

yes it does.

where are you located?

atiscopied commented 3 weeks ago

Germany

Schermbecker commented 3 weeks ago

For me (also Germany) it still does not work (login and HA). damn.

atiscopied commented 3 weeks ago

It started working at around 18.38 CEST. image

Schermbecker commented 3 weeks ago

I was still logged in myBMW app which worked fine. Now I logged off and can not log in the app again. Grrr. It is weird. I changed the Password now three times but the website and the app ask for a new, secure password.

Seems I have to wait until they fixed it. Stupid me, now I have no access at all. :(

hitower69 commented 3 weeks ago

Still not working in Germany. New password required, then successfully changed, but when I try to login: new password required. 😜😜 Like "Catch-22" πŸ˜„ I guess we have to wait until BMW will fix it. Issues occurred not the first time

Schermbecker commented 3 weeks ago

Still not working in Germany. New password required, then successfully changed, but when I try to login: new password required. 😜😜

Can you still access the myBMW app? It worked for me although there were these issues but I am an idiot and logged out the app. Now I can't do anything πŸ˜­πŸ˜‚

echoes341 commented 3 weeks ago

The website is constantly asking to change password for me as well. I live in Italy. Before changing the password it was failing with error 429, same error as reported by @wvtuijl . Now it's failing with error invalid_client

logger: bimmer_connected.api.authenticationSource: components/bmw_connected_drive/config_flow.py:54
First occurred: 7:22:02 PM (4 occurrences)
Last logged: 7:25:14 PMMyBMWAuth
Error due to HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)
wvtuijl commented 3 weeks ago

It's going south at the BMW portal: Changed my password and it keeps telling me to change it, even if I did. The original password remains active for the app (checked it with the car). For now it's safe to think the problem is at BMW's site

hitower69 commented 3 weeks ago

Still not working in Germany. New password required, then successfully changed, but when I try to login: new password required. 😜😜

Can you still access the myBMW app? It worked for me although there were these issues but I am an idiot and logged out the app. Now I can't do anything πŸ˜­πŸ˜‚

Yes, still available and working.

hitower69 commented 3 weeks ago

PS Same issue already in May 2023. After a while, they fixed it. So sit and wait. 🫀

digitore commented 3 weeks ago

I've been struggling with similar issues - phoned BMW customer service who tell me they had a problem but it's all fixed. So I've now registered a complaint that my app isn't working (repeatedly asking for new password). Apparently it's only me so low priority to fix - I advise more people complain to BMW to get the priority bumped up!!

Schermbecker commented 3 weeks ago

I've been struggling with similar issues - phoned BMW customer service who tell me they had a problem but it's all fixed. So I've now registered a complaint that my app isn't working (repeatedly asking for new password). Apparently it's only me so low priority to fix - I advise more people complain to BMW to get the priority bumped up!!

For me it still does not work. No login to website, myBMW app and Home Assistant neither.

I already called the support yesterday and they asked me to send a screenshot of the website error message. There was no response yet πŸ˜”

While yesterday the login asked for a new password with each try, there is an error message today.

It is really bad not having access to the car by app.😀

MarkusMWolff commented 3 weeks ago

Hi, it seems like many here have like me the problem described in this reddit thread: Link to reddit. My steps:

I hope this helps! Thank you for the effort put into this integration.

bcoddens commented 3 weeks ago

Same issue here in Belgium. First I got a too many requests error now it asks to re authenticate.

Schermbecker commented 3 weeks ago

Good idea using mobile network. But for me it still says:

Aufgrund eines Systemfehlers kann Ihre Anfrage im Moment nicht verarbeitet werden. Bitte versuchen Sie es spΓ€ter noch einmal.

JohanKSE commented 3 weeks ago

A quick update: Just tried again and now I can login to the website (with a new password), the my BMW still works but when I try to login to the BMW addon in Homeassistant I get "already_in_progress".

Also noted that my car just got an new update.

Technobeats commented 3 weeks ago

To fix the already in progress you need to restart HA and recreate the add-on. That worked for me.

hitower69 commented 3 weeks ago

Login with recent password at Connected Drive website works again. HA with re authentication works as well. No restart required here. And MINI Connected works without password change again in HA 😜

silviudc commented 3 weeks ago

Login with recent password at Connected Drive website works again. HA with re authentication works as well. No restart required here. And MINI Connected works without password change again in HA 😜

Not for me, changed PW, works ok on the website, HA says invalid authentication

greytuk commented 3 weeks ago

Same here. Still have the reset password loop after changing the password.

On 24 Aug 2024, at 10:47, silviudc @.***> wrote:

ο»Ώ

Login with recent password at Connected Drive website works again. HA with re authentication works as well. No restart required here. And MINI Connected works without password change again in HA 😜

Not for me, changed PW, works ok on the website, HA says invalid authentication

β€” Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/124464#issuecomment-2308279847, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A54GOVNJNMVGOQ6F5GVE7YDZTBJBRAVCNFSM6AAAAABM7ROXJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBYGI3TSOBUG4. You are receiving this because you commented.Message ID: @.***>

mrtnkhl commented 3 weeks ago

Still broken as of now, location Rest of World (Europe)

Did the following:

`Logger: bimmer_connected.api.authentication Source: components/bmw_connected_drive/config_flow.py:54 First occurred: 11:45:17 (1 occurrences) Last logged: 11:45:17

MyBMWAuthError due to HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)`

HA is Core 2024.8.2, Supervisor 2024.08.0 OS 13.1 FE 20240809.0

Auka84 commented 3 weeks ago

For me, in Belgium I tried to login on the bmw website on my mac, it asked to reset password. I did it and when i tried to login again, a loop to reset again

I tried to reset the password on my iphone connected on the mobile network, password reseted and able to login

Then Impossible to login on the mac connected on the wifi, again in the loop to reset the password (I didn't reset it again)

Also impossible to connected on HA with this new password (that works on my iphone connected on the mobile data) I have the same error message that you @mrtnkhl

So I guess that all IP (linked to a HA) are banned at bmw side due too many request

I'm sure if I connect my HA on another IP address, it'll work. Btw with a fixed IP address it's difficult :(

rikroe commented 3 weeks ago

For all of you who are seem to be somehow IP banned: please deactivate the integration (or at least polling) until 0:00 UTC.

We might be IP blocked due to failures of the API and HA trying too often. The only chance is waiting without further calls.

So please deactivate and, try again tomorrow.

PS: I had no issue and was able to MyBMW in a completely fresh dev container just now, so it does not seem to be happening to Everybody (rest of world).

greytuk commented 3 weeks ago

Confirmed that is must be a ip block.

1) logon to bmw website has the constant reset password loop 2) immediately connected via vpn from the same device to ensure my public ip changed. Logged onto bmw website first time. 3) disconnect vpn and repeated test on same device - back in the reset password loop

Schermbecker commented 3 weeks ago

If it is an IP ban it seems to be affecting the API access of HA in conjunction with the used BMW profile in the Integration.

I recently created a completely new account and it does NOT work in HA, but I am able to login to website and app. I assigned my second car key to it. So finally I can see my car in my phone now using this new account.

I will now wait a day or two without touching my main account and try to use it then. It hopefully will not be banned anymore.

Meanwhile I removed (not disabled) the HA integration and hope that the entities will be the same after reinstalling the BMW integration later πŸ˜€.

Man, what a disaster! 😬 Lessons learned: I am new to BMW and next time something like this happens I will simply stop the Integration in HA and do not touch anything as long as it runs again πŸ˜…

e3drigs commented 3 weeks ago

It is certainly, in this instance where BMW rate limit their API, a massive problem that HA integrations seem to fail and then eventually go into an extremely aggressive "initialising" loop. Some of the log messages indicate that bmw connected retries after only 4 seconds...

I'm already manually managing bmw api update frequency (system polling turned off for integration) but now intend to automate disabling the integration (requiring manual intervention) where the update fails a number of times so as to avoid the agressive retries and swift throttling.

Schermbecker commented 3 weeks ago

It is certainly, in this instance where BMW rate limit their API, a massive problem that HA integrations seem to fail and then eventually go into an extremely aggressive "initialising" loop. Some of the log messages indicate that bmw connected retries after only 4 seconds...

I'm already manually managing bmw api update frequency (system polling turned off for integration) but now intend to automate disabling the integration (requiring manual intervention) where the update fails a number of times so as to avoid the agressive retries and swift throttling.

Wouldn't it be smart if the Integration itself would do so? Pausing if there is an error and maybe throw an exception to notify?

JohanKSE commented 3 weeks ago

To fix the already in progress you need to restart HA and recreate the add-on. That worked for me.

Unfortunately it didnΒ΄t help, looks like there still is an issue if you login via Europe/Rest of world :(

e3drigs commented 3 weeks ago

Working fine at present in the UK so I don't think it's that simple. I manually disabled the integration and left it 24 hours... once enabled again it worked normally. I didn't do any reconfiguration or muck around with accounts on bmw.com etc... just left it for a bit then re-enabled.

digitore commented 3 weeks ago

Rebooted my router to force an IP address change and that brought everything back to life for me (in the UK). So looks like it's an an IP ban at BMW causing the issues