I will improve the error handling to make sure it cleanly returns the battery level because for me (and you say for you) that is the important data. Thanks again for the testing.
I was so happy when I saw your reply today
but unfortunately I get the same error
2021-11-05 21:36:01.447 [ERROR] [nal.renault.api.MyRenaultHttpSession] - Location Response: [501] Not Implemented
{"type":"TECHNICAL","messages":[{"code":"err.tech.501","message":"{\"errors\":[{\"status\":\"501\",\"code\":\"error.internal\",\"detail\":\"This feature is not technically supported by this gateway\"}]}"}],"errors":[{"errorCode":"err.tech.501","errorMessage":"{\"errors\":[{\"status\":\"501\",\"code\":\"error.internal\",\"detail\":\"This feature is not technically supported by this gateway\"}]}"}],"error_reference":"TECHNICAL"}
2021-11-05 21:36:02.865 [ERROR] [ding.renault.internal.RenaultHandler] - Error My Renault Http Session.
java.lang.NullPointerException: null
at org.openhab.binding.renault.internal.RenaultHandler.updateState(RenaultHandler.java:100) ~[?:?]
at org.openhab.binding.renault.internal.RenaultHandler.getStatus(RenaultHandler.java:87) ~[?:?]
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) [?:?]
earlier today I also checked if car and R-Link needs any update but I found out I was running the latest already. This model has the R-Link EVO (not R-LINK2 like in the new Zoé)
I also checked that I had data enabled, also good
I used locale fr_CH but I attempted most of the other ones as well, just curious, but this makes no effect.
it would be great to inhibit the optional channels and try to fetch only battery %
in any case thanks so much for doing this for the community
Thanks again for the error report. The null pointer is on a line I did not expect to throw a null pointer… so I checked and I think I uploaded the old version… sorry.
Awsome !
that one is working as expected !
I still get Location Response: [501] error as expected but no more NullPointer and most importantly the thing stays online.
2021-11-06 13:16:56.882 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'renault:car:018f4101f9' changed from UNINITIALIZED (DISABLED) to INITIALIZING
2021-11-06 13:16:56.902 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'renault:car:018f4101f9' changed from INITIALIZING to UNKNOWN
2021-11-06 13:16:58.503 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'renault:car:018f4101f9' changed from UNKNOWN to ONLINE
==> /var/log/openhab/openhab.log <==
2021-11-06 13:17:00.464 [WARN ] [nal.renault.api.MyRenaultHttpSession] - Location Response: [501] Not Implemented
{"type":"TECHNICAL","messages":[{"code":"err.tech.501","message":"{\"errors\":[{\"status\":\"501\",\"code\":\"error.internal\",\"detail\":\"This feature is not technically supported by this gateway\"}]}"}],"errors":[{"errorCode":"err.tech.501","errorMessage":"{\"errors\":[{\"status\":\"501\",\"code\":\"error.internal\",\"detail\":\"This feature is not technically supported by this gateway\"}]}"}],"error_reference":"TECHNICAL"}
==> /var/log/openhab/events.log <==
2021-11-06 13:17:01.957 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RenaultBinding_BatteryLevel' changed from 80.0 to 56.0
another great finding, now the other channel also return values !
This was not highly needed in my case but it proves that now, it works too on previous Zoé
==> /var/log/openhab/events.log <==
2021-11-06 13:21:19.857 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RenaultBinding_BatteryLevel' changed from 56.0 to 58.0
2021-11-06 13:21:19.863 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RenaultBinding_HVAC' changed from NULL to OFF
2021-11-06 13:21:19.867 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'RenaultBinding_Odometer' changed from NULL to 26414.27
{“type”:“TECHNICAL”,“messages”:[{“code”:“err.tech.wired.kamereon-proxy”,“message”:“Failed to forward request to remote service.”}],“errors”:[{“errorCode”:“err.tech.wired.kamereon-proxy”,“errorMessage”:“Failed to forward request to remote service.”}],“error_reference”:“TECHNICAL”}
I have no idea what is wrong and would be glad about help!
Sorry, i tried to insert the logfile in a window like you do, but i found no way and no description to do that
Do the battery level, odd and location work? Is it just the HVAC status that fails? Does the HVAC status work in the MyRenault App?
You need to have the right locale which should be the same as your MyRenault car registration location. The HVAC did not work because of the kamereon service failed! I am not sure what i can do about this but I would be very interested to get some feedback to your tests because with only one car it is hard to test things myself.
Hi @ Doug_culnane
There is no channel working. Status is “null”
Only in channel “image” i got a URL, showing a ZOE-picture
The MyRenaultApp is not working on my smartphone, since the app was updatet, so i can’t controll!
Depends the binding on ZE-connected-Services?
I remarked, as my car is older than 3 Years, the Conected-Services run out.
I ordered a 1 Year Service, but it needs up to 3 days to activate the service, so i can test later on if it works than.
Just a brief status report on the binding.
Background information: The “MY Renault” app works well for our Zoe (07/2018). Means, all the following information is available online:
Odometer
Battery charge status
remaining range
HVAC Status
Charging on/off
if charging: remaining time until fully charged
it does not provide GPS data, though
Now to the binding. It installed without problems. It provides the following channels:
Battery Level, HVAC and Odometer work as expected. The Image URL gives a URL to a weird icon and GPS does not work (this was expected). Thus, the binding is not able to access some information, available in the app. And although I do not use Location channel, I now get a regular error message
2021-11-21 10:51:10.196 [WARN ] [nal.renault.api.MyRenaultHttpSession] - Location Response: [501] Not Implemented
{"type":"TECHNICAL","messages":[{"code":"err.tech.501","message":"{\"errors\":[{\"status\":\"501\",\"code\":\"error.internal\",\"detail\":\"This feature is not technically supported by \\\"RGDC\\\", vehicleID: \\\"[deleted]\\\"\"}]}"}],"errors":[{"errorCode":"err.tech.501","errorMessage":"{\"errors\":[{\"status\":\"501\",\"code\":\"error.internal\",\"detail\":\"This feature is not technically supported by \\\"RGDC\\\", vehicleID: \\\"[deleted]\\\\"\"}]}"}],"error_reference":"TECHNICAL"}
Very nice from You, but I’m only the developper of the previous Binding. In this case You have to thank @Doug_Culnane for his enormus efforts to develop the new Renaul ZE Binding.
@rudi.tb Thanks for starting this thread and I was very disappointed when your binding did not work with our new car. The new binding works with with the new API and is going through the pull request process at the moment so hopefully (if I clean up my code) we will have a Renault binding in the official stack. Once I have done my home work I will need some testers…
thanks for providing a new version. The new binding works identically well for me as the previous version. Just some hints:
The version number is identical to the previous version. You may want to change this in order to avoid confustion
My Zoe obviously does not support some data as previously mentioned. Thus the same error occurs (see below). Would it be possible to adapt the binding in such a way that the unavailable data is not polled anymore? E.g. by polling only the data of actually used channels?
2021-12-04 08:29:20.586 [WARN ] [lt.internal.api.MyRenaultHttpSession] - Kamereon Response: [501] Not Implemented {"type":"TECHNICAL","messages":[{"code":"err.tech.501","message":"{\"errors\":[{\"status\":\"501\",\"code\":\"error.internal\",\"detail\":\"This feature is not technically supported by \\\"RGDC\\\", vehicleID: \\\"<deleted>\\\"\"}]}"}],"errors":[{"errorCode":"err.tech.501","errorMessage":"{\"errors\":[{\"status\":\"501\",\"code\":\"error.internal\",\"detail\":\"This feature is not technically supported by \\\"RGDC\\\", vehicleID: \\\"<deleted>"\"}]}"}],"error_reference":"TECHNICAL"}
2021-12-04 08:29:20.590 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'renault:car:2ec02d6dfb' changed from ONLINE to ONLINE (COMMUNICATION_ERROR): Update location error: Kamereon Response Failed! Error: [501] Not Implemented
I just installed the new version. Looks really good!
There is one single error message “[501] Not Implemented” and then… silence. Obviously, the binding now exclused the not implemented channels from further polling.
Thanks a lot, @Doug_Culnane
Hi Doug,
I just installed the new version and I can also confirm that all looks good.
I do get the single 501 error, and then no more.
Great stuff, thanks !