Skip to content

YamlSlotInputSel

olialb edited this page Jun 20, 2026 · 3 revisions

ohItem slot type input_sel

The input_sel type shows the state of an openHAB item with different states. You can define a list of values which you want to select and toggle between them. The list is defined as a option list which maps the value of the item to names (like the options in openHAB):

Slot attribute default value optional / Mandetory Description
options option list from referenced openHAB item (if available) O Defines the option list shown in the input selection popup
options: Name0=0,Name1=1,AND=2,SO=3,ON=4

That means to use this type, your have to define a option attribute or reference an item which has an option list defined in openHAB:

Example:

    ...
    slots:
      - class: ohItem
        type: input_sel           #lovelace ui field type
        text: Receiver            #Text shown in first field
        item: String_Yamaha_Input #openHAB String Item
        icon: remote-tv #remote icon
        iconColor: blue
        options: TUNER=Radio,PHONO=Plattenspieler,AV1=PS3,AV2=vu2+,AV3,AV4,AV5=Port 5,AV6=AV6,Bluetooth=Bluetooth,USB=USB,NET RADIO=NET RADIO,AUDIO1=Fernseher

In cardEntities: image

In cardGrid: image

There is popup it you click on text or icon with the complte option list:

image

The Current state of the item is highlighted in a different color.

ohItem slot type popupInSel

The popupInSel type is identical to type input_sel. The only difference is, that the input select popup opens directly on a button press. You don't need to press the slot long to open the popup like with type type input_sel.

Clone this wiki locally