Skip to content

Conversation

andrewfg
Copy link
Contributor

@andrewfg andrewfg commented Feb 28, 2025

In this PR we set semantic tags on Things and Channels.

Signed-off-by: Andrew Fiddian-Green software@whitebear.ch

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg added enhancement An enhancement or new feature for an existing add-on awaiting other PR Depends on another PR labels Feb 28, 2025
@andrewfg andrewfg self-assigned this Feb 28, 2025
@andrewfg andrewfg requested a review from cweitkamp as a code owner February 28, 2025 11:43
@andrewfg andrewfg marked this pull request as draft February 28, 2025 11:43
@andrewfg
Copy link
Contributor Author

Pinging @jimtng / @jlaur / @mherwege for info and discussion.

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg marked this pull request as ready for review March 10, 2025 12:52
@andrewfg andrewfg requested review from jimtng, jlaur and mherwege March 10, 2025 12:52
@andrewfg andrewfg changed the title [hue] Apply semantic equipment tags dynamically on things [hue] Semantic EQUIPMENT tags added dynamically on Things Mar 16, 2025
@andrewfg andrewfg changed the title [hue] Semantic EQUIPMENT tags added dynamically on Things [hue] Semantic tags: EQUIPMENT tags added dynamically on Things Mar 16, 2025
@andrewfg andrewfg changed the title [hue] Semantic tags: EQUIPMENT tags added dynamically on Things [hue] Semantic Tags: EQUIPMENT tags added dynamically on Things Mar 16, 2025
@andrewfg andrewfg changed the title [hue] Semantic Tags: EQUIPMENT tags added dynamically on Things [hue] Semantic Tags: set EQUIPMENT tags dynamically on Things Mar 16, 2025
@andrewfg andrewfg changed the title [hue] Semantic Tags: set EQUIPMENT tags dynamically on Things [hue] Semantic Tags: set EQUIPMENT tags on Things Mar 16, 2025
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg removed the awaiting other PR Depends on another PR label Apr 8, 2025
@andrewfg
Copy link
Contributor Author

andrewfg commented Apr 8, 2025

@jlaur we don't yet have all the required equipment tags in OH core, but it would be good if you could look at this code anyway already.

@andrewfg andrewfg changed the title [hue] Semantic Tags: set EQUIPMENT tags on Things [hue] Set tags on Things and Channels Apr 8, 2025
andrewfg added 3 commits April 9, 2025 11:16
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg changed the title [hue] Set tags on Things and Channels [hue] Add semantic tags Apr 10, 2025
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg added awaiting other PR Depends on another PR and removed awaiting other PR Depends on another PR labels Apr 13, 2025
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg
Copy link
Contributor Author

@jlaur perhaps you can kindly take a look at this one? It did get caught up in the #18585 auto-tagging process .. however it was never actually reviewed by anyone in that PR. Therefore I think that the changes I made manually via this PR are more likely to be correct than the auto-tagged version. (So I will also delete the auto-changes..).

Note: I draw your attention to the code in the Thing handler where I am dynamically applying equipment tags at run-time to the Things depending on their actual reported capabilities. This can serve as a good code example for other bindings that need run-time tagging.

Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I have added a few questions. Otherwise LGTM.

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg requested a review from jlaur May 13, 2025 14:15
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg
Copy link
Contributor Author

@jlaur default tags removed

Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jlaur jlaur merged commit 2ab57c6 into openhab:main May 13, 2025
2 checks passed
@jlaur jlaur added this to the 5.0 milestone May 13, 2025
phenix1990 pushed a commit to phenix1990/openhab-addons that referenced this pull request Jul 31, 2025
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An enhancement or new feature for an existing add-on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants