-
-
Notifications
You must be signed in to change notification settings - Fork 459
Description
With openHAB 5.1.0 build 5007 I stop openHAB, clean the cache, remove all files from share/openhab/addons, then start openHAB. Then I put the file openhab-binding-voltronic-4.3.0.zip under /share/openhab/addons. I use in reality as filename extension .kar, since github allows uploading zip files, but not .kar files, I have changed the extension only to be able to upload the file.
It appears as installed binding “Voltronic Inverter”, as it has <feauture name="openhab-binding-…" it is even listed as “openHAB Distribution » Official bindings maintained by the openHAB project”.
I restart openHAB. The binding appears again under GET /addons/binding/ → openHAB Distribution → voltronic Binding, however it in now not an installed binding.
csowada/openhab-ebus-binding@40bd167#diff-a6f895fc8aae615e1f52619bb200b27953296eb89d95cb1e5e1adeb8f5fff227 suggests that the add-on from a .kar file is automatically removed, if the name of the feature starts with openhab-binding. Therefore it uses <feature name="marketplace-openhab-binding-ebus", but this for me probably will not work, as I am not looking for marketplace installations, but for a openhab/addons/.kar installation.
In a different occasion, https://community.openhab.org/t/installing-kar-add-ons-through-the-addons-folder/164665/17 states «for a “feature” to be registered as an add-on, the feature name must begin with openhab-automation, openhab-binding, openhab-misc etc.» I can confirm the last statement by experimenting with OH 4.3 - if the <feature name="" does not start with openhab-binding- then it does not appear as installed binding under GET /addons/. If it starts with openhab-binding it is removed after openhab restart.
I go back to GET /addons/binding/ → openHAB Distribution, scroll to the binding, click on Install. It appears now as installed binding. I restart openHAB, the binding stays installed.
I want to use .kar files in order to enforce dependency for the binding on <feature>openhab-transport-serial</feature>.
The problem report is that there is no way to put a .kar file under openhab/addons, so that openHAB considers the binding from the .kar file as permanently installed. The user has to click in GET addons/binding/ on “INSTALL”, apart from putting the file in the /addon directory.