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…
- go to the BMW CarData web portal and choose “BMW CarData”: https://www.bmw.de/de-de/mybmw/vehicle-overview
- click on the button “Create CarData client”, activate both switches and copy the client_ID
- open the CarData API Swagger webpage in a new tab: CarData Customer Portal
- expand “Device Flow with PKCE”
- expand the device code flow and click on the “try it out” button
- enter as client_id the client_ID from the BMW CarData web portal you copied
- click on execute
- 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.
- Go back to the BMW CarData web portal and click on the “authenticate” button
- a new web page will open and you have to login with your BMW user account email and password.
- 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.
- 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)
- Go back to the CarData API Swagger webpage
- Expand the “request a token for the device” flow
- Enter the client_ID you received at the beginning when you created the CarData client.
- Enter the device_code you find in the response of the first device code flow.
- click on execute and you will finally receive the password for MQTT. it is called id_token.
- Your username is called gcid and should be the same as in the BMW CarData web portal, when you expand the CarData streaming
- 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