Skip to content

YamlSlotNumber

olialb edited this page Jun 8, 2026 · 1 revision

ohItem slot type number

The number type shows the state of an openHAB Number item. It has in cardEntities a slider to set the value of the number in the range of the attributes min/max.

Slot attribute default value optional / Mandetory Description
min 0 O minimal value of the Number
max 100 O maximal value of the Number

Example 1:

    ...
    slots:
      - class: ohItem
        type: number                #lovelace ui field type
        text: Kugellampe            #Text shown in first field
        type: number                #lovelace ui field type
        item: Dimmer_Kugellampe     #a Dimmer item in openHAB

In cardEntities: image

In cardGrid: image

Example 2:

    ...
    slots:
      - class: ohItem
        type: number                #lovelace ui field type
        text: =itemState            #show item state as text
        icon: home-thermometer
        item: H_Schlafzimmer_SetHeatTemp  #Number item in openHAB

In cardGrid: image

Example 3:

    ...
    slots:
      - class: ohItem
        type: number                #lovelace ui field type
        text: Schlafzimmer
        icon: home-thermometer
        item: H_Schlafzimmer_SetHeatTemp  #Number item in openHAB
        min: 5                #min value of slider
        max: 30               #max value of slider

In cardGrid: image

Clone this wiki locally