How to store and use custom metadata for Items?

You need to look further then! Easy installation and configuration of Jython and the helper libraries…

Documentation for core.metadata…
https://openhab-scripters.github.io/openhab-helper-libraries/Python/Core/Packages%20and%20Modules/metadata.html

An example with a script that sets Item metadata…
https://openhab-scripters.github.io/openhab-helper-libraries/Python/Community/Area%20Triggers%20and%20Actions.html#setup-mode-and-lux-solar-radiation-levels-optional

1 Like