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
68.78k stars 28.1k forks source link

BMW Integration Broken / BMW Appear to be updating Servers #116145

Closed cloudbr34k84 closed 4 days ago

cloudbr34k84 commented 1 week ago

The problem

The BMW integration appears to be broken after updating to Core 2024.5.0b0. One message says it cant find the vehciles VIN but in the BMW app all is fine

What version of Home Assistant Core has the issue?

2024.5.0b0

What was the last working version of Home Assistant Core?

2024.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

BMW Connected Drive

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bmw_connected_drive/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: bimmer_connected.account
Source: components/bmw_connected_drive/coordinator.py:58
First occurred: 3:30:08 pm (6 occurrences)
Last logged: 4:06:25 pm

Unable to get details for vehicle xxxxxxxxxxxxxxx - (MyBMWAPIError) HTTPStatusError: {"message":"Request Timeout","statusCode":408}
Logger: bimmer_connected.api.authentication
Source: components/bmw_connected_drive/coordinator.py:58
First occurred: 3:27:24 pm (30 occurrences)
Last logged: 4:11:19 pm

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
Logger: bimmer_connected.api.client
Source: components/bmw_connected_drive/coordinator.py:58
First occurred: 3:27:53 pm (30 occurrences)
Last logged: 4:11:44 pm

MyBMWAPIError due to HTTPStatusError: {"message":"Request Timeout","statusCode":408}
MyBMWAPIError due to HTTPStatusError: Vehicle with specified VIN: xxxxxxxxxxx not found


### Additional information

_No response_
home-assistant[bot] commented 1 week 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)

AnthonyBe commented 1 week ago

I've just started seeing these errors on my system and I'm still running 2024.4.4

2024-04-25 16:25:24.246 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-04-25 16:25:47.705 ERROR (MainThread) [bimmer_connected.api.client] MyBMWAPIError due to HTTPStatusError: {"message":"Request Timeout","statusCode":408}

My Config:

System Information

version core-2024.4.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.25-haos
arch x86_64
timezone Australia/Sydney
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4502 Installed Version | 1.34.0 Stage | running Available Repositories | 1408 Downloaded Repositories | 42
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 12.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.04.0 agent_version | 1.6.0 docker_version | 25.0.5 disk_total | 30.8 GB disk_used | 21.9 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Studio Code Server (5.15.0), Samba share (12.3.1), Check Home Assistant configuration (3.11.0), Advanced SSH & Web Terminal (17.2.0), ESPHome (2024.4.1)
Dashboards dashboards | 16 -- | -- resources | 19 views | 14 mode | storage
Recorder oldest_recorder_run | 15 April 2024 at 08:52 -- | -- current_recorder_run | 25 April 2024 at 16:21 estimated_db_size | 1159.42 MiB database_engine | sqlite database_version | 3.44.2
cloudbr34k84 commented 1 week ago

bugger means that BMW have done something to API

nareso commented 1 week ago

Same issue in Japan with core 2024.4.4

sgbossinga commented 1 week ago

it's broken in Europe too (NL)

it started with login issues a few days ago

update it's working again update-2 not working

Soann84 commented 1 week ago

Yes I confirm. In France, I've just updated to core 2024.4.4 and after that, my BMW integration is not working anymore. I had no pb with the integration before updating to core 2024.4.4

PsychoMnts commented 1 week ago

Same issue on 2024.4.3. BMW/Mini changed something in the API.

iJuiceman commented 1 week ago

It was working fine until the 2024.4.4 update. Tried removing and adding and same issue as the rest of the world

Auka84 commented 1 week ago

Same for me in belgium. And not yet updated my core. So I guess a change at bmw side

uphillbattle commented 1 week ago

The integration was working fine until just before 6 o'clock (CEST) this morning. The My BMW app works - but it does not update with data from the car (so the app reports that my car is at my home address, fully charge - which it is not).

It appears that the problem is with BMW, not the integration.

EDIT: Oh, and by the way, I updated to 2024.4.4 yesterday and the integration was working fine until this morning, so the update to 2024.4.4 had nothing to do with it.

nareso commented 1 week ago

Now available again in Japan

It only worked for 3 minutes. Currently down again.

PsychoMnts commented 1 week ago

The integration was working fine until just before 6 o'clock (CEST) this morning. The My BMW app works - but it does not update with data from the car (so the app reports that my car is at my home address, fully charge - which it is not).

It appears that the problem is with BMW, not the integration.

EDIT: Oh, and by the way, I updated to 2024.4.4 yesterday and the integration was working fine until this morning, so the update to 2024.4.4 had nothing to do with it.

You are right. Our Mini Cooper is still parked at home in the Mini app. But the car is clearly somewhere else.

The intergration is most likely not broken, just an outage at BMW/Mini.

