Betatest - Renault ZE Services Binding

Not that I know of. It just stops working if you hit the quota limit. You need to disable the api access for a couple of hours/days, then it works again.

I had no problems with 10 minutes intervals, at the moment I am trying 5 minutes, so far no problems. I did hit the quota limit with values below 5 minutes, though.

I have started to translate the python renault-api (Renault API — Renault API documentation) into an openhab binding (https://github.com/dougculnane/openhab-addons/tree/renault/bundles/org.openhab.binding.renault). It is very basic (and read only at the moment) but if you want to test it please do.

It looks like it works with my computer and car…

JAR here:
https://drive.google.com/file/d/1Rq9X1WidTgwqaqW5RIH1YNEIecRn_bEE/view?usp=sharing

1 Like

Nice, would like to try but I need to login to download the jar (which I won’t do …).

Send me your email and I can mail you the jar. I am doug at culnane dot net.

@sihui I think I have changed the link to be annon please try:

https://drive.google.com/file/d/1Rq9X1WidTgwqaqW5RIH1YNEIecRn_bEE/view?usp=sharing

2 Likes

Thx, great, works without the need to login.

BTW, there is a Marketplace now for bindings which are not yet part of the official openHAB repo:

1 Like

Great, works, thx (ZOE 110/50, openHAB 3.1 stable)

1 Like

Doug you are great!

I have tried your file with succcess ! I was loocking from time to time into this thread in hope for
a new binding. In the mean time i used it with pyze, but that need deep knowledge.
I have tried it with openhab 3.2, ZOE 110/40 (old version).

Reg
Lars

1 Like

Hi @Lalle

Thanks for your message. Good to know that it works for you as testing is hard without many cars…

Hey i download the JAR and save it in the addon folder. After restart of OH 3.1 i could not find the Binding.
Are there more stettings required ?
I would like ti test the binding with my ZOE

No you did the right thing. To install it and no settings are required. I do not know why you do not have the binding available. File permissions… wrong addons folder… addons not addon… ???

Hey there it was my failure. I didnt recognized that the manual installed binding is not seen under the bindings in the menu bar. I found the binding under things. Here it was easy to add an item for my ZOE. Now i will test the binding and give feedback.

Now all 3 items runing stabel. Good Job. TKS to all :+1:

I have updated the Renault binding Jar:
https://drive.google.com/file/d/1Rq9X1WidTgwqaqW5RIH1YNEIecRn_bEE/view?usp=sharing

There is an updated readme: https://github.com/dougculnane/openhab-addons/tree/renault/bundles/org.openhab.binding.renault

You can not get a URL for the My Renault Picture and location of the car, as well as the battery level.

1 Like

I installed the jar, reboot, and configured it but always get this :

2021-10-28 16:36:38.730 [ERROR] [ding.renault.internal.RenaultHandler] - Error My Renault Http Session.

java.lang.Exception: Get Cockpit Error: Not Implemented

at org.openhab.binding.renault.internal.renault.api.MyRenaultHttpSession.getLocation(MyRenaultHttpSession.java:245) ~[?:?]

at org.openhab.binding.renault.internal.renault.api.MyRenaultHttpSession.updateCarData(MyRenaultHttpSession.java:68) ~[?:?]

at org.openhab.binding.renault.internal.RenaultHandler.getStatus(RenaultHandler.java:86) ~[?:?]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]

at java.lang.Thread.run(Thread.java:829) [?:?]

I was wondering if this wold work in any country or does it has anything to do with locale ?

any help is welcome
thanks

Hi @loyd

There is nothing here to suggest certain cars or locations have problems.
https://renault-api.readthedocs.io/en/latest/endpoints.html#cockpit

The Locale is the language and country of your MyRenault App account… You will have to guess this. I translated the python lib that has this Locale data:

into java here:

So unless I made a mistake for your Locale then I do not know why it does not work for your car. It is hard to test and reproduce this without owning your car…

@loyd Maybe your car or locale has no v2 api…? Maybe I should handle the error to ignore unsupported features? Let me know if you can test a new version with a change in error handling.

Hi Doug,

Thanks for your reply
The car is actually a Zoe 40 R110
I was reading that it works for other users, not sure in which country they are !?

I have tried all Locale values actually but always got the same error

Hint : car location never worked either in the Renault app, that only retrieve the phone location instead… so indeed that might be missing for some account

If there’s a way to ignore it, I am happy to test the code

Thanks

1 Like

Hi Doug,

for my ZOE pre facelift the new binding will not work. It goes “online” for short and then shows “error”.

Reg Lars

@loyd and @Lalle

Here is a debug version:
https://drive.google.com/file/d/1AQtxh4e-k_II_1KUsLB0ximh2-wb9cSD/view?usp=sharing

I would also need to know if these channels (information) work in the MyRenault App?

batterylevel - State of the battery in %
hvacstatus - HVAC status switch
image - Image of MyRenault
location - The GPS position of the vehicle
odometer - Total distance travelled

There might be functional restrictions on your Car and or Account. If it does not work in the MyRenault App it will not work in the binding.

To understand your issues better please test this version and I need the openhab.log file part with the Response errors. (DO NOT POST Personal or sensitive info like VIN numbers from the log file…)

Thanks for the help.