BMW ConnectedDrive component

Hey guys, some entities went offline after the Nov update of HA, anyone experience the same?
These ones in particular:

1 Like

I’m seeing this over and over again in my log are you?

2021-11-08 10:05:26 ERROR (MainThread) [homeassistant.components.sensor] bmw_connected_drive: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 651, in async_device_update
await task
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/sensor.py", line 535, in update
value_converted = self.hass.config.units.length(value, LENGTH_KILOMETERS)
File "/usr/src/homeassistant/homeassistant/util/unit_system.py", line 116, in length
raise TypeError(f"{length!s} is not a numeric value.")
TypeError: None is not a numeric value.

No I am not seeing any BMW related warnings/errors in my logs.

Same issue as @sd_dracula, no errors in the logs, but sensors related to electric charging and trip statistics are missing

Guessing it could be BMW that changed their API? Will put in an issue in github.

1 Like

Hello, now all updates of my bmw stopped working.

I have this in the log:

Logger: homeassistant.components.sensor
Source: components/bmw_connected_drive/sensor.py:565
Integration: Sensor (documentation, issues)
First occurred: 13:05:45 (23 occurrences)
Last logged: 13:05:45

bmw_connected_drive: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 651, in async_device_update
    await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/sensor.py", line 565, in update
    self._attr_native_value = getattr(attr, sub_attr)
AttributeError: 'NoneType' object has no attribute 'community_average'

Also having issues today using the BMW integration to read data from my Mini & all off a sudden stopped updating. The Mini Connected app works just fine so looks like as said above BMW changed the API & integration is broken :frowning:

Ah, I see I am not the only one having sudden issues with BMW Connected Drive integration! +1

Completely broken after 2021.11.2 update :sob:

2021-11-09 18:45:51 ERROR (MainThread) [homeassistant.components.binary_sensor] bmw_connected_drive: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 651, in async_device_update
    await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py", line 251, in update
    self._attr_is_on = self.entity_description.value_fn(
  File "/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py", line 102, in _is_vehicle_charging
    extra_attributes["charging_status"] = vehicle_state.charging_status.value
AttributeError: 'NoneType' object has no attribute 'value'
2 Likes

2021.10.3 have the same issues - so it’s not related to 2021.11.2 - it’s a general break of integration

Same issue with core-2021.11.1, seems not to be related with the update.

bmw_connected_drive: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 651, in async_device_update
    await task
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py", line 251, in update
    self._attr_is_on = self.entity_description.value_fn(
  File "/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py", line 79, in _are_problems_detected
    for report in vehicle_state.condition_based_services:
TypeError: 'NoneType' object is not iterable

Broken for me too!

I have three sensors/functions going unavailable - the rest seems to update fine. Have this in my logs:

Error 1:
bmw_connected_drive: Error on device update!
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 651, in async_device_update
await task
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/lock.py”, line 93, in update
result[“door_lock_state”] = vehicle_state.door_lock_state.value
AttributeError: ‘NoneType’ object has no attribute ‘value’

Error 2:
bmw_connected_drive: Error on device update!
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 651, in async_device_update
await task
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py”, line 251, in update
self._attr_is_on = self.entity_description.value_fn(
File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py”, line 60, in _are_doors_locked
extra_attributes[“door_lock_state”] = vehicle_state.door_lock_state.value
AttributeError: ‘NoneType’ object has no attribute ‘value’

Error 3:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 651, in async_device_update
await task
File “/usr/local/lib/python3.9/concurrent/futures/thread.py”, line 52, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py”, line 251, in update
self._attr_is_on = self.entity_description.value_fn(
File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/binary_sensor.py”, line 79, in _are_problems_detected
for report in vehicle_state.condition_based_services:
TypeError: ‘NoneType’ object is not iterable

Also broken. But binary_sensor.i3s_94_rex_lids, binary_sensor.i3s_94_rex_windows, sensor.i3s_94_rex_remaining_range_total, binary_sensor.i3s_94_rex_check_control_messages continue to show status information.

Seems to happen for me as well.
image
What to do?

Github issue is open see the following link:

Now since today I get:
image

I was also getting this, so removed BMW Connected and now trying to reinstall.
When I enter my credentials, (that I know are correct), I get connection failed.
I get this in the log
Logger: bimmer_connected.account
Source: /usr/local/lib/python3.9/site-packages/bimmer_connected/account.py:192
First occurred: 12:40:15 (4 occurrences)
Last logged: 14:01:35

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

Same, and I’m using the latest beta with the fixes for the recent issues. Looks like BMW are continuing to move goalposts.

They better call it “DisConnectedDrive”

2 Likes