You are reading the development docs (2026.12.1-dev.1): features here may not be released yet.
Skip to content

Slider Card ​

custom:lcards-slider

A slider you drag to set a light, cover, fan, thermostat or volume, or a read-only gauge for a sensor. It comes in four looks: pill bars, ruler gauges, shaped fills and ring gauges.

  • Most sliders need only entity and preset. The card works out from the entity what to control and over what range.
  • In a sections view each look asks for a cell that fits it (a pill bar 1 row, a ring 4, Picard 7); grid_options changes it.

Try it

  • The card editor's tabs cover the options on these pages, with a live preview.
  • The Playground lets you edit slider YAML here in the docs and see the result.
PageCovers
Pills and GaugesThe pill bar and ruler gauge: track, ticks, labels, indicator, borders, text
Ring, Shaped and PicardThe ring gauge, shaped fills and the Picard gauge
Ranges and MarkersColoured value bands and live markers on the track
Control and MotionWhat it controls, min and max, value easing, the drag badge
PlaygroundEdit YAML and see the slider live

Quick start ​

Two examples to start from: a light you drag, and a sensor shown as a gauge.

  • style.track.display sets the scale a gauge shows. What a slider can set is control.min and control.max, which come from the entity unless you change them (Control and Motion).
yaml
type: custom:lcards-slider
entity: light.bedroom
preset: pills-left-border
yaml
type: custom:lcards-slider
entity: sensor.temperature
preset: gauge-basic
style:
  track:
    display:
      min: -10
      max: 40
      unit: "°C"

Presets ​

preset picks the look. Every preset is shown here against a sample light; drag one to set its brightness.

  • A preset is a starting point: any style key you set overrides it.
  • Without a preset, lights, covers, fans, climate and the other draggable domains draw pills, and everything else (sensors) draws a gauge.
PresetLook
pills-basicSegmented pill bar
pills-left-borderPill bar with an LCARS cap on the left
pills-left-border-roundedPill bar with a left cap and a rounded right end
gauge-basicRuler gauge: tick marks, labels and a fill bar
gauge-left-borderRuler gauge with a left cap
gauge-left-border-roundedRuler gauge with a left cap and a rounded right end
shaped-verticalUpright lozenge fill with text above and below (shaped)
shaped-horizontalFlat lozenge fill with text left and right (shaped)
ringThree-quarter ring, name above a large value (ring)
picard-ringNear-full thick ring with flat ends (ring)
picard-gauge-verticalPicard-style upright gauge (Picard)
picard-gauge-columnPicard Titan column gauge: number caps at both ends, a thin value bar, a range strip and a small oval thumb (Picard component, shape: column)

Card options ​

The slider's own top-level keys. Each block has its own page; this table links to it.

  • The slider also takes the keys every LCARdS card takes (height, grid_options, id, tags, tap_action, animations, sounds, data_sources ...): see Common card properties.
yaml
type: custom:lcards-slider
entity: light.bedroom
preset: gauge-left-border
control:
  min: 10 # never dimmer than 10 %
drag_badge:
  enabled: true
KeyTypeDefaultDescription
entitystring-The entity to show and control. Its domain sets what the slider controls and its range: see Control and Motion
presetstringpills or gauge, by domainThe look: see Presets
controlobjectby domainThe range, the step, read-only, inverted: see Control options
textobjectfrom the presetText on the card: the name, the value, your own labels. See Text labels
styleobjectfrom the presetOverrides for the preset: the track and gauge, ranges, ring, shaped and Picard, borders
componentstringfrom the presetshaped, ring or picard without a preset that sets it
value_tweenobjectonEases the fill and markers to a new value when the entity changes: see Value tween. Off when the device asks for reduced motion
drag_badgeobjectoffA badge with the live value while you drag: see Drag value badge
ranges_attributestring-The attribute that range colours compare, for entities whose state is not a number
state_attributestring-The attribute whose value picks exact-match colours

Released under the MIT License. | About