# \[APP\]\[Pro\] BMW Connected

**URL:** <https://community.homey.app/t/app-pro-bmw-connected/49199>\
**Category:** Apps\
**Tags:** app, official, wifi, homey-pro\
**Created:** [July 7, 2021, 7:01pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199 "2021-07-07T19:01:40Z")\
**Posts on this page:** 20\
**Page:** 9

<div class="post-metadata">

**Author:** ![Blooddrunk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/blooddrunk/32/82094_2.png) [@Blooddrunk](https://community.homey.app/u/Blooddrunk)\
**Post date:** [October 26, 2024, 9:11pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/164 "2024-10-26T21:11:37Z")

</div>

Is this app dead? Not a single function seems to be working.

---

<div class="post-metadata">

**Author:** ![aleksander.lyse](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/aleksander.lyse/32/22066_2.png) [@aleksander.lyse](https://community.homey.app/u/aleksander.lyse)\
**Post date:** [October 27, 2024, 10:42am UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/165 "2024-10-27T10:42:44Z")

</div>

The goal is to just run one smart hub. I just have HA right now because thats where old is running, and just used it to verify if its running.

---

<div class="post-metadata">

**Author:** ![TimVW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvw/32/79069_2.png) [@TimVW](https://community.homey.app/u/TimVW)\
**Post date:** [October 29, 2024, 8:38am UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/166 "2024-10-29T08:38:33Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/9/a934bf0b3b0e9ac383cffcaa2f396039afa35086.png)

The app still works on my Homey…

---

<div class="post-metadata">

**Author:** ![Blooddrunk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/blooddrunk/32/82094_2.png) [@Blooddrunk](https://community.homey.app/u/Blooddrunk)\
**Post date:** [October 29, 2024, 11:00am UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/167 "2024-10-29T11:00:53Z")

</div>

And does function lock/unlock/climate works for you? Because these functions do not work for me…

---

<div class="post-metadata">

**Author:** ![TimVW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvw/32/79069_2.png) [@TimVW](https://community.homey.app/u/TimVW)\
**Post date:** [October 30, 2024, 9:32am UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/168 "2024-10-30T09:32:14Z")

</div>

No, stoped working long time ago.

---

<div class="post-metadata">

**Author:** ![Blooddrunk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/blooddrunk/32/82094_2.png) [@Blooddrunk](https://community.homey.app/u/Blooddrunk)\
**Post date:** [October 30, 2024, 9:40am UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/169 "2024-10-30T09:40:41Z")

</div>

That’s what I am talking about. The only two functions that are handy for automation and it doesn’t work. And developer seems to be dead to fix the issue. This is a real weakness of Homey 😭

---

<div class="post-metadata">

**Author:** ![Joske522](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joske522/32/12780_2.png) [@Joske522](https://community.homey.app/u/Joske522)\
**Post date:** [November 2, 2024, 3:52pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/170 "2024-11-02T15:52:57Z")

</div>

Yes I have the same issue. But not handy with coding so if you could take a look to see if you can revive this app, would be awesome

---

<div class="post-metadata">

**Author:** ![Ollem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ollem/32/9413_2.png) [@Ollem](https://community.homey.app/u/Ollem)\
**Post date:** [November 8, 2024, 2:28pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/171 "2024-11-08T14:28:03Z")

</div>

Facing same issue: can’t re-add my BMW anymore.  
Tried to debug, but the issue is above my coding skills…

Somehow the required token is not retrieved, recognised, used or saved using SDK function “executeFetchWithRetry”. If the error is in the SDK code, it’s likely an extra hurdle to fix the app…

Error logs:

```auto
[log] [ManagerDrivers] [Driver:bmw] BMW ConnectedDrive driver has been initialized
[log] [ManagerDrivers] [Driver:mini] Mini ConnectedDrive driver has been initialized
[log] [] Error: 429: Error occurred while attempting to retrieve token.
[log] [] Debug: Attempting retrieving token from token store.
[log] [] Debug: Getting token from token endpoint.
[log] [] Trace: {"client_id":"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx" ,"response_type":"code","redirect_uri":"com.bmw.connected://oauth","state":"O-YYYYYYYYYYYYYYYYY","nonce":"login_nonce","scope":"openid profile email offline_access smacc vehicle_data perseus dlm svds cesim vsapi remote_services fupo authenticate_user","code_challenge":"Cd6F-ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ","code_challenge_method":"S256","grant_type":"authorization_code","username":"my@email.com","password":"<password>"}
[log] Trace: Sleeping for retry.
[log] Trace: Sleeping for retry.
[log] Trace: Sleeping for retry.
[log] Trace: Sleeping for retry.
[log] Trace: Sleeping for retry.
[log] Trace: Sleeping for retry.
[log] Trace: Sleeping for retry.
[log] Trace: Sleeping for retry.
[log] Trace: Sleeping for retry.
[log] Error: 429: Error occurred while attempting to retrieve token. Server response: 
[log] [ManagerDrivers] [Driver:bmw] Error: 429: Error occurred while attempting to retrieve token.
    at Account.executeFetchWithRetry (/node_modules/bmw-connected-drive/src/Account.ts:197:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at Account.retrieveToken (/node_modules/bmw-connected-drive/src/Account.ts:114:26)
    at Account.getToken (/node_modules/bmw-connected-drive/src/Account.ts:59:26)
    at /drivers/ConnectedDriver.ts:20:13

```

---

<div class="post-metadata">

**Author:** ![TimVW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvw/32/79069_2.png) [@TimVW](https://community.homey.app/u/TimVW)\
**Post date:** [November 20, 2024, 1:47pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/172 "2024-11-20T13:47:08Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/0/3080d20c09623012432d170c1c60c1ba9d1e3407.png)

Have the same error since 2 days now. App is broken.

Can anyone fix / adopt this app? Would like to continue using it.

---

<div class="post-metadata">

**Author:** ![Ric\_E](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ric_e/32/79404_2.png) [@Ric\_E](https://community.homey.app/u/Ric_E)\
**Post date:** [November 20, 2024, 4:56pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/173 "2024-11-20T16:56:53Z")

</div>

Same here, also 2 days no contact with the car.

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/e/ae7dc111c62f5d5f1a31e42d3fdb088d57a03bb2.png)

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [November 20, 2024, 5:10pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/174 "2024-11-20T17:10:59Z")

</div>

> [@TimVW](#):
>
> Can anyone fix / adopt this app?

Probably the issue is on the BMW servers … Willingly or not, is not clear at this stage:

> <https://github.com/home-assistant/core/issues/128598>
>
> \### The problem
> 
> I am attempting to setup the integration first time. I have tri…ed multiple times over the last couple days but I am getting authentication failed error. 
> 
> I have the MyBMW App working, as well as I can see my car on the bmw connected website just fine. I have change my password to ensure it's up to date but no luck. I tried using all regions as well, but none of them worked. I'm from Canada, and so is my account and car registered to Canadian region. 
> 
> I have noticed in the log that the URL the authentication module is using, doesnt seem to exist (404) based on the logs. 
> 
> \### What version of Home Assistant Core has the issue?
> 
> 20241002.3
> 
> \### What was the last working version of Home Assistant Core?
> 
> \_No response\_
> 
> \### What type of installation are you running?
> 
> Home Assistant Container
> 
> \### 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?
> 
> \`\`\`txt
> 2024-10-16 11:34:26.634 WARNING (MainThread) \[homeassistant.util.loop\] Detected blocking call to load\_verify\_locations with args (\<ssl.SSLContext object at 0x1480b727f150\>,) inside the event loop by integration 'bmw\_connected\_drive' at homeassistant/components/bmw\_connected\_drive/config\_flow.py, line 54: await auth.login() (offender: /usr/local/lib/python3.12/site-packages/httpx/\_config.py, line 149: context.load\_verify\_locations(cafile=cafile)), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+bmw\_connected\_drive%22
> File "/usr/src/homeassistant/homeassistant/components/bmw\_connected\_drive/config\_flow.py", line 91, in async\_step\_user
> File "/usr/src/homeassistant/homeassistant/components/bmw\_connected\_drive/config\_flow.py", line 54, in validate\_input
> 2024-10-16 11:34:27.689 ERROR (MainThread) \[bimmer\_connected.api.authentication\] MyBMWAuthError due to HTTPStatusError: { "statusCode": 404, "message": "Resource not found" }
> 2024-10-16 11:34:30.749 ERROR (MainThread) \[bimmer\_connected.api.authentication\] MyBMWAuthError due to HTTPStatusError: invalid\_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)
> 2024-10-16 11:34:34.556 ERROR (MainThread) \[bimmer\_connected.api.authentication\] MyBMWAuthError due to HTTPStatusError: invalid\_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)
> \`\`\`
> 
> 
> \### Additional information
> 
> \_No response\_

---

<div class="post-metadata">

**Author:** ![TimVW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvw/32/79069_2.png) [@TimVW](https://community.homey.app/u/TimVW)\
**Post date:** [November 20, 2024, 6:05pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/175 "2024-11-20T18:05:39Z")

</div>

The native MyBMW app works perfect…

---

<div class="post-metadata">

**Author:** ![Jan\_Peeters](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_peeters/32/86660_2.png) [@Jan\_Peeters](https://community.homey.app/u/Jan_Peeters)\
**Post date:** [November 21, 2024, 8:55am UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/176 "2024-11-21T08:55:47Z")

</div>

Indeed. But the authentication for third parties doesn’t.

---

<div class="post-metadata">

**Author:** ![Ollem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ollem/32/9413_2.png) [@Ollem](https://community.homey.app/u/Ollem)\
**Post date:** [November 22, 2024, 8:06am UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/177 "2024-11-22T08:06:40Z")

</div>

I’m afraid you are right the issue is indeed at BMW: as soon as your stored token expires you won’t be able to get a new one.  
The issue now also occurs for me at Home Assistant and at Tibber the integration to add a BMW also doesn’t work anymore.

---

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [November 23, 2024, 4:48am UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/178 "2024-11-23T04:48:08Z")

</div>

Hi, My BMW flows also stopped working this week. Removed the device and cant add it back as it fails at entering the username/password. I removed the App and then re installed it. Still cant add a device.

I put the username/pw in the App settings but I suspect they aren’t authenticated. When you try and add the device authentication fails.

---

<div class="post-metadata">

**Author:** ![Herman\_en\_Karin\_Eerd](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/herman_en_karin_eerd/32/84610_2.png) [@Herman\_en\_Karin\_Eerd](https://community.homey.app/u/Herman_en_Karin_Eerd)\
**Post date:** [November 23, 2024, 11:45am UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/179 "2024-11-23T11:45:26Z")

</div>

Hi. Is this app still working? I try to connect my IX50, but the response is that the credentials are not ok. Same for my wife’s Mini Electric. Credentials are fine when logging in to MyBWM and MyMini. Any suggestions? Thank you so much.

---

<div class="post-metadata">

**Author:** ![TimVW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvw/32/79069_2.png) [@TimVW](https://community.homey.app/u/TimVW)\
**Post date:** [November 25, 2024, 12:22pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/180 "2024-11-25T12:22:51Z")

</div>

Looks there is a solution when you read the latest posts:

> <https://github.com/home-assistant/core/issues/128598>
>
> \### The problem
> 
> I am attempting to setup the integration first time. I have tri…ed multiple times over the last couple days but I am getting authentication failed error. 
> 
> I have the MyBMW App working, as well as I can see my car on the bmw connected website just fine. I have change my password to ensure it's up to date but no luck. I tried using all regions as well, but none of them worked. I'm from Canada, and so is my account and car registered to Canadian region. 
> 
> I have noticed in the log that the URL the authentication module is using, doesnt seem to exist (404) based on the logs. 
> 
> \### What version of Home Assistant Core has the issue?
> 
> 20241002.3
> 
> \### What was the last working version of Home Assistant Core?
> 
> \_No response\_
> 
> \### What type of installation are you running?
> 
> Home Assistant Container
> 
> \### 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?
> 
> \`\`\`txt
> 2024-10-16 11:34:26.634 WARNING (MainThread) \[homeassistant.util.loop\] Detected blocking call to load\_verify\_locations with args (\<ssl.SSLContext object at 0x1480b727f150\>,) inside the event loop by integration 'bmw\_connected\_drive' at homeassistant/components/bmw\_connected\_drive/config\_flow.py, line 54: await auth.login() (offender: /usr/local/lib/python3.12/site-packages/httpx/\_config.py, line 149: context.load\_verify\_locations(cafile=cafile)), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+bmw\_connected\_drive%22
> File "/usr/src/homeassistant/homeassistant/components/bmw\_connected\_drive/config\_flow.py", line 91, in async\_step\_user
> File "/usr/src/homeassistant/homeassistant/components/bmw\_connected\_drive/config\_flow.py", line 54, in validate\_input
> 2024-10-16 11:34:27.689 ERROR (MainThread) \[bimmer\_connected.api.authentication\] MyBMWAuthError due to HTTPStatusError: { "statusCode": 404, "message": "Resource not found" }
> 2024-10-16 11:34:30.749 ERROR (MainThread) \[bimmer\_connected.api.authentication\] MyBMWAuthError due to HTTPStatusError: invalid\_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)
> 2024-10-16 11:34:34.556 ERROR (MainThread) \[bimmer\_connected.api.authentication\] MyBMWAuthError due to HTTPStatusError: invalid\_client - Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)
> \`\`\`
> 
> 
> \### Additional information
> 
> \_No response\_

unfortunately I’m not a dev…

---

<div class="post-metadata">

**Author:** ![Peter\_Bittner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_bittner/32/16698_2.png) [@Peter\_Bittner](https://community.homey.app/u/Peter_Bittner)\
**Post date:** [November 28, 2024, 6:55pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/181 "2024-11-28T18:55:02Z")

</div>

Here is an extract of an email I received from BMW.

“To protect users from potential security risks, certain measures, including automatic detection of unusual activity, have been put in place. If certain patterns are identified, the system may block the associated IP address. In this case, it appears that automated activity or scripts were running on your network, triggering the block.

Please note that under these conditions, the IP address cannot be manually unblocked. You must stop these activities and use the system normally. Once the activity is no longer flagged as unusual, access should be restored automatically.”

---

<div class="post-metadata">

**Author:** ![Peter\_de\_Vos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_de_vos/32/151925_2.png) [@Peter\_de\_Vos](https://community.homey.app/u/Peter_de_Vos)\
**Post date:** [November 28, 2024, 9:08pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/182 "2024-11-28T21:08:51Z")

</div>

Although i don’t use the app for almost a year because bmw blocked the ipadress, its still blocked. When i want to check the status in the mybmw app i first have to switch off wifi😬

---

<div class="post-metadata">

**Author:** ![Heszi](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heszi/32/93097_2.png) [@Heszi](https://community.homey.app/u/Heszi)\
**Post date:** [November 28, 2024, 9:52pm UTC](https://community.homey.app/t/app-pro-bmw-connected/49199/183 "2024-11-28T21:52:25Z")

</div>

Hi @Likhan,

First of all, thank you for this app, I really enjoy using it when it’s functioning properly. I hope the following summary about the recent issue will help.

It seems that there have been some changes in the MyBMW API authentication process. Specifically, a hidden CAPTCHA has been introduced during login, which appears to be breaking the authentication process in your Homey application.

The good news is that the team at BimmerConnected has identified a potential workaround. From my research into their Python code, it looks like they’ve added new authentication headers that include the CAPTCHA token while requesting the authentication token from BMW. You can find the related source here: [bimmer\_connected/bimmer\_connected/api/authentication.py at ce073425b4030a22a52f3a1c585480eb3d44e45a · bimmerconnected/bimmer\_connected · GitHub](https://github.com/bimmerconnected/bimmer_connected/blob/ce073425b4030a22a52f3a1c585480eb3d44e45a/bimmer_connected/api/authentication.py#L194C18-L194C31)

The hidden CAPTCHA token is typically generated during the official BMW login process, but BimmerConnected has developed a mock generator for it, which you can find here: [Captcha (Rest of World) — bimmer\_connected 0.17.1 documentation](https://bimmer-connected.readthedocs.io/en/stable/captcha/rest_of_world.html)

If you have some time, perhaps you could add a simple input field in the Homey app’s settings, below the login form. Users could then manually provide the generated CAPTCHA token, which you could pass to the relevant part of the authentication process (if I understand correctly, somewhere around here in your code: [bmw-connected-drive/src/Account.ts at 6904123e41464e011da0b522c42f97d3b8d6b43b · lsiddiquee/bmw-connected-drive · GitHub](https://github.com/lsiddiquee/bmw-connected-drive/blob/6904123e41464e011da0b522c42f97d3b8d6b43b/src/Account.ts#L118))

I haven’t personally tested this solution, but I hope it makes resolving the issue a bit easier for you. If this isn’t the root cause, I apologize, I just wanted to help with the best intentions.

Best regards,  
Heszi

[Previous page](https://community.homey.app/t/app-pro-bmw-connected/49199.md?page=8)

[Next page](https://community.homey.app/t/app-pro-bmw-connected/49199.md?page=10)
