It’s created. There is just no way right now to show the custom metadata in the UI. The problem is the APIs can only give you metadata that you already know the namespace for. Obviously, the UI has no way of knowing the namespace for metadata that you defined yourself ahead of time so it can’t show your custom metadata in a list.
But you can:
- click on “add custom metadata” again and enter the same namespace again it will bring it up
- query for it in the REST API Docs in the Item’s section
- in /var/lib/openhab/jsondb/org.openhab.core.items.Metadata.json
- interact with the metadata in your rules (JavaScript or Python only, not supported in Rules DSL).
All of these will show the metadata that you’ve defined.
The options is fetchMetadata and there are a few examples scattered throughout the forum:
- [semantic,ui] Using enriched semantic to ease UI creation
- A couple of simple oh-repeater examples - #10 by curlyel
- Create alternative title with metadata? - #8 by JustinG.
Search for fetchMetadata and you’ll find lots more.