Closed aurelio1 closed 3 years ago
Please make sure it appears in the response of GET /rest/bindings
, you can go to Developer Tools > API Explorer and open /bindings to check it.
The fact that it doesn't appear under Settings > Bindings is normal, these screens are for installing/uninstalling distro add-ons, the sideloaded add-ons don't appear there (same as Paper UI).
@ghys It was not my point that the sideloaded binding is missing from the Settings>Bindings. My point was that it is missing from the bindings list in Things>New. My other two sideloaded bindings are shown there. The missing binding does not appear in the bindings list of the API Explorer either. The other two sideloaded bindings appear correctly. Does this mean that the bug is not related to the Main UI, but rather to the API backend? Besides that (but that is an enhancement request, not a bug) it would be very useful (and reduce confusion) that sideloaded bindings are also shown in Settings>Bindings, eventually in an additional table. Or has it been discussed that for some reason it is better not to show them?
Does this mean that the bug is not related to the Main UI, but rather to the API backend?
Then yes.
Besides that (but that is an enhancement request, not a bug) it would be very useful (and reduce confusion) that sideloaded bindings are also shown in Settings>Bindings, eventually in an additional table. Or has it been discussed that for some reason it is better not to show them?
It's been discussed before, and it's a technical limitation in the API - only the bindings have their dedicated endpoint, the other types of add-ons don't, so there's no way to see them if they don't come from the distribution. Ideally shouldn't be any special treatment for one category of add-ons, so all screens work the same. With some proposed additions to the API I suggested in
https://github.com/openhab/openhab-core/issues/2070 maybe there could be a way to list them (the add-ons placed in addons
could appear to be from an add-on service named "local" or similar, with no installation/uninstallation possible).
Thank you for this interesting information. I assume there is also a reason that Settings>Bindings doesn't show ALL bindings (from the distribution AND the sideloaded bindings). If the API doesn't deliver the source of the binding, having both together, without distinction, is still better than listing just those from the distribution, ignoring the sideloaded ones.
Or asked differently: why doesn't Settings>Bindings take the information from the GET /rest/bindings
API?
The problem
When doing Things -> New the Main UI does not show the binding, although it has been properly loaded and is active, according to the OpenHAB console.
Expected behavior
This happened both in the Eclipse environment and in an operational environment by adding the binding to the addons folder.
Steps to reproduce
Your environment
Browser console
Browser network traffic
Additional information
It is not allowed to upload the .jar, but I can send it upon request. The problem does not appear only with my Siro binding (in the works), but also with others, see https://community.openhab.org/t/binding-in-development-not-appearing-in-main-ui/117779