Bosch eBike Flow App Integration (BES3)

Just installed a Connect Module today on my Bosch Performance Line BDU3360 on an Urban Arrow.

Integration works really well! Thanks so much for the hard work so far!
I did have to search the ‘code’ part of the integration, as it wasn’t the first parameter in the response.

Will dive into the API as well and see what else is available, location tracking would be awesome.

Would be great to also see the last location report in HA (like mentioned in Live / last position report for bikes with Connect module? · Issue #26 · TA2k/ioBroker.bosch-ebike · GitHub)

Wow, thank you very much @phil-barker !

Thanks a lot of working on this @phil-barker !

Unfortunately I’m trying to install the app today and can’t seem to use the code in the response is not working.
I noticed that the URL using oauth2redirect:

onebikeapp-ios://com.bosch.ebike.onebikeapp/oauth2redirect?state=XXX&session_state=YYY&iss=ZZZ&code=1a2b3d45-6e78-4f15-b2d9-8c5a0f3e7621.f94d8a3b-7e12-4c86-a5f3-2b9d6e8c1a47.c2f5b8d1-3a94-4e76-b1c8-5d7f9a2e6b34

(code obfuscated)

EDIT: Nevermind, after restarting the workflow from scratch I was able to get a code that worked. I think my request in HA and the request URL I was using in my browser were not aligned after retrying multiple times.

Thanks so much @phil-barker
Works perfectly.

well, I managed it like you have described (developer console …) but after putting my mail + password in I see: “Safari cannot open the page because the address is invalid.”
No “onebikeapp-ios//…Url” in Network tab.
I tried it 100 times…may more :wink:
Any idea?
thx in advance!

Same here. No chance in Safari. I tried Firefox. It shows:
onebikeapp-ios://com.bosch.ebike.onebikeapp/oauth2redirect?state= …

but not code

It doesn’t work


Hier sieht man den Code markiert (ist abgeschnitten), so ging es bei mir

great work, isn’t it possible to add the add to HACS buttons to make it more easy to install for newbees?

I installed the integration, followed the link for the login. I don’t get an url with this token, there is something code_challenge challenge_method the URL is Misconfigured Application - SingleKey ID? like this.

[Edit] WIth firefox I was able to get the correct code, Chrome didn’t want to work for me. [/edit]