useTags=true not applied in .items although bindings provide default semantic tags

This is a follow-up to a discussion in the openHAB 5.1 release thread:

According to the Release Notes and documentation, bindings can provide recommended default semantic tags that can be applied using [useTags=true] in .items files.

I verified that such default semantic tags are present by creating items via the UI (Astro and deCONZ bindings), where the semantic model are applied as expected.

However, defining the same items in .items files using [useTags=true] does not apply semantic tags, or only partially.

Examples can be found in the linked original message.

From a user perspective, this looks like inconsistent behavior between UI-based and file-based item creation.

Could this indicate an issue in the .items handling of useTags=true?

I don’t know if this is related, but for the deCONZ example, the channel that works, brightness is a system channel type:

whereas the channel that doesn’t work, consumption is a channel type defined by the binding:

It does indeed have semantic tags.

I don’t know if this has anything to do with the issue you have, but it might be worth mentioning if you create a bug in the openhab-core repository.

Thanks for the hint.

I’ve opened a corresponding bug in the openHAB core repository: