BMW ConnectedDrive component

Same here. And the same issue with Audi

Same for me:

requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))

I tried the workaround from the above mentioned issue: https://github.com/bimmerconnected/bimmer_connected/compare/master...rikroe:fix/connection_refused

And at least the component is working again.

I tried the workaround as well and it seems to work for me

any solution for those of us who have HA and not core Docker? :pensive: :pensive:

PR with the fix is made by @rikroe -> https://github.com/home-assistant/core/pull/42215
Hopefully it will be merged as hotfix in 0.117. It’s merged as hotfix in the beta and will be part of 0.117.

If you want to fix it in the meanwhile you can check here for instructions -> https://github.com/home-assistant/core/issues/42139.

4 Likes

It’s not in the release notes… is it merged?

Yep. Working after upgrade :slight_smile:

Confirmed to be fully functional again after update to 0.117.0 !
Grtz
John

yes, 117 solves it! thanks all!

after a restart of HA today it seems again a problem with the login
anyone else facing the same issue?

Same here.

BMW has a “new” app, called “my BMW” might have to do with?

As usual the app sucks… less functionality than before (cannot horn and flash light).

this new app ist there already since a few month. the old one still works as well.
but it seems they are changing from time to time something on their API

I raised a bug at github

Thanks so much for this fantastic component. Here is what I’ve done with it:
Not sure where best to post - BMW Connected Automation - Remind me to lock my car
Hope this might inspire or help others trying to achieve similar things.

Hi there,

Thanks so much for a great component! really useful!
However, last couple of days i am having issues with locking and unlocking the car.
I get an error message and in the log it is prompted:

Logger: homeassistant.components.websocket_api.http.connection.1866835160
Source: components/bmw_connected_drive/lock.py:88
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 22:01:04 (1 occurrences)
Last logged: 22:01:04

‘executionStatus’

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 135, in handle_call_service await hass.services.async_call( File “/usr/src/homeassistant/homeassistant/core.py”, line 1448, in async_call task.result() File “/usr/src/homeassistant/homeassistant/core.py”, line 1483, in _execute_service await handler.job.target(service_call) File “/usr/src/homeassistant/homeassistant/helpers/entity_component.py”, line 204, in handle_service await self.hass.helpers.service.entity_service_call( File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 482, in entity_service_call future.result() # pop exception if have File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 664, in async_request_call await coro File “/usr/src/homeassistant/homeassistant/helpers/service.py”, line 519, in _handle_entity_call await result File “/usr/src/homeassistant/homeassistant/components/lock/init.py”, line 102, in async_lock await self.hass.async_add_executor_job(ft.partial(self.lock, **kwargs)) File “/usr/local/lib/python3.8/concurrent/futures/thread.py”, line 57, in run result = self.fn(*self.args, **self.kwargs) File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/lock.py”, line 88, in lock self._vehicle.remote_services.trigger_remote_door_lock() File “/usr/local/lib/python3.8/site-packages/bimmer_connected/remote_services.py”, line 158, in trigger_remote_door_lock result = self._block_until_done(_Services.REMOTE_DOOR_LOCK) File “/usr/local/lib/python3.8/site-packages/bimmer_connected/remote_services.py”, line 213, in _block_until_done status = self._get_remote_service_status(service) File “/usr/local/lib/python3.8/site-packages/bimmer_connected/remote_services.py”, line 236, in _get_remote_service_status return RemoteServiceStatus(json_result) File “/usr/local/lib/python3.8/site-packages/bimmer_connected/remote_services.py”, line 118, in init status = response[‘executionStatus’] KeyError: ‘executionStatus’

Anyone know why i get this error message and what i should do to solve it?
Also, please be kind to me, i am new to HA :slight_smile:

There is a fix on the way

2 Likes

Thanks! That’s good to hear :grinning:

That’s indeed a known issue which you can track here → KeyError: 'executionStatus' · Issue #223 · bimmerconnected/bimmer_connected · GitHub and also here → BMW Connected Drive gives "KeyError: 'executionStatus'" when locking · Issue #34776 · home-assistant/core · GitHub

1 Like

I just updated home assistant to latest core release, now the component does not even start:

Logger: bimmer_connected.account
Source: /usr/local/lib/python3.8/site-packages/bimmer_connected/account.py:103
First occurred: 7:25:31 (1 occurrences)
Last logged: 7:25:31

The BMW Connected Drive portal returned an error: UNKNOWN_ERROR (received status code 400 and expected 200).
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 98, in _get_oauth_token
response = self.send_request(url, data=data, headers=headers, allow_redirects=False,
File “/usr/local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 152, in send_request
raise IOError(msg)
OSError: The BMW Connected Drive portal returned an error: UNKNOWN_ERROR (received status code 400 and expected 200).

And also this message in the log:

Logger: homeassistant.setup
Source: components/bmw_connected_drive/init.py:127
First occurred: 7:25:32 (1 occurrences)
Last logged: 7:25:32

Error during setup of component bmw_connected_drive
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 98, in _get_oauth_token
response = self.send_request(url, data=data, headers=headers, allow_redirects=False,
File “/usr/local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 152, in send_request
raise IOError(msg)
OSError: The BMW Connected Drive portal returned an error: UNKNOWN_ERROR (received status code 400 and expected 200).

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 213, in _async_setup_component
result = await task
File “/usr/local/lib/python3.8/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/init.py”, line 52, in setup
accounts.append(setup_account(account_config, hass, name))
File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/init.py”, line 80, in setup_account
cd_account = BMWConnectedDriveAccount(username, password, region, name, read_only)
File “/usr/src/homeassistant/homeassistant/components/bmw_connected_drive/init.py”, line 127, in init
self.account = ConnectedDriveAccount(username, password, region)
File “/usr/local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 61, in init
self._get_vehicles()
File “/usr/local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 214, in _get_vehicles
self._get_oauth_token()
File “/usr/local/lib/python3.8/site-packages/bimmer_connected/account.py”, line 104, in _get_oauth_token
raise OSError(msg) from exception
OSError: Authentication failed. Maybe your password is invalid?

As far as i could see this seems to have a fix on it’s way as well? Once again, sorry if this is obvious, but I’m new to this :slight_smile: