Sorry for the OT post, but how do you find the Neato BotVac? I am in the market for a robot vacuum cleaner and like the fact the Neatos are pretty open to integration. How well does it actually clean?
I try to reproduce your example using the “repeat” channel of the Sonos binding. I defined two string items, once with “[%s]” in the label, the other one without.
Then I have 2 switch with mappings in my sitemap, linked to my 2 items.
The value is displayed only for the first switch, either in Basicu UI or Classic UI or HABdroid.
So I am not able to reproduce your problem. Are you using a recent version of OH ?
By the way, doing these tests, I discovered an issue in Basic UI, the displayed value is not refreshed. I will fix this issue.
Maybe the channel definition includes a pattern in its state description. In this case, it is possible that the value will be displayed. That is to be checked.
I am talking about the definition of the command channel in the botvac.binding.
Where are the sources of this binding ? Is it an official binding of oh2 ?
Ah! I made a test as well with a dummy item and did not get the problem. My guess is this has something to do with openHAB 2 the two bindings where I am seing it is neato and zwave, both openHAB 2 bindings.
I found the sources of the botvac binding and I can confirm that a pattern is defined for the command channel. So I am probably right on my assumption.
Now your question is valid: is it expected to have precedence of the pattern defined in the channel state description over the item label. I will try to open the debate.
It is now possible to use the label “Command []” in your sitemap to avoid the display of the state value.
It will be available in OH 2 snapshots probably in 1 or 2 weeks.