Am I doing something wrong or is there a bug in itemsWithTag …Im on openhab 2.4 and I’ve used restapi to add tags to several items and now trying to use an ng-repeat=“item in itemsWithTag(‘lw_switch’)” to retrieve them but its not finding anything
restapi shows
[
{
"editable": true,
"name": "switch_0_10",
"tags": [
"lw_switch"
]
},
{
"editable": true,
"name": "switch_0_11",
"tags": [
"lw_switch"
]
}
]
Tracing the code I see that template.widget.js line 93 testing for the items tagNames property
return (item.tagNames && item.tagNames.indexOf(tag) !== -1);
but that doesnt exist in my items the property is called tags
Have I run into a code bug or did I do something wrong in defining my items ?
Thanks