Skip to content

oh-slider-item - Slider List Item ​

Display a slider control in a list

By default, the slider control will use the display state of the Item, if available. If the display state is not available, it will use the raw state of the Item. If you want to always use the raw state, set the ignoreDisplayState property to true.

Note

If you have problems with the slider resetting to a different value than the one you set, it is likely that the display state of the Item does not allow enough decimals for the step size of the slider. If you have problems with the displayed state having a different number of decimals than the slider, it is likely that the display state of the Item does not allow enough decimals for the step size of the slider.

In those cases, make sure that either the state description of the Item is set to the same number of decimals than the step size (so that the display state has the same precision as the slider), or that the ignoreDisplayState property is set to true.

Configuration ​

List Item ​

General settings of the list item

titleTitleTEXT

Title of the item

subtitleSubtitleTEXT

Subtitle of the item

afterAfterTEXT

Text to display on the opposite side of the item (set either this or a badge)

iconIconTEXT

Use oh:iconName (openHAB icon), f7:iconName (Framework7 icon), material:iconName (Material icon) or iconify:iconSet:iconName (Iconify icon, requires being online if not in cache)

iconColorIcon ColorTEXT

Not applicable to openHAB icons

iconUseStateIcon depends on stateBOOLEAN

Use the state of the Item to get a dynamic icon (enabled by default for Contact, Dimmer, Rollershutter & Switch Item types) (for openHAB icons only)

Slider ​

itemItemTEXTitem

Item to control

minMinDECIMAL

Minimum value

maxMaxDECIMAL

Maximum value

stepStepDECIMAL

Minimum interval between values

verticalVerticalBOOLEAN

Display the slider vertically

labelDisplay LabelBOOLEAN

Display a label above the slider knob while sliding

scaleDisplay ScaleBOOLEAN

Display a scale on the slider

scaleStepsScale stepsINTEGER

Number of (major) scale markers

scaleSubStepsScale sub-stepsINTEGER

Number of scale minor markers between each major marker

unitUnitTEXT

Unit for the command sent and also append to the label while dragging the cursor, leave empty to use Item's unit

ignoreDisplayStateIgnore Display StateBOOLEAN

Ignore the display state if available and always use the raw state.

releaseOnlySend command only on releaseBOOLEAN

If enabled, no commands are sent during sliding

commandIntervalCommand IntervalINTEGER

Time to wait between subsequent commands in ms (default 200)

delayStateDisplayDelay State DisplayINTEGER

Time to wait before switching from displaying user input to displaying item state in ms (default 2000)