unfortunately, depending on the vehicle, there are still problems with some data points in the API. I am affected myself and will report here when the errors that affect me have been fixed by the Mercedes team.
But I am glad that you have come so far and use my integration.
Have fun with it!
00:03:00.057 [ERROR] [untime.internal.engine.ExecuteRuleJob] - Error during the execution of rule ‘Call mb-connect python script with --data arg’: ‘ofSeconds’ is not a member of ‘java.lang.Class<org.joda.time.Duration>’; line 6, column 24, length 22
im running OH 2.5.1 on my system.
Solved:The execute command changed from OH 2.5 to 3.0, the following code is working now:
glad you could already solve the problem yourself and thanks for showing the solution here!
I’m working on the script again. The image download works pretty good now. A few small things are fixed / added. I will test it a few more days and adjust the description, also the changes mentioned here from openHAB version 2.5 to 3.
Since a couple of days I get following error message:
## Starting Mercedes Benz API connection ##
# The access token has expired, use the refresh token to get a new one.
# Error refreshing token:can only concatenate str (not "dict") to str
# Mercedes Benz API connection successfully established!
# Searching resources for selected scopes:
# Response Error
I can’t remember having changed anything in my setup except going back and forth between various OH milestone builds and the latest stable build due to other issues.
The script used to work flawlessly before. Any idea how I could fix this error? I already tried getting a new access token which works (it gets saved to the OH item) but obviously does not solve the issue.
off the top of my head, I can’t say much about it.
It would certainly help if you set the debug variable in the mb-connect.py script to True. That should give you more information.
Otherwise I can only recommend you to go through the whole process again as in my description to make sure that all items etc. are correct.
that would be great, of course. It is also on my to do list, but I already know that I will not have time next year.
For the users it would be awesome of course, and it should not be difficult because of my work plus the good mercedes documentation.
I will be happy to support you as well as test. In addition, I am confident that you will find other testers here, as I have also been helped a lot.
Gone through the full install and no luck. Getting 403/401 errors. All credentials are correct including VIN.
Has anyone been successful implementing this in Australia? I have a suspicion that the APIs are not open to AUS market…
fyi: I started to integrate MercedesMe into the CarNet binding. So far I implemented a different login approach using a login code. The big advantage is that the initial setup is way easier. I already saw the access_token. Next is getting vehicle list and adapt the different API calls (status & control).
The final channel layout will be different to this integration, because I’ll unify with existing
implementation.
Let me know if someone wants to help on initial tests and testing. Updates will be posted to ConnectedCar thread
Very nice explanation of how to install the application! I managed to go through it completely. Unfortunately, I keep getting an error when running the script. Any idea what I am doing wrong?
have you checked the requirements? python version?
I really don’t have much time at the moment. If you can help me and describe your setup in more detail, I can help you with it easier and faster.