Hello, I have problems with the “Renault Binding” The mileage is not displayed. I have already found out on the Internet what the cause is and how to solve it. Here is the link to the solution: https://github.com/openhab/openhab-addons/issues/16669
Now my problem: how do I get to the file to change it? OpenHAB is running on my Synology NAS in Docker. When I access it with the terminal and search for it using “find / -name ‘MyRenaultHttpSession.java’” I get a permission denied error. Even by manually browsing the folders with “ls and cd” I can’t find the file. Can someone help?
As a fallback, the API call for the cockpit data should be reverted to using version 1 of the API. As of version 4.1.2 of openHAB and of the org.openhab.binding.renault binding, this corresponds to updating line 238 of file /bundles/org.openhab.binding.renault/src/main/java/org/openhab/binding/renault/internal/api//MyRenaultHttpSession.java from:
You will not find any .java file in the Docker container because these are Java source code files. When building openHAB the compiler transforms the source code into bytecode which is compressed into .jar files.
So you need to apply the source code change to the add-on source code, recompile it and then replace the add-on in the Docker container.
Maybe you can instead upgrade to a newer openHAB version that already has the fix?
Thank you for the explanation. I wasn’t aware that it was so complicated. Updating openHAB is, of course, an option, but I’m a bit hesitant because the last time I tried to update openHAB, all the configurations were gone afterwards, and I don’t feel like setting everything up again, not to mention that I probably wouldn’t be able to get the naming and data structure the same way again, and thus my influxdb data wouldn’t be consistent anymore. Can you recommend an easy-to-understand guide on how to update openHAB without having to set everything up again afterwards? Currently, I have openHAB 4.1.2 running on a Synology NAS in a Docker container as previously mentioned. My influxDP and my Mosquitto MQTT broker are running on the same NAS in their respective Docker containers.
Are you not using volumes for your container? You are supposed to mount volumes to /openhab/userdata and /openhab/conf so that all your configurations persist across new containers.
If you set it up incorrectly to begin with it’s going to take some work and we will need a whole lot more information about how you’ve actually set it up in the first place.
Note, the installation instructions for Synology talks about volumes here and the generic Docker instructions talk about volumes here.