I stumbled across this post while playing around with Openhab 2.4.0. I was trying to display the state of the switch item (for Hue Bulb) with only read access in the control tab of Paper UI. A simple solution would be to have a different item type with only read access to the switch state (similar to lockOnly capability in smartThings) but I couldn't find examples of someone using the "String" item type either.
I think this is useful when someone just wants to share the state of the device while integrating 3rd party service or maybe allowing access to only one command on the device e.g., only allowing lock but disabling unlock.
I'd appreciate if somebody posted a link to a tutorial which tries to implement similar functionality. I'm new to Openhab and I might be misunderstanding the architecture itself.