Skip to content

YamlSlotLight

olialb edited this page Jun 8, 2026 · 4 revisions

ohItem slot type light

The 'light* type is the most complex type because its for lights with dimmer, color temperature and color functionality. Its based on the type switch and has the same attributs but extends it with additinal attributes:

Slot attribute default value optional / Mandetory Description
dimmerItem - O openHAB Dimmer item to dim the light (inside the popUp)
colTempItem - O openHAB Dimmer item to set the color temperature of the light (inside the popUp)
color - O openHAB Color item to set the color of the light (inside the second popUp)

Example:

    ...
    slots:
      - class: ohItem
        type: light                 #lovelace ui field type
        text: Kugel farbig          #Text shown for the item
        item: Switch_Kugellampe     #Switch item in openHAB
        dimmerItem: Dimmer_Kugellampe        #openHAB item to control the brightness of the light
        colTempItem: Dimmer_Kugellampe_temp  #openHAB item to control the color temperature of the light
        colorItem: Color_Kugellampe          #openHAB item to control the color of the light

For example in cardEntities: image

In cardGrid: image

The type light looks in a cardGrid or cardEntities similar to the switch type but if you click on the text or icon a popUp opens and you can set dependent on the defined light items the full light functionality:

Example with brightness and color temperature:

image

Example with color light and all other attributes:

image

When you clik on the color palette icon a second popup opens:

image

Clone this wiki locally