home-assistant.io/source/_components/input_slider.markdown
2016-04-16 09:39:27 -07:00

1.0 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category
layout title description date sidebar comments sharing footer logo ha_category
page Input Slider Instructions how to integrate the Input Slider component into Home Assistant. 2016-03-15 06:00 true false true true home-assistant.png Automation

The input_slider 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 slider generate state events. These state events can be utilized as automation triggers as well.

# Example configuration.yaml entry
input_slider:
  slider1:
    name: Slider 1
    initial: 30
    min: -20
    max: 35
    step: 1

Configuration variables:

  • [alias] (Required): Alias for the slider input.
  • name (Optional): Friendly name of the slider input.
  • initial (Optional): Initial value when Home Assistant starts.
  • min (Optional): Minimum value for the slider.
  • max (Optional): Maximum value for the slider.
  • step (Optional): Step value for the slider.