core icon indicating copy to clipboard operation
core copied to clipboard

BMW Integration Broken / BMW Appear to be updating Servers

Open cloudbr34k84 opened this issue 9 months ago • 26 comments

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_

cloudbr34k84 avatar Apr 25 '24 06:04 cloudbr34k84

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)

home-assistant[bot] avatar Apr 25 '24 06:04 home-assistant[bot]

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

AnthonyBe avatar Apr 25 '24 06:04 AnthonyBe

bugger means that BMW have done something to API

cloudbr34k84 avatar Apr 25 '24 06:04 cloudbr34k84

Same issue in Japan with core 2024.4.4

nareso avatar Apr 25 '24 06:04 nareso

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

sgbossinga avatar Apr 25 '24 06:04 sgbossinga

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

Soann84 avatar Apr 25 '24 06:04 Soann84

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

PsychoMnts avatar Apr 25 '24 06:04 PsychoMnts

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

iJuiceman avatar Apr 25 '24 07:04 iJuiceman

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

Auka84 avatar Apr 25 '24 07:04 Auka84

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.

uphillbattle avatar Apr 25 '24 07:04 uphillbattle

Now available again in Japan

It only worked for 3 minutes. Currently down again.

nareso avatar Apr 25 '24 07:04 nareso

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.

PsychoMnts avatar Apr 25 '24 07:04 PsychoMnts

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

iJuiceman avatar Apr 25 '24 08:04 iJuiceman

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

mibo-wb-gh avatar Apr 25 '24 08:04 mibo-wb-gh

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

davebarrett1959 avatar Apr 25 '24 08:04 davebarrett1959

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

cresch06 avatar Apr 25 '24 10:04 cresch06

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

davebarrett1959 avatar Apr 25 '24 10:04 davebarrett1959

All working in Australia now

iJuiceman avatar Apr 25 '24 11:04 iJuiceman

Also working again in Belgium

Auka84 avatar Apr 25 '24 11:04 Auka84

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)

cloudbr34k84 avatar Apr 25 '24 19:04 cloudbr34k84

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 [email protected] data: HTTPStatusError: {"message":"Request Timeout","statusCode":408}

no further errors logged.

AnthonyBe avatar Apr 26 '24 00:04 AnthonyBe

yeah working now. will close this down

cloudbr34k84 avatar Apr 26 '24 06:04 cloudbr34k84

anyone else experiencing more bmw issues?

cloudbr34k84 avatar Apr 27 '24 11:04 cloudbr34k84

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

AnthonyBe avatar Apr 27 '24 11:04 AnthonyBe

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 avatar Apr 27 '24 11:04 cloudbr34k84

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

cloudbr34k84 avatar Apr 27 '24 12:04 cloudbr34k84

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.

SimonBard avatar Apr 29 '24 10:04 SimonBard

Same issue here (germany).

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

ThreeSixty123 avatar Apr 29 '24 11:04 ThreeSixty123

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 avatar Apr 29 '24 20:04 rikroe

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

rikroe avatar Apr 30 '24 06:04 rikroe