MyBMW Binding

Cool, thank you! This worked for Basic UI. For the HABPanel it still shows 3687000 km. I activated „use server format if provided“.
And the % values for SOC are shown as 0.84, e.g. instead of 84%.

Any hints?

Sorry, I don’t use HABPanel, can’t help on that.

I’m encountering an issue around authentication. The account things shows

COMMUNICATION_ERROR
Request vehicles failed.

openhab.log shows there’s a 404 error:

2023-08-06 00:34:55.468 [WARN ] [al.handler.auth.MyBMWTokenController] - Authorization Exception: URL: https://cocoapi.bmwgroup.com/eadrax-ucs/v1/presentation/oauth/config, Error: 404, Message: <html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
2023-08-06 00:34:55.470 [WARN ] [al.handler.auth.MyBMWTokenController] - Authorization failed!

Anyone else seeing this?

Same error, I’m on OH 4.0.1 with myBMW 3.4.5 SNAPSHOT. Error lasted for about 3 hours 15 minutes, now back online.

Yep, same here, all good.

For OH4 there is an own jar file available, see above

Hi Martin, was just behind on upgrading. Now on 4.0.0 SNAPSHOP and all good. Thanks, Mario

1 Like

The only annoying thing is that now the units are quite odd - m for the mileage and hPa for the pressure, which is not really convenient. It looks funny in my Grafana dashboards now after upgrading to OH4. I will investigate on it…

Also in Grafana, you can configure units on the axis to convert from the storage unit to the representation unit.

so at least the state handling I got working in my environment. I uploaded an additional jar file to my repo (https://github.com/martingrassl/openhab-mybmw/blob/main/org.openhab.binding.mybmw-4.1.0-SNAPSHOT.jar) which sets the states correctly, unfortunately the units still are in m instead of km.

@Mherwege, yes, you can change the units in Grafana, nevertheless, if you adjust the units to OH4, then the old units are too low if the same item name is used (which is the case if you just upgrade…). So the only way to get the old amounts working again is to use the unit metadata. Imho this could be raised as feature request to support setting a default unit in the XML configuration…

Hm. I have started to get (COMMUNICATION_ERROR): Vehicle State Update failed since yesterday. Thought it’s due to recent updated to 4.0.3 but - seems - not. Tried snapshots from github above and same errror. Anyone else have same issue ?

yes, I do have same issue (running OH4.1.0.M1).

I installed the “org.openhab.binding.mybmw-4.1.0-SNAPSHOT.jar” manually which is working for me (again)…

Yes, same issue on OH3.4.3 with Martin’s snapshot binding 3.4.5.from June or so …
Probably BMW made again some changes … :expressionless:

Issue was resolved after restart of openHab

Anyone had any luck on using this with a Mini vehicle ?
In the log I have:
2023-09-29 18:25:07.493 [WARN ] [al.handler.auth.MyBMWTokenController] - Authorization Exception: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
2023-09-29 18:25:07.493 [WARN ] [al.handler.auth.MyBMWTokenController] - Authorization failed!

UI shows
COMMUNICATION_ERROR

Request vehicles failed

I am using SNAPSHOT410

Yes, indeed, I use the binding for a BMW X3e PHEV and a Mini Cooper SE BEV, for both the binding works fine since OH4.
Currently I use OH4 (4,1.0 Snapshot) together with Martin’s latest snapshot binding from his github.

I have a Mini Cooper and had no issues so far. Only some values are not provided like tire pressure.

Could it be that you have to change your password via the web portal of Mini connected?

I have now installed OH4.0.3 onto another Intel NUC for testing purposes while I’m running OH3.4.4 on my actual NUC. MyBMW is working well under OH3.4.4 but under OH4.0.3 I get
communication error for MyBMW Account Thing. I have checked with bundle:list that binding version is 4.0.3. I have removed this Thing and created a new one but still same error:

Status:

OFFLINE

COMMUNICATION_ERROR

Resource Not Found

I have BMW I4. Any ideas?

Hi Jari,

Hmmm if it is working fine in 3.4.4 it looks like an issue with the new or changed libraries in OH4. Can you enable the debug log and share the logs with me (via PN)?

Thanks,
Martin

Hallo Martin,

It seems that my OH4.0.3 uses still 3.3.0 for some reason when looking at bundle list:

239 │ Active │ 80 │ 3.3.0.202206241407 │ openHAB Add-ons :: Bundles :: MyBMW Binding

I found one 3.3.0 jar file and deleted it. I then removed MyBMW binding and restarted OH4.0.3 and installed the binding. Still 3.3.0 in use for some reason which I don’t understand because there is no 3.3.0 jar file in the openHAB directory.