-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Adding "category" property to things #3467
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: clinique <[email protected]>
We are currently refactoring/extending what is a category for an item, so I would prefer to wait for the change for items. |
Sure, there is no hurry until final OH4 :) |
In fact, my plans were to do it in two steps: first step was to update the icon attribute in sitemap (PR #3378). Second step was to apply a similar change to item category. |
The thing icon will then be used only when setting up the system, e.g. in the page showing all the things ? |
As said in the comment in the wishlist, it's a start to make the UI more fancy. Bindings also has icons that are only displayed in documentation. The provided icon could be used for things representing the group. I also would like to think on how could binding provide additional icon sets to streamline the user experience when creating items. |
I believe it should not be too much difficult. The binding should implement an |
Yes, I know about the IconProvider but I'm not sure it's the correct approach if we want to promote it accross all bindings. That would mean one in each binding ? It then should be good to add it in the binding skeleton. |
By the way, your idea to have a binding providing a dedicated icons is a really good idea. I remember we adviced to download few netatmo icons and create custom icons with that, for the wifi status for example. This could be simplified if the binding was providing these icons. |
We have a discovery service in most of bindings, so why not an icon service. |
Yes, I'm doing a POC with the MeteoAlerte binding. |
If it turns out that a lot of code is shared for every |
There is already an abstract class on core. |
Pushed PR here . |
One problem with |
Do we still need these thing categories when we have custom iconsets and icon providers in add-ons? |
Yes, delivering on purpose iconset providers give sense to this PR. I just want to be active on an idea I proposed in the wishlist. |
Following the suggestion I made here.
Thing-Type and Thing XML schemas where already holding a category field.
This adds the ability to add it in
.things
files, with the same syntax than.items
file (eg:magic:color-light:magicColor @"theplace" <lightbulb>
I'm missing the ability to inherit thing category from thing-type category (did not find where it happens).
Using the API explorer, I get visibility on category as a field of the thing. If this gets approved (and probably enhanced), it could then be added in web-ui.