I am a fan of openhab and meanwhile quite deep into the whole handling. One thing I’m constantly struggling and haven’t found a consolidated and consistent documentation is regarding the whole bundle-handling even though I guess it is a common task.
I use openhabian with open hab release 2.4.0 stable. That works basically fine but with certain bundles I’d like to use the newest, even snapshot version for several reasons, one is using the newest functionality. These are
The IKEA Tradfri Binding
The ZWave binding
The Amazon Echo binding
I’ve downloaded these and handle them all on the Karaf console (bundle:update etc.).
Now I have two instances of each bundle like shown below. Does this cause any problems? Which one is used? If I try to delete one using bundle:remove it will appear again after a restart. Guess a generic approach on how to use bundles of new versions which are way ahead would be great. Also if its enough to have them installed via bundle:install or if they need to be copied to a specific location etc.
Yes always cleared the cache and afterwards rebooted. Then they appear again, maybe because the initial 2.4.0 bundles were installed by PaperUI which I forgot to mention.
Bye the way, with the first two bindings they both show Active …
Download the jar file for the later version of the binding
Place that jar file into the addons folder.
Karaf will take it from there.
If you installed the binding through PaperUI, you should uninstall it from PaperUI. If you are using addons.cfg then remove the entry for the binding from there.
It’s a common task but almost no one uses the Karaf console directly to do it.
One other thing to note is there will frequently be times when a snapshot or milestone version of a binding will no longer work with an older version of OH because there was some change made to the core.
Where are you looking in PaperUI to configure the Bindings? What do you see in the logs when you put the jar file in the addons folder? If you list the bundles in Karaf, what do you see?
Just found out that I can’t configure anything here. In case of the ZWave binding: I see a list of supported ZWave Things / Adapters but no way to change e.g. the Serial Port etc. The Security key. etc.
Before the binding can be used, a serial adapter must be added. This needs to be done manually. Select Serial ZStick , and enter the serial port.
…
The following section lists the controller configuration.
Serial Port …
Network Security Key…