openhab-webui/bundles/org.openhab.ui/doc/components/oh-knob-card.md

2.1 KiB

title component label description source
oh-knob-card - Knob Card oh-knob-card Knob Card Display a knob in a card to visualize and control a quantifiable item https://github.com/openhab/openhab-webui/edit/main/bundles/org.openhab.ui/doc/components/oh-knob-card.md

oh-knob-card - Knob Card

Display a knob in a card to visualize and control a quantifiable item

Configuration

Card

Parameters of the card

  • title TEXT Title

    Title of the card

  • footer TEXT Footer text

    Footer of the card

  • noBorder BOOLEAN No Border

    Do not render the card border

  • noShadow BOOLEAN No Shadow

    Do not render a shadow effect to the card

  • outline BOOLEAN Outline

    Show the card outline

Knob

Parameters are passed to the underlying Knob control

  • item TEXT Item

    Item to control

  • min INTEGER Min

    Minimum value (default 0)

  • max INTEGER Max

    Maximum value (default 100)

  • stepSize DECIMAL Step

    Minimum interval between values (default 1)

  • disabled BOOLEAN Disabled

    Disable the slider (usually set via an expression since the value will not be displayed when disabled)

  • size INTEGER Size

    Visual size of the control in px (or % if responsive is true)

  • primaryColor TEXT Primary Color

    Color of the value arc (HTML value, default #409eff)

  • secondaryColor TEXT Secondary Color

    Color of the rest of the control (HTML value, default #dcdfe6)

  • textColor TEXT Text Color

    Color of the value text (HTML value, default #000000)

  • strokeWidth TEXT Stroke Width

    Thickness of the arcs, default 17

  • responsive BOOLEAN Responsive

    Size the control using percentages instead of pixels