You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Item metadata in .item files is limited to strings, numbers and booleans. Metadata objects are able to contain collections, which allows a hierarchical structure of the keys in the metadata. For example, this Item definition...
2020-05-27 15:46:28.136 [WARN ] [org.eclipse.smarthome.model.core.internal.ModelRepositoryImpl] - Configuration model 'test.items' has errors, therefore ignoring it: [16,163]: no viable alternative at input '{'
[16,230]: extraneous input '}' expecting ']'
Using the Jython or Javascript helper libraries, Item metadata can be set with a hierarchical key structure, which is not possible in an .items file...
Currently, Item metadata in .item files is limited to strings, numbers and booleans. Metadata objects are able to contain collections, which allows a hierarchical structure of the keys in the metadata. For example, this Item definition...
... causes the following to be logged...
Using the Jython or Javascript helper libraries, Item metadata can be set with a hierarchical key structure, which is not possible in an
.items
file...Using Jython and the core.metadata module, you can create structures like this, which is not currently possible with a text-based Items file...
https://github.com/openhab/openhab-core/blob/master/bundles/org.openhab.core.model.item/src/org/eclipse/smarthome/model/item/internal/GenericItemProvider.java#L341
The text was updated successfully, but these errors were encountered: