3-way switch with OH3

I have a Number item that may take one of three values:
0: “0ff” , 1: “WW” 3: “WW + heat”

In BasicUI that would look like this:
Switch item=Vito_Betriebsmodus label=“Zustand [%s]” mappings=[0=“Aus”, 1=“WW”, 2=“WW+Heizen”, 66=“Party-sofort Heizen”]

What would I have to do in order to get this with the MainUI?

I tried this:

Number Vito_ManualMode “Vito_ManualMode” (gHeating) [“switchable”,“HVAC”] {
channel=“http:url:vitowifi:Channel_Vito_ManualMode” , expire=“15m”,
stateDescription=""[
pattern="%d%%",
min=“0”,
max=“2”,
step=“1”,
options=“0=OFF, 1=WW, 3=WW+Heat”
],
widget=“oh-slider-card”,
listWidget=“oh-slider-item”,
cellWidget=“oh-slider-cell”
}

That gave me a 0-100% slider. What I wanted was three buttons or a drop down menu or similar. Or a slider with only three states :frowning:

In this Thread you have some examples how to get buttons or lists with three or more values.

I have seen that but I was hoping for a much simpler solution. And I want to use text config only.
I am looking for the equivalent of the BasicUI switch with the mappings:

Switch item= CMD_RolloStopRunterRauf icon="rollershutter" label="Rollos fahren" mappings=[ 1="STOP", 2="Runter", 3="Rauf" ]

image

I look for the same.
Is a widget a must or can this be achieved by a item text config somehow?

Hi,

did you try it with a meta description at the item?

as easy as that. configue an oh-label-card with options dialog:

component: oh-label-card
config:
  action: options
  actionOptions: 1=STOP,2=Runter,3=Rauf
  actionItem: CMD_RolloStopRunterRauf
  label: Rollos
  icon: oh:rollershutter

thanks.
As textual configuration that works with the automatically generated sitemap that would then be:

Number RollershutterTest  <blinds> ["Blinds"]  {
  listWidget = "oh-label-item"[
    action= "options",
    actionOptions= "1=STOP,2=Runter,3=Rauf",
    actionItem= "RollershutterTest",
    icon= "oh:rollershutter"
    ]
}