MyBMW Binding

Hi all,

I was able to connect with MQTTX.

Do not close any tab during the set up. You will need to jump between webpages and copy from one to the other…

  1. go to the BMW CarData web portal and choose “BMW CarData”: https://www.bmw.de/de-de/mybmw/vehicle-overview
  2. click on the button “Create CarData client”, activate both switches and copy the client_ID
  3. open the CarData API Swagger webpage in a new tab: CarData Customer Portal
  4. expand “Device Flow with PKCE”
  5. expand the device code flow and click on the “try it out” button
  6. enter as client_id the client_ID from the BMW CarData web portal you copied
  7. click on execute
  8. as response you will see your user_code. Copy this! also you will get your device_code you will need later on to request your MQTT password.
  9. Go back to the BMW CarData web portal and click on the “authenticate” button
  10. a new web page will open and you have to login with your BMW user account email and password.
  11. you will be asked for a code. This is the 8-digit user_code you just copied and received from the device code flow response. It should show that you are logged in now.
  12. Go back to the BMW CarData web portal and create a CarData Stream. Select all data you want (start with a few, you can change this later on)
  13. Go back to the CarData API Swagger webpage
  14. Expand the “request a token for the device” flow
  15. Enter the client_ID you received at the beginning when you created the CarData client.
  16. Enter the device_code you find in the response of the first device code flow.
  17. click on execute and you will finally receive the password for MQTT. it is called id_token.
  18. Your username is called gcid and should be the same as in the BMW CarData web portal, when you expand the CarData streaming
  19. To test the connection in MQTTX you can follow this guideline: CarData Customer Portal

I locked/opened my BMW to trigger new data streaming.

Does anyone know if the MQTT Binding of Openhab is able to access the mqtts broker of BMW? customer.streaming-cardata.bmwgroup.com

3 Likes