-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addon info missing in REST response #3795
Comments
It's currently only possible to add this data for installed add-ons because without installation the data is not available, see: #1701 |
Unfortunately, it also did not show for installed addons. |
I see countries but no connection:
|
Indeed, connection is missing in my test as well (I didn't have an addon with countries specified installed). |
I also understand the issue with the Karaf feature only providing the extra info when the addon is installed. That's unfortunate and not very satisfying, also in the context of #2645. Additional info on an addon could be used to create some automated binding suggestions. So this means somehow the info needs to be extracted from the addon.xml files in the repository and served separately somehow. |
I can also confirm.
Seems to work, I just checked with the linky biinding. When there is no country for an installed binding, it also looks like the API is returning one country with an empty content. Not what is expected. |
Fixes the following: * connection and countries details missing for some AddonServices * missing connection getter on AddonInfo * countries lists has empty String when when countries info is missing Related to openhab#3795 Signed-off-by: Wouter Born <github@maindrain.net>
Fixes the following: * connection and countries details missing for some AddonServices * missing connection getter on AddonInfo * countries lists has empty String when when countries info is missing Related to openhab#3795 Signed-off-by: Wouter Born <github@maindrain.net>
With #3797 it should work as expected for installed add-ons. |
Fixes the following: * connection and countries details missing for some AddonServices * missing connection getter on AddonInfo * countries lists has empty String when when countries info is missing Related to #3795 Signed-off-by: Wouter Born <github@maindrain.net>
I checked again with OH 4.1 milestone 1 and my installed bindings. countries and connection fields are now set properly in REST response except for zwave binding (no connection field). |
In fact, connection tag is missing in addon.xml for zigbee and zwave bindings. |
REST API now provides full info for addons from distribution. It would as well for marketplace or 3rd-party providers if they provide the info. |
Work has been done to include 'connection' and 'country' information in the addon info data structures. This could be useful to filter in a UI.
However, when testing the REST call for an addon, it looks like the connection and country info is lost somewhere and never filled in the REST response (at least for the addons in the openhab repository).
Try:
The response body is:
countries
andconnection
is empty. The content of theaddon.xml
file for the binding contains values for these fields: https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.binding.dsmr/src/main/resources/OH-INF/addon/addon.xmlThe text was updated successfully, but these errors were encountered: