Closed jlaur closed 5 months ago
Nice proposal, however unfortunately country and connection info are not available if the addon is not installed, see https://github.com/openhab/openhab-core/issues/3795.
I have extracted one of the suggestions into #2170.
@florian-h05 - is it correct that with the new add-on suggestion feature, it would now be possible to search/filter by connection and country?
I guess yes. I haven't looked into which data the API returns for installed add-ons yet ...
Seeing the nice results of #1997 I thought I'd finally suggest to use the new add-on metadata introduced in 4.0 to provide either filtering or additional search options.
I don't know if this is technically feasible, i.e. if the UI has access to these metadata when bindings are not yet installed. If not, please feel free to close this issue.
The problem
There is currently more than 350 bindings available which are shown in a long list per default:
It's possible to search by name, so it's not hard to find a specific binding.
Your suggestion
I'm not UI expert so I'm not sure exactly what would be the best suggestion here. But I will throw a few ideas anyway. π
I'm wondering if the metadata connection and country could be taken into consideration. Per default we could exclude bindings having countries declared where none of those countries match the country configured in regional settings. So for example, when in Denmark:
I would not see any of these:
However, maybe there could be a checkbox to see all when the UI knows something has been excluded. Certainly it should be possible to install any binding (I'm not suggesting geo-restriction π at all), so there should be some simple way to bypass and see all.
Another small idea would be to allow filtering based on connection. I'm not sure how to consistently provide such an option in the UI, but I'm thinking if it could work the same way as GitHub issue/PR search (and to some extent Google) where you could add something like "connection:local" or "-connection:cloud" to exclude cloud. For example:
I realize this would be a quite hidden feature, so hopefully someone would have a better idea.