Trying to understand how labels are set in the GUI.
I have the following:
sonos.items:
Group SonosKitchen "Sonos PLAY:5 Kitchen" (Sonos)
Player SonosKitchenControl "Control" <settings> (SonosKitchen) { channel="sonos:PLAY5:RINCON_000E5857B06XXXXXX:control"}
String SonosKitchenArtist "Artist [%s]" (SonosKitchen) { channel="sonos:PLAY5:RINCON_000E5857B06XXXXX:currentartist" }
Sitemap
Group item=kitchen label="Kitchen" icon="kitchen" {
Text item=SonosKitchenArtist
}
This will display “Current Artist” even though I have defined:
String SonosKitchenArtist “Artist [%s]”
Setting Text item=SonosKitchenArtist label=“Artist” Will work, but that would mean
I won’t be able to reuse my group definition.
Is there anyway of setting the label directly in the items file?
I thought the definition was:
itemtype itemname [“labeltext”] [] [(group1, group2, …)] [{bindingconfig}]
That would mean the default label would be “Artist” and not “Current Artist”, what am I missing?