iJuiceman commented 1 week ago

I just checked my BMW Connected App and it wanted to update, but does not seem to be working. Looks like it is a BMW/Mini problem, not HA

mibo-wb-gh commented 1 week ago

Still running on 2024.3.3, same problem here (Europe). MyBMW App is very slow in updating

davebarrett1959 commented 1 week ago

Went off line in UK at 06:29. Had to re login to BMW app and no data was shown for car for over 5mins. App now all correct and working (I can flash lights). I believe BMW have done a major server update and are now possibly throttling connections whilst everything catches up

cresch06 commented 1 week ago

Still running on 2023.11.3 - same here in Europe (Austria) - since 6:30 AM (CET) nearly no connection/variable update in HA.

davebarrett1959 commented 1 week ago

HA now all updated and connected again.🤗 (UK)

iJuiceman commented 1 week ago

All working in Australia now

Auka84 commented 1 week ago

Also working again in Belgium

cloudbr34k84 commented 1 week ago

Still not working down here in Australia . Did you guys you do anything with the BMW app?

Log Details (ERROR) Logger: bimmer_connected.api.authentication Source: components/bmw_connected_drive/coordinator.py:58 First occurred: 25 April 2024 at 8:32:27 pm (800 occurrences) Last logged: 5:48:22 am

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 MyBMWAuthError due to HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)

AnthonyBe commented 1 week ago

I'm in Australia and mine is working fine again. Last time I saw the errors logged was (UTC+10):

2024-04-25 20:11:19.327 ERROR (MainThread) [bimmer_connected.api.client] MyBMWAPIError due to HTTPStatusError: {"message":"Request Timeout","statusCode":408}
2024-04-25 20:11:19.328 ERROR (MainThread) [bimmer_connected.account] Unable to get details for vehicle WBA1S92090VD57888 - (MyBMWAPIError) HTTPStatusError: {"message":"Request Timeout","statusCode":408}
2024-04-25 20:11:19.329 ERROR (MainThread) [homeassistant.components.bmw_connected_drive.coordinator] Error fetching bmw_connected_drive-jennysouthon@hotmail.com data: HTTPStatusError: {"message":"Request Timeout","statusCode":408}

no further errors logged.

cloudbr34k84 commented 1 week ago

yeah working now. will close this down

cloudbr34k84 commented 1 week ago

anyone else experiencing more bmw issues?

AnthonyBe commented 1 week ago

I've seen 2 errors in the last 12 hours, but working fine. I'm assuming these are just spurious network or BMW server issues.

Logger: bimmer_connected.api.authentication
Source: components/bmw_connected_drive/coordinator.py:58
First occurred: 26 April 2024 at 21:46:29 (3 occurrences)
Last logged: 17:52:59

MyBMWAuthError due to HTTPStatusError: Client error '401 Unauthorized' for url 'https://cocoapi.bmwgroup.com/eadrax-vcs/v4/vehicles/state?apptimezone=600.0&appDateTime=1714131986412' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
MyBMWAuthError due to HTTPStatusError: Client error '401 Unauthorized' for url 'https://cocoapi.bmwgroup.com/eadrax-vcs/v4/vehicles/state?apptimezone=600.0&appDateTime=1714168164412' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
MyBMWAuthError due to HTTPStatusError: Client error '401 Unauthorized' for url 'https://cocoapi.bmwgroup.com/eadrax-vcs/v4/vehicles/state?apptimezone=600.0&appDateTime=1714204376412' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
cloudbr34k84 commented 1 week ago

Logger: bimmer_connected.api.authentication Source: components/bmw_connected_drive/config_flow.py:48 First occurred: 8:59:06 pm (6 occurrences) Last logged: 9:29:04 pm

MyBMWAuthError due to HTTPStatusError: invalid_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method) MyBMWAPIError due to HTTPStatusError: { "statusCode": 404, "message": "Resource not found" }

cloudbr34k84 commented 1 week ago

mah they are doing something... i cant even login via the website, unless its just me account.. https://www.bmw.com/en-au/shop/ls/cp/connected-drive

SimonBard commented 6 days ago

I can login, but the setup of the homeassistant integration fails. They also ask again on the website for the Fahrgestellnummer, but when I enter it, it says data is incorrect. Its a company car, so am not sure which data to enter there.

ThreeSixty123 commented 6 days ago

Same issue here (germany).

I recieve the errors but everything is working fine. Running 2024.4.4

rikroe commented 5 days ago

BMW seems to have shut down the older version of their APIs for good. #116424 fixes this for me in my development environment (I am able to create the integration again from scratch, no issues).

rikroe commented 5 days ago

Let's keep this open until the PR is merged.

rikroe commented 5 days ago

@home-assistant reopen