[APP][Pro] BMW Connected

Thanks @Heszi for the investigation and the effort. I really hope that all community is as helpful as you.

It is so easy to use a community supported app and make snarky comments.

PRs are always welcome. I will try to add a pipeline to automatically push merge to main.

9 Likes

Welcome back!!! :heart:

3 Likes

BMW’s response
As per my post above, BMW has been blocking my IP Address which makes the myBMW App unusable. I have uninstalled the BMW Connected App, but they are still periodically blocking my IP Address indicating that they are still detecting automated activity or scripts running on my network, triggering the block.

Has anyone else experienced this?

Could there still be something leftover on Homey that could be causing this?

If you remove the BMW Connected app, remove and reinstall the myBMW app and change your password your myBMW app should work again.

2 Likes

Unfortunately, the problem with the incorrect login due to missing Captcha still exists.

Would love to get this integrated. but unfortunately I’m unable to add our mini electric to Homey.
The logs are showing:

“[2024-12-13T21:20:23.086Z] Error: 401: Error occurred while attempting to retrieve token. Server response: {“error”: “invalid_client”, “error_description”: “Client authentication failed (e.g., login failure, unknown client, no client authentication included or unsupported authentication method)”}'”

Is this a known issue?

I have the same problem. Based on the GitHub comments to the app in the Homey Pro App Store, it seems to be a general problem. The question is whether the app is still maintained or abandoned.

I fear that the software is no longer being maintained. The issue has been ongoing for weeks, and there is no indication of any activity here or on GitHub.

1 Like

Only now found this app, also was not able to use it.Will buy a cup of coffee for the person fixing it :slight_smile:

I have experienced this. Theres probably some changes that can be made to avoid this, but I dont know what. Sounds to me like BMW has a bad system too.

Hi and thanks to all the users of this app. I have built this app for myself as well and it is also not working for me. This is due to a change in the login process of BMW where they have introduced a captcha process.

This is a community app. There is no paid team of developers maintaining this. If you follow the app which is the inspiration of this in HA you will see a lot of community contributions as well. I would very much welcome a PR addressing the login issue or any other improvements.

As mentioned I am currently also not able to use the app. I still drive a BMW and solely use Homey as my home automation. However, due to my personal situation are not able to work on this now. Hopefully sometime mid January I will be able to take a look.

10 Likes

Hi @Likhan,

I’ve created a Pull Request for the bmw-connected-drive library. Please take a look, and if you find it useful, feel free to merge it. This update allows passing the generated CAPTCHA token to obtain the login token from BMW.

I’ve already tested this with a modified version of the com.rexwel.bmwconnected app, and it’s now working on my Homey. However, it only works because my car was already added beforehand. For this test, I simply updated the settings screen to include an input field for the CAPTCHA token.

To create a fully functional app, the initial basic login page would need to be replaced with a custom one to accommodate the CAPTCHA input. This would require a more extensive code refactor, which might be better handled by you.

That said, this solution is functional and could be a good interim step to bring your app back to life.

PR: Add CAPTCHA token to handle new BMW login method, token able to retrieve from here: https://bimmer-connected.readthedocs.io/en/stable/captcha/rest_of_world.html by heszegi ¡ Pull Request #25 ¡ lsiddiquee/bmw-connected-drive ¡ GitHub


6 Likes

Thanks @Heszi. Everyone seems santa has arrived with a gift. I will try to find some time soon to look at it and integrate it into the homey app.

3 Likes

Special thanks and acknowledgement to bimmer_connected app developers as we are now (hopefully) temporarily going to be using their captcha token generator.

And again a lot of thanks to @Heszi for creating a PR to the underlying library for this app. I have now pushed a new version. Follow the following steps:

  1. Install the app from test link: BMW / Mini Connected | Homey
  2. Navigate to the settings of the BMW/Mini ConnectedDrive app in Homey
  3. Open browser and navigate to Captcha (Rest of World) — bimmer_connected 0.17.2 documentation or Captcha (North America) — bimmer_connected 0.17.2 documentation based on your region
  4. Solve the captcha
  5. Copy the token
  6. Paste it in the captcha token field in the settings view
  7. Hit “Save Changes”
    You should now get a login successful and your updates should be coming in shortly.

For navigating the app and copying the token I found it easier to use my computer. You can navigate to your homey from the desktop browser as well: https://my.homey.app/

16 Likes

Thanx @Likhan and @Heszi , for putting your time in this app!!

Changed the password, now working again.!

1 Like

Wow this works perfectly! Thanks for this fix!
This is well appreciated!
In the downtime of this app we bought a second bmw. As in the past trying to fix deleted app etc.
For now only the last bmw pops up to install but I would like the first bnw. Or even better both. How do I do that? I expected when choosing bmw or mini the next menu would give me 2 BMW’s.

Hope this is a simple answer.

Greetings.

And have some nice holidays.

1 Like

@Astrapowerrr this is how it should work by providing you a list. I will double check the implementation. However, cannot really test it as I have only one. :yum:.

I am assuming that your account is bound to both bmws as well.

Yes it’s one account with 2 cars in it. And it grabs now the last one.

Or maybe I just deleted way too much from my previous car in homey.

Don’t know if that’s possible.

Groetjes

Marco

use your PC and check your mail address… it’s a bit dodgy at times and I had to go back and forth on changing my mail address with a capital (which shouldn’t really matter so I guess it’s just being lucky to go through the authentication at random intervals).

Thanks a bunch @Likhan and @Heszi, best Christmas gift I could think of!

2 Likes

Works perfectly for me. Thanks for this fix! What about the polling interval? Should it still be 60s or should it be increased not to saturate BMW server?

1 Like