You can’t get the label in the traditional way it’s defined. But I think you can set a label by setting the “State representation” metadata on the Item. Then you can use =items[props.propItem].displayState. Note, if you don’t have the metadata defined that will generate an error. So it might be good to use a ternary operation to check if that is defined and if not fall back to just show state.
As this is a very obvious need to get the item names in the UI, (we don’t want to do double entry of the name, just to feed the OH beast) I may see if I can prepare some PR to have this more easy available.
not sure if it helps (at least in some cases I guess) but oh-repeater and sourceType: itemsInGroup provides you with the item’s label name by loop.repeater-id.label
To be fair, half of your requests for help recently have nothing to do with OH 3. They are having to deal with stuff that has worked the same as it has since OH 2.0. Also, no one is required to use anything that’s new in OH 3. If OH 3 is too complicated, use it as if it were OH 2 and ignore the new stuff.
But no matter what I do, I can’t get it to show anything like the label or the groups the item is in or whatever.
Am I doing something wrong? I found this in the marketplace, and there title: =loop.item.label along with item: =loop.item.name seem to work just fine.
I don’t know but I do know the developer has concerns about the performance of MainUI in that regard which is why it wasn’t implemented in the first place.