Skip to content

YamlSlotSwitch

olialb edited this page Jun 8, 2026 · 1 revision

ohItem slot type switch

The switch type shows the state of the switch. By clicking on it, you can switch the state ON and OFF in openHAB.

Example 1:

    ...
    slots:
      - class: ohItem
        type: switch
        text: =itemState
        item: Switch_Kugellampe
        icon: lamp
        iconColor: ON=red,OFF=grey

For example in cardGrid: image image

For example in cardEntitie: image

Clone this wiki locally