-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Add Point and Property tags to addons #18585
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
Conversation
Pinging @jimtng @ccutrer @mlobstein @lolodomo for info :) |
bundles/org.openhab.binding.ahawastecollection/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
@lsiepel (for info) please see the |
@kaikreuzer when you are preparing the release notes for OH 5.0 you may be interested in the Current Status paragraph at the top of this thread. (I will keep these statistics updated). Hopefully we can merge the three missing PRs so that the statistic reaches 34% .. although even the 23% figure is still quite an achievement. Note: the coverage will (shall) never be 100% because tags are only applied to non advanced channel-types. |
@andrewfg The release notes will be auto-generated based on the titles of the PR; mentioning this effort specifically might be done in the release blog post, though. |
@lolodomo following is my proposal (assuming #18816 is merged).. We have done a lot of work concerning Semantic Tags as follows..
|
Just a mere 34%.. pff i dream about tags, seen so many. |
LOL. The main reason that it is a mere 34% is that in general I intentionally only applied tags to non- advanced channel types. There are quite a few advanced channel types which have fairly esoteric applications and are thus not tagged. So in other words, the coverage of non- advanced channel-types is certainly higher. (I get this statistic for you later..) EDIT of the 13503 channel types there are 6741 advanced i.e. 49% .. so practically speaking for non esoteric channel-types the penetration rate is almost double the 23% / 34% .. |
oh and let's not forget the dynamic created tags. are not counted. Nice statistics though, think we might need to look at those advanced channels, i wonder what is going on. Possibly many obsolete ones. |
Removed the labels from the 'child' PR's so they will not show up in the release notes. This 'main' PR with all its centralised details and information will be included. |
Ok. I will update the statistics based on the code freeze release candidate. |
@lsiepel many thanks for your great efforts in helping to get these PRs through. |
* cherry pick approved addons from openhab#18585 Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
* [all] auto tagger Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
* cherry pick approved addons from openhab#18585 Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> Signed-off-by: Paul Smedley <paul@smedley.id.au>
* [all] auto tagger Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> Signed-off-by: Paul Smedley <paul@smedley.id.au>
Background
Relates to #18567
I wrote a Java application to scan all Channel-Type xml files and based on the xml attributes and values to auto-magically create Point and Property tags and write the modified files back to disk.
GenerateChannelTags.zip
Run the program by the command line below:
Where the command line parameters are as follows..
-root <path>
looks for xml files in this folder and all sub-folders-binding <bindingid>
runs the application for just one binding (default: all bindings)-interactive <boolean>
runs the application interactively (default: false)I used the program to generate tags on all 502 bindings. This generated about 4`000 point & property tag pairs. So about 1'100 lines of Java code saved about 10'000 lines of hand written xml.
Signed-off-by: Andrew Fiddian-Green software@whitebear.ch
Moved to Sub Pull Requests
After having run this automatic tagging application, I moved the addons into the several smaller PRs, in which I have manually reviewed and corrected (curated) the tags as follows:
Note: I will close this PR once the individual PRs above have been completed
Current Status
The above mentioned PRs (will) have added the following number of Point+Property tags to the OH bindings:
Tag Usage Statistics
TagAnalysis.txt