I want to use the defined name of an item to print it out in a broadcast message.
I found examples like “triggeringItem.name”, but that only gives me the name of an item - but I want to print the defined caption.
But “caption” didn’t work:
‘caption’ is not a member of ‘org.eclipse.smarthome.core.items.Item’; line 22, column 32, length 22
Is there a way to access the defined label of an item?