openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Build #4410: Bindings whose Jars are in /addons folder not shown in manual Add Things screen

Open andrewfg opened this issue 11 months ago • 9 comments
trafficstars

When you drop a binding Jar in the /addons folder, the binding does install. And the binding does find respective things via background discovery. HOWEVER the respective bindings do NOT show up in the manual Add Things screen.

OH Snapshot Build #4410

Two bindings in `/addons' folder

image

The bindings DO find Things via background discovery

image

The bindings are NOT available for adding Things via manual discovery

image

andrewfg avatar Dec 12 '24 15:12 andrewfg

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139/101

openhab-bot avatar Dec 12 '24 15:12 openhab-bot

Hm, for KNX, it seems to work. Snapshot 4411 on RPI5(64). Started w/o knx addon. Dropped the jar. Binding gets installed. Under Addon-Store, there is still the suggestion for knx binding from the distro. But it is listed under "Installed Bindings". When I select "Addon-Store, Bindings", it is listed under "Other Add-ons", see grafik Things can be added manually (at least is shows like this, did not test): grafik bundle:list only shows my jar version of the addon.

holgerfriedrich avatar Dec 12 '24 19:12 holgerfriedrich

In my case it seems that the bindings did finally appear on the add manually screen after some time (30 or more minutes). Maybe there is an overlap between the OH server's cache-control expire time and the time when the addon is dropped in the folder? Or something like that. Such Jar drops ought to force an immediate browser cache expire IMHO.

andrewfg avatar Dec 12 '24 19:12 andrewfg

My govee ended up finally showing up. Days later. After multiple OH restarts. Not sure why. To note, the other 4 addons I have as jars seem to work without issue.

morph166955 avatar Dec 14 '24 00:12 morph166955

.. ended up finally showing up. Days later. Not sure why

Indeed. A mystery.

{ PS the Govee now does auto discovery so you don't really need the add manually scan anymore.. }

andrewfg avatar Dec 14 '24 16:12 andrewfg

Also works for me with the matter binding in 4.3 milestone 5:

image

But to be honest, I remember one time it did not appear and I was surprised.

lolodomo avatar Dec 15 '24 08:12 lolodomo

This has annoyed me as well. One thing I noticed is that if I click another binding and manually change the binding id in the URL, it works. So it seems the issue is only about binding missing in the list. Maybe there is some cache not being updated?

jlaur avatar Jan 11 '25 09:01 jlaur

Maybe there is some cache not being updated?

Yes that is also my hypothesis. However I did try clearing the browser cache, both using Chrome and Edge, so my guess is that it is not a client side cache issue..

andrewfg avatar Jan 11 '25 13:01 andrewfg

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/esphome-binding-for-the-native-api/146849/345

openhab-bot avatar Jan 14 '25 06:01 openhab-bot