Skip to content

oh-input-card - Input Card ​

Display an input in a card

Configuration ​

Card ​

Parameters of the card

titleTitleTEXT

Title of the card

Footer of the card

noBorderNo BorderBOOLEAN

Do not render the card border

noShadowNo ShadowBOOLEAN

Do not render a shadow effect to the card

outlineOutlineBOOLEAN

Show the card outline

Input ​

nameNameTEXT

Input name

typeInput TypeTEXT

Input type for different openHAB Item types (the first listed type is the default):

  • String: text, textarea, texteditor, password, email, tel, url
  • DateTime: datetime-local, date, datepicker
  • Number: number
  • inputmodeInput ModeTEXT

    Type of data that might be entered (see MDN docs)

    placeholderPlaceholderTEXT

    Placeholder text

    sendButtonSend buttonBOOLEAN

    Display Send button to update the state with a command (needs a configured item)

    clearButtonClear buttonBOOLEAN

    Display input clear button when applicable

    outlineOutlineBOOLEAN

    Makes input outline

    requiredRequiredBOOLEAN

    Display an error message if left empty

    validateValidateBOOLEAN

    When enabled, input value will be validated based on input type

    validate-on-blurValidate on blurBOOLEAN

    Only validate when focus moves away from input field

    itemItemTEXTitem

    Link the input value to the state of this item

    useDisplayStateUse Display StateBOOLEAN

    Use the formatted state as the value for the input control

    minMinimumDECIMAL

    Minimum allowed value when type set to number

    maxMaximumDECIMAL

    Maximum allowed value when type set to number

    stepStepDECIMAL

    Step value when type set to number, any if left empty

    showTimeShow timeBOOLEAN

    Display time when type set to datepicker

    defaultValueDefault valueTEXT

    Default value when not found in item state or variable

    variableVariableTEXT

    Name of the variable to set when the input changes

    variableKeyVariable KeyTEXT

    Consider the variable value is an object and set the corresponding deep property within that object using a key syntax. Examples: user.name, user[0].address[1].street, [0], [0].label. The inner property and its parent hierarchy will be created if missing.