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.