Do you update all the items manually after the initial setup?
The token update only works with your Client_ID and the refresh_token.
In my example i use String items to store these.
After step 7 I donāt get an āauthenticatedā screen on the link you BMW ID page but instead a ālogin successfulā > please continue in the vehicle. The text does not mention you need to sit inside the car for any step - or did I miss something? Iām currently not at home so thatās an issue for me.
Hey @Bredmich, this is really great work! It took me a few hours to get everything up and running, but Iām happy to have my BMW data back in my openhab server!
I changed the code a little bit, because Iām not using file based rules but rules within the main ui. Iām also not using telegram for notification but the openhab app, which is connected to my openhab server by the openhab cloud. If anyone is interested, I can also share my code, but I donāt want to get this thread more complicated.
Some hints for anyone who is using this tutorial:
You have the install the JSONPATH transformation for getting the thing channels working.
If you are using the great JS scripts from @Bredmich and skip the telegram and logviewer parts of the installation, you have to fill the following items with the right information, before you are able to use BMW_Token_Refresh.js and BMW_ID_Token_Update.js
Hi @kuczerek, I am interested in your modifications using the openHAB app instead of Signal. Somehow this solution stopped working for me so I am planning to start again. I am also using MainUI only for rules, things and items.
In order not to confuse this tutorial with a different solution perhaps DM me, I plan to make a new tutorial from a-z as this is still quite complicated for a lot of users.
@Bredmich Thank you for your work!
Quick question: if I just created a copy of your scripts and updated the associated variables, items letās say to carBMWB_Token_Access, etc. - do you think itād work with a second car on a separate ConnectedDrive account?
Trying the link you provided to set up the CarData, I cannot log in at this link, despite having a BMW connected drive account. Iām in the US and wondering if the link to geo specific? If I go to https://www.bmwusa.com/, I can log into my account with my usual uname/passwd.
From there, trying to find where I can do what you described:. I start here:
I found this info, where under the ā2. Technical registrationā ā ā2.1 Step 1: Generate your client IDā section it has a link to the world wide portals:
However when I follow this for the US, it takes me to the same site I was looking on previously.