# BMW ConnectedDrive / BMW i3

**URL:** <https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876>\
**Category:** Bindings\
**Tags:** bmwi3, bmw\
**Created:** [August 19, 2020, 2:57pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876 "2020-08-19T14:57:51Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![weymann](https://community.openhab.org/user_avatar/community.openhab.org/weymann/32/90673_2.png) [@weymann](https://community.openhab.org/u/weymann)\
**Post date:** [August 19, 2020, 2:57pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/1 "2020-08-19T14:57:51Z")

</div>

Hi,

I’m currently implementing a Binding for BMW ConnectedDrive in order to bring my i3 into openhab. I did some research and I found these 2 posts.

[https://community.openhab.org/t/binding-for-bmw-i3/19295](https://community.openhab.org/t/binding-for-bmw-i3/19295)  
[https://community.openhab.org/t/script-to-access-the-bmw-connecteddrive-portal-via-oh/37345](https://community.openhab.org/t/script-to-access-the-bmw-connecteddrive-portal-via-oh/37345)

Both instructions are working quite fine and I started implementig the binding based on the above work. Authorization works fine and I’m receiving data - looks good! After looking deeper into the above solutions I saw different REST APIs were used for ConnectedDrive.

- [https://b2vapi.bmwgroup.com/webapi/v1/](https://b2vapi.bmwgroup.com/webapi/v1/)… and the other
- [https://b2vapi.bmwgroup.com/api/vehicle/](https://b2vapi.bmwgroup.com/api/vehicle/)…

I would say both are delivering the same information. With api/vehicle I receive german text e.g. for the next service, webapi delivers english text.

Does anyone has an advice or knowledge which one to use? Perhaps one is newer and has a brighter future 🙂

Any advice is helpful!  
Thanks

---

<div class="post-metadata">

**Author:** ![peter\_juenger](https://community.openhab.org/letter_avatar_proxy/v4/letter/p/f08c70/32.png) [@peter\_juenger](https://community.openhab.org/u/peter_juenger)\
**Post date:** [August 20, 2020, 1:14pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/2 "2020-08-20T13:14:27Z")

</div>

Hi @weymann,

If you‘re going to implement a binding from scratch by yourself, have a look at [https://github.com/bimmerconnected/bimmer\_connected](https://github.com/bimmerconnected/bimmer_connected)

It is the best maintained lib I know of right know.

---

<div class="post-metadata">

**Author:** ![weymann](https://community.openhab.org/user_avatar/community.openhab.org/weymann/32/90673_2.png) [@weymann](https://community.openhab.org/u/weymann)\
**Post date:** [August 20, 2020, 3:59pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/3 "2020-08-20T15:59:59Z")

</div>

Hi @peter_juenger,

yes, I’ve found this repository too and it looks well maintained. I placed same question yesterday [as an issue](https://github.com/bimmerconnected/bimmer_connected/issues/193). I hope I’ll get a response.

---

<div class="post-metadata">

**Author:** ![weymann](https://community.openhab.org/user_avatar/community.openhab.org/weymann/32/90673_2.png) [@weymann](https://community.openhab.org/u/weymann)\
**Post date:** [September 16, 2020, 4:48pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/4 "2020-09-16T16:48:44Z")

</div>

I received feedback to [my issue at bimmer-connected project](https://github.com/bimmerconnected/bimmer_connected/issues/193). The API to be used is clarified and I’ll take the same API as used in their project. With this approach we are relying on the same concept and also same test data can be used.

---

<div class="post-metadata">

**Author:** ![DirkNeumann](https://community.openhab.org/user_avatar/community.openhab.org/dirkneumann/32/81003_2.png) [@DirkNeumann](https://community.openhab.org/u/DirkNeumann)\
**Post date:** [October 31, 2020, 1:30pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/5 "2020-10-31T13:30:48Z")

</div>

Hi Bernd,

did you solved the authentication issue and finished a binding for openhab?  
I tried to adopt the bmwcdapi to new auth method - but failed…

---

<div class="post-metadata">

**Author:** ![weymann](https://community.openhab.org/user_avatar/community.openhab.org/weymann/32/90673_2.png) [@weymann](https://community.openhab.org/u/weymann)\
**Post date:** [October 31, 2020, 3:29pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/6 "2020-10-31T15:29:52Z")

</div>

There are currently serious problems regarding authorization. Also [bimmer\_connected](https://github.com/bimmerconnected/bimmer_connected/pull/210/files#diff-f04d4b18c747c9c071810bc10438e10fac879b8e9250a44f96df8f66aef885ef) project need some adaptions.  
My [latest adaptions](https://github.com/weymann/openhab-addons/tree/bmw-connected-drive-test/bundles/org.openhab.binding.bmwconnecteddrive/test) shall do the trick also!

---

<div class="post-metadata">

**Author:** ![Radu\_Marius](https://community.openhab.org/user_avatar/community.openhab.org/radu_marius/32/59787_2.png) [@Radu\_Marius](https://community.openhab.org/u/Radu_Marius)\
**Post date:** [February 2, 2021, 4:59pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/7 "2021-02-02T16:59:08Z")

</div>

for OH2 is working like a charm, any plan to migrate over OH3 in the near future? thanks!

---

<div class="post-metadata">

**Author:** ![weymann](https://community.openhab.org/user_avatar/community.openhab.org/weymann/32/90673_2.png) [@weymann](https://community.openhab.org/u/weymann)\
**Post date:** [February 15, 2021, 12:04am UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/8 "2021-02-15T00:04:00Z")

</div>

@ntruchsess started in parallel this work on OH3. Unfortunately I’ve still trouble in the official review but nevertheless you can use the [precompiled bundle from Norbert with the ChargeProfile changes](https://github.com/ntruchsess/openhab-addons/releases/tag/PR_2_Chargeprofile_Actions_JavaTypes).

---

<div class="post-metadata">

**Author:** ![Mario084](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@Mario084](https://community.openhab.org/u/Mario084)\
**Post date:** [April 9, 2021, 10:45am UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/9 "2021-04-09T10:45:42Z")

</div>

Hello Bernd,

I was using your binding with openhab 2.5 and it was working like a charm (openhabian on Raspi 4).

Yesterday I upgraded to OH3, downloaded the version 3.1 of your binding (newest version) and placed it into this folder:

```auto
/usr/share/openhab/addons/

```

![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/4/6/46012d444c15ac15fcd12a2568b44523bba85842.png)

The problem is that the binding is not working anymore - all my items are on status “NULL”:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/1/d16572d040bf766e064a35796de503e4c7bf04aa.png)

Is there something else I need to do, while upgrading from OH 2.5 to OH 3?

Thank you,  
Mario

---

<div class="post-metadata">

**Author:** ![weymann](https://community.openhab.org/user_avatar/community.openhab.org/weymann/32/90673_2.png) [@weymann](https://community.openhab.org/u/weymann)\
**Post date:** [April 9, 2021, 4:35pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/10 "2021-04-09T16:35:54Z")

</div>

I suggest to start checking the Thing. One finding from the official review is that Thing identifiers shall not be _upper case_. So Things definition changed from e.g. **BEV\_REX** to **bev\_rex**.

So if your Thing Status is offline try this first.

---

<div class="post-metadata">

**Author:** ![Mario084](https://community.openhab.org/letter_avatar_proxy/v4/letter/m/87869e/32.png) [@Mario084](https://community.openhab.org/u/Mario084)\
**Post date:** [April 9, 2021, 5:05pm UTC](https://community.openhab.org/t/bmw-connecteddrive-bmw-i3/103876/11 "2021-04-09T17:05:37Z")

</div>

Hello! Thanks for your reply.

I found the problem and fixed it?

I was getting the .jar file direclty on openhabian with SSH command “wget”.  
This was leading to the problem that the BMW binding was not available.

Now I created a new Samba share to be able to copy the .jar file directly with windows explorer into the SAME folder and it´s working now!

Thank for the advice regarding lower case definition in the things file. Everything is up and running again in OH3.

Br, Mario
