BMW integration keeps asking Integration requires reconfiguration

Since a week every day I get around 3 times:
Integration requires reconfiguration

image

image

Reconfigure is always successful:
image

Anyone else?

I have the same issue

1 Like

Same problem here

I have the same problem. I noticed though that BMW updated the app. Wonder if that is linked somehow

I have the same problem: it has been working perfectly for months, but now requires re-authentication every 24 hours or so. Re-authentication always seems to work instantly - but it’s frustrating that a manual process is required regularly.

The issue last occurred for me at 10:36 this morning, with the following log entries (email redacted):

2023-12-03 10:36:54.994 ERROR (MainThread) [bimmer_connected.api.authentication] MyBMWAuthError due to HTTPStatusError: Client error '401 Unauthorized' for url 'https://cocoapi.bmwgroup.com/eadrax-vcs/v4/vehicles/state?apptimezone=0.0&appDateTime=1701599812700'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
2023-12-03 10:36:54.996 ERROR (MainThread) [homeassistant.components.bmw_connected_drive.coordinator] Error fetching [email protected] data: HTTPStatusError: Client error '401 Unauthorized' for url 'https://cocoapi.bmwgroup.com/eadrax-vcs/v4/vehicles/state?apptimezone=0.0&appDateTime=1701599812700'
2023-12-03 10:42:01.271 ERROR (MainThread) [bimmer_connected.api.authentication] MyBMWAuthError due to HTTPStatusError: Client error '401 Unauthorized' for url 'https://cocoapi.bmwgroup.com/eadrax-vcs/v4/vehicles/state?apptimezone=0.0&appDateTime=1701600114700'

There had been an earlier error too:

2023-12-03 09:36:24.446 ERROR (MainThread) [homeassistant.components.bmw_connected_drive.coordinator] Unexpected error fetching [email protected] data: 'capabilities'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/coordinator.py", line 59, in _async_update_data
await self.account.get_vehicles()
File "/usr/local/lib/python3.11/site-packages/bimmer_connected/account.py", line 115, in get_vehicles
if vehicle_state[ATTR_CAPABILITIES].get("isChargingPlanSupported", False) or vehicle_state[
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'capabilities'

… but it looks as if the sensors only became unavailable at 10:36.

If you look at the github link I sent, a fix for this will be included in 2023.12. If you don’t want to wait for that you can “force HA to use the newer version by editing homeassistant/components/bmw_connected_drive/manifest.json and setting bimmer-connected to 0.14.5” (quote from github).

2 Likes

Perfect thanks! Sorry, I had completely missed that link.

Thanks for the solution otherwise it is anoying!

1 Like

This definitely fixed the reauthenticate every day issue, but now I have the reverse - if authentication fails (eg because my BMW password has changed) the integration just loops failing to initialise, never asks for me to reconfigure it. (Or did I just not wait long enough??)