Skip to content

YamlSlotButton

olialb edited this page Jun 8, 2026 · 2 revisions

ohItem slot type button

The button type shows the state of an openHAB item as text. You can toggle between the different states of the item in case its a switch (ON/OFF), an option list is defined as attribute or in the referenced openHAB item.

Example in cardEntities:

    ...
    slots:
      - class: ohItem
        type: button              #lovelace ui field type
        text: Receiver            #shown as text
        item: String_Yamaha_Input #openHAB String Item
        icon: remote-tv
        iconColor: red
        options: TUNER=Radio,PHONO=Plattenspieler,AV2=vu2+

In cardEntities: image

Example in cardGrid with state as text:

    ...
    slots:
      - class: ohItem
        type: button              #lovelace ui field type
        text: =itemState          #Text shows the item state
        item: String_Yamaha_Input #openHAB String Item
        icon: \ueec4 #remote
        iconColor: red
        options: TUNER=Radio,PHONO=Plattenspieler,AV2=vu2+

In cardGrid: image

Clone this wiki locally