Input Text

The input_text component allows the user to define values that can be controlled via the frontend and can be used within conditions of automation. Changes to the value stored in the text box generate state events. These state events can be utilized as automation triggers as well.

# Example configuration.yaml entries
    name: Text 1
    initial: Some Text
    name: Text 2
    min: 8
    max: 40
    name: Text 3
    pattern: '[a-fA-F0-9]*'

Configuration variables:

  • [alias] (Required): Alias for the text input.
  • min (Optional): Minimum length for the text value. Default is 0.
  • max (Optional): Maximum length for the text value. Default is 100.
  • name (Optional): Friendly name of the text input.
  • initial (Optional): Initial value when Home Assistant starts. Default is empty string.
  • pattern (Optional): Regex pattern for client side validation. Default is empty string, which is treated same as .*.