Site updated at 2017-10-07 22:49:55 UTC

This commit is contained in:
Travis CI 2017-10-07 22:49:56 +00:00
parent f9a8fad682
commit 9ff55add23
128 changed files with 676 additions and 657 deletions

View file

@ -206,10 +206,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -126,10 +126,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -82,7 +82,7 @@
<li>Window/Door sensors</li>
<li>Motion sensors</li>
<li>Ring Door bells (No hub required)</li>
<li>Liquid presense sensors</li>
<li>Liquid presence sensors</li>
<li>Z-wave lock key codes</li>
<li>Lutron connected bulb remote buttons</li>
<li>Wink Relay buttons and presence detection</li>

View file

@ -199,10 +199,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -139,10 +139,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -86,7 +86,7 @@
<span class="s">dweet</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">HAExport</span>
<span class="s">whitelist</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">input_slider.brightness</span>
<span class="pi">-</span> <span class="s">input_number.brightness</span>
<span class="pi">-</span> <span class="s">input_boolean.notify_home</span>
<span class="pi">-</span> <span class="s">sensor.weather_temperature</span>
<span class="pi">-</span> <span class="s">sensor.cpu</span>

View file

@ -79,7 +79,7 @@
You need the <code class="highlighter-rouge">ffmpeg</code> binary in your system path. On Debian 8 or Raspbian (Jessie) you can install it from <a href="https://backports.debian.org/Instructions/">debian-backports</a>. If you want <a href="https://trac.ffmpeg.org/wiki/HWAccelIntro">hardware acceleration</a> support on a Raspberry Pi, you will need to build from source by yourself. Windows binaries are available on the <a href="http://www.ffmpeg.org/">FFmpeg</a> website.
</p>
<p class="note">
If you are using <a href="/hassio/">Hass.io</a> then just move forward to the configuration as all requirements are already fullfilled.
If you are using <a href="/hassio/">Hass.io</a> then just move forward to the configuration as all requirements are already fulfilled.
</p>
<p>To set it up, add the following information to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">ffmpeg</span><span class="pi">:</span>

View file

@ -282,10 +282,10 @@ language: ???
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -222,10 +222,10 @@ You need to setup a unique trigger for each event you sent to IFTTT.
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -432,8 +432,8 @@ var allComponents = [
{url:"/components/sensor.influxdb/", title:"InfluxDB Sensor", cat:"sensor", featured: false, v: "0.32", logo: "influxdb.png"},
{url:"/components/input_boolean/", title:"Input Boolean", cat:"automation", featured: false, v: "0.0", logo: "home-assistant.png"},
{url:"/components/input_datetime/", title:"Input Datetime", cat:"automation", featured: false, v: "0.55", logo: "home-assistant.png"},
{url:"/components/input_number/", title:"Input Number", cat:"automation", featured: false, v: "0.16", logo: "home-assistant.png"},
{url:"/components/input_select/", title:"Input Select", cat:"automation", featured: false, v: "0.13", logo: "home-assistant.png"},
{url:"/components/input_slider/", title:"Input Slider", cat:"automation", featured: false, v: "0.16", logo: "home-assistant.png"},
{url:"/components/input_text/", title:"Input Text", cat:"automation", featured: false, v: "0.53", logo: "home-assistant.png"},
{url:"/components/notify.instapush/", title:"Instapush", cat:"notifications", featured: false, v: "0.7", logo: "instapush.png"},
{url:"/components/fan.insteon_local/", title:"Insteon (Local) Fan", cat:"fan", featured: false, v: "0.0", logo: "insteon.png"},
@ -1397,8 +1397,8 @@ allComponents.pop(); // remove placeholder element at the end
<li><a href='/components/sensor.influxdb/'>InfluxDB Sensor</a></li>
<li><a href='/components/input_boolean/'>Input Boolean</a></li>
<li><a href='/components/input_datetime/'>Input Datetime</a></li>
<li><a href='/components/input_number/'>Input Number</a></li>
<li><a href='/components/input_select/'>Input Select</a></li>
<li><a href='/components/input_slider/'>Input Slider</a></li>
<li><a href='/components/input_text/'>Input Text</a></li>
<li><a href='/components/notify.instapush/'>Instapush</a></li>
<li><a href='/components/fan.insteon_local/'>Insteon (Local) Fan</a></li>

View file

@ -156,10 +156,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -151,10 +151,10 @@
Input Datetime
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -0,0 +1,349 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Input Number - Home Assistant</title>
<meta name="author" content="Home Assistant">
<meta name="description" content="Instructions how to integrate the Input Number component into Home Assistant.">
<meta name="viewport" content="width=device-width">
<link rel="canonical" href="https://home-assistant.io/components/input_number/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Input Number">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/components/input_number/">
<meta property="og:type" content="article">
<meta property="og:description" content="Instructions how to integrate the Input Number component into Home Assistant.">
<meta property="og:image" content="https://home-assistant.io/images/default-social.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="Input Number">
<meta name="twitter:description" content="Instructions how to integrate the Input Number component into Home Assistant.">
<meta name="twitter:image" content="https://home-assistant.io/images/default-social.png">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
<link rel='shortcut icon' href='/images/favicon.ico' />
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
</head>
<body >
<header class='site-header'>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
<a href="/" class="site-title">
<img width='40' src='/demo/favicon-192x192.png'>
<span>Home Assistant</span>
</a>
</div>
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
<nav>
<input type="checkbox" id="toggle">
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
<ul class="menu pull-right">
<li><a href="/getting-started/">Getting started</a></li>
<li><a href="/components/">Components</a></li>
<li><a href="/docs/">Docs</a></li>
<li><a href="/cookbook/">Examples</a></li>
<li><a href="/developers/">Developers</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/help/">Need help?</a></li>
<li><a href='#' class='show-search'><i class="icon-search"></i></a></li>
</ul>
</nav>
<div class='search-container' style='display: none'>
<div class='search'>
<i class="icon-search"></i>
<input id='search' placeholder='Search the docs…'>
<a href='#' class='close'><i class="icon-remove-sign"></i></a>
</div>
</div>
</div>
</div>
</div>
</header>
<div class="grid-wrapper">
<div class="grid grid-center">
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
<article class="page">
<header>
<h1 class="title indent">
Input Number
</h1>
</header>
<hr class="divider">
<p>The <code class="highlighter-rouge">input_number</code> component allows the user to define values that can be controlled via the frontend and can be used within conditions of automation. The frontend can display a slider, or a numeric input box. Changes to the slider or numeric input box generate state events. These state events can be utilized as <code class="highlighter-rouge">automation</code> triggers as well.</p>
<p>To enable this input number in your installation, add the following lines to your <code class="highlighter-rouge">configuration.yaml</code>:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">input_number</span><span class="pi">:</span>
<span class="s">slider1</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Slider</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s">30</span>
<span class="s">min</span><span class="pi">:</span> <span class="s">-20</span>
<span class="s">max</span><span class="pi">:</span> <span class="s">35</span>
<span class="s">step</span><span class="pi">:</span> <span class="s">1</span>
<span class="s">box1</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Numeric Input Box</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s">30</span>
<span class="s">min</span><span class="pi">:</span> <span class="s">-20</span>
<span class="s">max</span><span class="pi">:</span> <span class="s">35</span>
<span class="s">step</span><span class="pi">:</span> <span class="s">1</span>
<span class="s">mode</span><span class="pi">:</span> <span class="s">box</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>[alias]</strong> (<em>Required</em>): Alias for the input. Multiple entries are allowed.
<ul>
<li><strong>min</strong> (<em>Required</em>): Minimum value.</li>
<li><strong>max</strong> (<em>Required</em>): Maximum value.</li>
<li><strong>name</strong> (<em>Optional</em>): Friendly name of the input.</li>
<li><strong>initial</strong> (<em>Optional</em>): Initial value when Home Assistant starts. Defaults to 0.</li>
<li><strong>step</strong> (<em>Optional</em>): Step value for the slider. Defaults to 1.</li>
<li><strong>mode</strong> (<em>Optional</em>): Can specify <code class="highlighter-rouge">box</code>, or <code class="highlighter-rouge">slider</code>. Defaults to <code class="highlighter-rouge">slider</code>.</li>
</ul>
</li>
</ul>
<h2><a class="title-link" name="automation-examples" href="#automation-examples"></a> Automation Examples</h2>
<p>Heres an example of <code class="highlighter-rouge">input_number</code> being used as a trigger in an automation.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>
<span class="c1"># Example configuration.yaml entry using 'input_number' as a trigger in an automation</span>
<span class="c1"># Define input_number</span>
<span class="s">input_number</span><span class="pi">:</span>
<span class="s">bedroom_brightness</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Brightness</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s">254</span>
<span class="s">min</span><span class="pi">:</span> <span class="s">0</span>
<span class="s">max</span><span class="pi">:</span> <span class="s">254</span>
<span class="s">step</span><span class="pi">:</span> <span class="s">1</span>
<span class="c1"># Automation. </span>
<span class="s">automation</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Bedroom Light - Adjust Brightness</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">state</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_number.bedroom_brightness</span>
<span class="s">action</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">service</span><span class="pi">:</span> <span class="s">light.turn_on</span>
<span class="c1"># Note the use of 'data_template:' below rather than the normal 'data:' if you weren't using an input variable</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">light.bedroom</span>
<span class="s">brightness</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">trigger.to_state.state</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">int</span><span class="nv"> </span><span class="s">}}'</span>
</code></pre>
</div>
<p>Another code example using <code class="highlighter-rouge">input_number</code>, this time being used in an action in an automation.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>
<span class="c1"># Example configuration.yaml entry using 'input_number' in an action in an automation</span>
<span class="c1"># Define 'input_select'</span>
<span class="s">input_select</span><span class="pi">:</span>
<span class="s">scene_bedroom</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Scene</span>
<span class="s">options</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">Select</span>
<span class="pi">-</span> <span class="s">Concentrate</span>
<span class="pi">-</span> <span class="s">Energize</span>
<span class="pi">-</span> <span class="s">Reading</span>
<span class="pi">-</span> <span class="s">Relax</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">OFF'</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s1">'</span><span class="s">Select'</span>
<span class="c1"># Define input_number</span>
<span class="s">input_number</span><span class="pi">:</span>
<span class="s">bedroom_brightness</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Brightness</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s">254</span>
<span class="s">min</span><span class="pi">:</span> <span class="s">0</span>
<span class="s">max</span><span class="pi">:</span> <span class="s">254</span>
<span class="s">step</span><span class="pi">:</span> <span class="s">1</span>
<span class="c1"># Automation. </span>
<span class="s">automation</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Bedroom Light - Custom</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">state</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_select.scene_bedroom</span>
<span class="s">to</span><span class="pi">:</span> <span class="s">CUSTOM</span>
<span class="s">action</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">service</span><span class="pi">:</span> <span class="s">light.turn_on</span>
<span class="c1"># Again, note the use of 'data_template:' rather than the normal 'data:' if you weren't using an input variable.</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">light.bedroom</span>
<span class="s">brightness</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">states.input_number.bedroom_brightness.state</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">int</span><span class="nv"> </span><span class="s">}}'</span>
</code></pre>
</div>
<p>Example of <code class="highlighter-rouge">input_number</code> being used in a bidirectional manner, both being set by and controlled by an MQTT action in an automation.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>
<span class="c1"># Example configuration.yaml entry using 'input_number' in an action in an automation</span>
<span class="c1"># Define input_number</span>
<span class="s">input_number</span><span class="pi">:</span>
<span class="s">target_temp</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Target Heater Temperature Slider</span>
<span class="s">min</span><span class="pi">:</span> <span class="s">1</span>
<span class="s">max</span><span class="pi">:</span> <span class="s">30</span>
<span class="s">step</span><span class="pi">:</span> <span class="s">1</span>
<span class="s">unit_of_measurement</span><span class="pi">:</span> <span class="s">step</span>
<span class="s">icon</span><span class="pi">:</span> <span class="s">mdi:target</span>
<span class="c1"># Automation. </span>
<span class="c1"># This automation script runs when a value is received via MQTT on retained topic: setTemperature</span>
<span class="c1"># It sets the value slider on the GUI. This slides also had its own automation when the value is changed.</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Set temp slider</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">mqtt</span>
<span class="s">topic</span><span class="pi">:</span> <span class="s2">"</span><span class="s">setTemperature"</span>
<span class="c1"># entity_id: input_number.target_temp</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">input_number.set_value</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_number.target_temp</span>
<span class="s">value</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">trigger.payload}}'</span>
<span class="c1"># This automation script runs when the target temperature slider is moved.</span>
<span class="c1"># It publishes its value to the same MQTT topic it is also subscribed to.</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Temp slider moved</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">state</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_number.target_temp</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">mqtt.publish</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">topic</span><span class="pi">:</span> <span class="s2">"</span><span class="s">setTemperature"</span>
<span class="s">retain</span><span class="pi">:</span> <span class="s">true</span>
<span class="s">payload</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">states.input_number.target_temp.state</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">int</span><span class="nv"> </span><span class="s">}}'</span>
</code></pre>
</div>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
<div class="grid">
<section class="aside-module grid__item one-whole lap-one-half">
<div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.github.io/tree/current/source/_components/input_number.markdown'>Edit this page on GitHub</a></div>
<div class='brand-logo-container section'>
<img src='/images/supported_brands/home-assistant.png' />
</div>
<div class='section'>
Introduced in release: 0.16
</div>
<div class='section'>
<h1 class="title delta">Category Automation</h1>
<ul class='divided'>
<li>
<a href='/components/alert/'>Alert</a>
</li>
<li>
<a href='/components/automation/'>Automation</a>
</li>
<li>
<a href='/components/counter/'>Counter</a>
</li>
<li>
<a href='/components/switch.flux/'>Flux Light Adjustment</a>
</li>
<li>
<a href='/components/hdmi_cec/'>HDMI CEC</a>
</li>
<li>
<a href='/components/ifttt/'>IFTTT</a>
</li>
<li>
<a href='/components/input_boolean/'>Input Boolean</a>
</li>
<li>
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
Input Number
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>
</li>
<li>
<a href='/components/keyboard/'>Keyboard</a>
</li>
<li>
<a href='/components/lirc/'>LIRC</a>
</li>
<li>
<a href='/components/device_sun_light_trigger/'>Presence based lights</a>
</li>
<li>
<a href='/components/proximity/'>Proximity</a>
</li>
<li>
<a href='/components/python_script/'>Python Scripts</a>
</li>
<li>
<a href='/components/rest_command/'>RESTful Command</a>
</li>
<li>
<a href='/components/script/'>Scripts</a>
</li>
<li>
<a href='/components/shell_command/'>Shell command</a>
</li>
</ul>
</div>
</section>
</div>
</aside>
</div>
</div>
<footer>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item">
<div class="copyright">
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
<a rel="me" href='https://facebook.com/homeassistantio'><i class="icon-facebook"></i></a>
<a rel="me" href='https://plus.google.com/110560654828510104551'><i class="icon-google-plus"></i></a>
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
<div class="credit">
Contact us at <a href='mailto:hello@home-assistant.io'>hello@home-assistant.io</a> (no support!).<br>
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
</div>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">home-assistant.io</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
</div>
</div>
</div>
</div>
</footer>
<script>
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
<script type="text/javascript">
docsearch({
apiKey: 'ae96d94b201c5444c8a443093edf3efb',
indexName: 'home-assistant',
inputSelector: '#search',
debug: false // Set debug to true if you want to inspect the dropdown
});
document.querySelector('.search .close').addEventListener('click', function(ev) {
ev.preventDefault();
document.querySelector('.search-container').style.display = 'none';
});
document.querySelector('.show-search').addEventListener('click', function(ev) {
ev.preventDefault();
document.querySelector('.search-container').style.display = 'block';
document.getElementById('toggle').checked = false;
document.querySelector('.search-container input').focus();
});
</script>
</body>
</html>

View file

@ -236,10 +236,10 @@ Because YAML defines <a href="http://yaml.org/type/bool.html">booleans</a> as eq
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
Input Select
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
Input Select
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -1,341 +1,10 @@
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Input Slider - Home Assistant</title>
<meta name="author" content="Home Assistant">
<meta name="description" content="Instructions how to integrate the Input Slider component into Home Assistant.">
<meta name="viewport" content="width=device-width">
<link rel="canonical" href="https://home-assistant.io/components/input_slider/">
<meta property="fb:app_id" content="338291289691179">
<meta property="og:title" content="Input Slider">
<meta property="og:site_name" content="Home Assistant">
<meta property="og:url" content="https://home-assistant.io/components/input_slider/">
<meta property="og:type" content="article">
<meta property="og:description" content="Instructions how to integrate the Input Slider component into Home Assistant.">
<meta property="og:image" content="https://home-assistant.io/images/default-social.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@home_assistant">
<meta name="twitter:title" content="Input Slider">
<meta name="twitter:description" content="Instructions how to integrate the Input Slider component into Home Assistant.">
<meta name="twitter:image" content="https://home-assistant.io/images/default-social.png">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet">
<link href="/atom.xml" rel="alternate" title="Home Assistant" type="application/atom+xml">
<link rel='shortcut icon' href='/images/favicon.ico' />
<link rel='icon' type='image/png' href='/images/favicon-192x192.png' sizes='192x192' />
</head>
<body >
<header class='site-header'>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item three-tenths lap-two-sixths palm-one-whole ha-title">
<a href="/" class="site-title">
<img width='40' src='/demo/favicon-192x192.png'>
<span>Home Assistant</span>
</a>
</div>
<div class="grid__item seven-tenths lap-four-sixths palm-one-whole">
<nav>
<input type="checkbox" id="toggle">
<label for="toggle" class="toggle" data-open="Main Menu" data-close="Close Menu"></label>
<ul class="menu pull-right">
<li><a href="/getting-started/">Getting started</a></li>
<li><a href="/components/">Components</a></li>
<li><a href="/docs/">Docs</a></li>
<li><a href="/cookbook/">Examples</a></li>
<li><a href="/developers/">Developers</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/help/">Need help?</a></li>
<li><a href='#' class='show-search'><i class="icon-search"></i></a></li>
</ul>
</nav>
<div class='search-container' style='display: none'>
<div class='search'>
<i class="icon-search"></i>
<input id='search' placeholder='Search the docs…'>
<a href='#' class='close'><i class="icon-remove-sign"></i></a>
</div>
</div>
</div>
</div>
</div>
</header>
<div class="grid-wrapper">
<div class="grid grid-center">
<div class="grid__item two-thirds lap-one-whole palm-one-whole">
<article class="page">
<header>
<h1 class="title indent">
Input Slider
</h1>
</header>
<hr class="divider">
<p>The <code class="highlighter-rouge">input_slider</code> 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 <code class="highlighter-rouge">automation</code> triggers as well.</p>
<p>To enable this input sliders in your installation, add the following lines to your <code class="highlighter-rouge">configuration.yaml</code>:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">input_slider</span><span class="pi">:</span>
<span class="s">slider1</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Slider 1</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s">30</span>
<span class="s">min</span><span class="pi">:</span> <span class="s">-20</span>
<span class="s">max</span><span class="pi">:</span> <span class="s">35</span>
<span class="s">step</span><span class="pi">:</span> <span class="s">1</span>
</code></pre>
</div>
<p>Configuration variables:</p>
<ul>
<li><strong>[alias]</strong> (<em>Required</em>): Alias for the slider input. Multiple entries are allowed.
<ul>
<li><strong>min</strong> (<em>Required</em>): Minimum value for the slider.</li>
<li><strong>max</strong> (<em>Required</em>): Maximum value for the slider.</li>
<li><strong>name</strong> (<em>Optional</em>): Friendly name of the slider input.</li>
<li><strong>initial</strong> (<em>Optional</em>): Initial value when Home Assistant starts. Defaults to 0.</li>
<li><strong>step</strong> (<em>Optional</em>): Step value for the slider. Defaults to 1.</li>
</ul>
</li>
</ul>
<h2><a class="title-link" name="automation-examples" href="#automation-examples"></a> Automation Examples</h2>
<p>Heres an example of <code class="highlighter-rouge">input_slider</code> being used as a trigger in an automation.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>
<span class="c1"># Example configuration.yaml entry using 'input_slider' as a trigger in an automation</span>
<span class="c1"># Define input_slider</span>
<span class="s">input_slider</span><span class="pi">:</span>
<span class="s">bedroom_brightness</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Brightness</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s">254</span>
<span class="s">min</span><span class="pi">:</span> <span class="s">0</span>
<span class="s">max</span><span class="pi">:</span> <span class="s">254</span>
<span class="s">step</span><span class="pi">:</span> <span class="s">1</span>
<span class="c1"># Automation. </span>
<span class="s">automation</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Bedroom Light - Adjust Brightness</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">state</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_slider.bedroom_brightness</span>
<span class="s">action</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">service</span><span class="pi">:</span> <span class="s">light.turn_on</span>
<span class="c1"># Note the use of 'data_template:' below rather than the normal 'data:' if you weren't using an input variable</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">light.bedroom</span>
<span class="s">brightness</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">trigger.to_state.state</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">int</span><span class="nv"> </span><span class="s">}}'</span>
</code></pre>
</div>
<p>Another code example using <code class="highlighter-rouge">input_slider</code>, this time being used in an action in an automation.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>
<span class="c1"># Example configuration.yaml entry using 'input_slider' in an action in an automation</span>
<span class="c1"># Define 'input_select'</span>
<span class="s">input_select</span><span class="pi">:</span>
<span class="s">scene_bedroom</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Scene</span>
<span class="s">options</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">Select</span>
<span class="pi">-</span> <span class="s">Concentrate</span>
<span class="pi">-</span> <span class="s">Energize</span>
<span class="pi">-</span> <span class="s">Reading</span>
<span class="pi">-</span> <span class="s">Relax</span>
<span class="pi">-</span> <span class="s1">'</span><span class="s">OFF'</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s1">'</span><span class="s">Select'</span>
<span class="c1"># Define input_slider</span>
<span class="s">input_slider</span><span class="pi">:</span>
<span class="s">bedroom_brightness</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Brightness</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s">254</span>
<span class="s">min</span><span class="pi">:</span> <span class="s">0</span>
<span class="s">max</span><span class="pi">:</span> <span class="s">254</span>
<span class="s">step</span><span class="pi">:</span> <span class="s">1</span>
<span class="c1"># Automation. </span>
<span class="s">automation</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Bedroom Light - Custom</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">state</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_select.scene_bedroom</span>
<span class="s">to</span><span class="pi">:</span> <span class="s">CUSTOM</span>
<span class="s">action</span><span class="pi">:</span>
<span class="pi">-</span> <span class="s">service</span><span class="pi">:</span> <span class="s">light.turn_on</span>
<span class="c1"># Again, note the use of 'data_template:' rather than the normal 'data:' if you weren't using an input variable.</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">light.bedroom</span>
<span class="s">brightness</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">states.input_slider.bedroom_brightness.state</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">int</span><span class="nv"> </span><span class="s">}}'</span>
</code></pre>
</div>
<p>Example of <code class="highlighter-rouge">input_slider</code> being used in a bidirectional manner, both being set by and controlled by an MQTT action in an automation.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code>
<span class="c1"># Example configuration.yaml entry using 'input_slider' in an action in an automation</span>
<span class="c1"># Define input_slider</span>
<span class="s">input_slider</span><span class="pi">:</span>
<span class="s">target_temp</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">Target Heater Temperature Slider</span>
<span class="s">min</span><span class="pi">:</span> <span class="s">1</span>
<span class="s">max</span><span class="pi">:</span> <span class="s">30</span>
<span class="s">step</span><span class="pi">:</span> <span class="s">1</span>
<span class="s">unit_of_measurement</span><span class="pi">:</span> <span class="s">step</span>
<span class="s">icon</span><span class="pi">:</span> <span class="s">mdi:target</span>
<span class="c1"># Automation. </span>
<span class="c1"># This automation script runs when a value is received via MQTT on retained topic: setTemperature</span>
<span class="c1"># It sets the value slider on the GUI. This slides also had its own automation when the value is changed.</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Set temp slider</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">mqtt</span>
<span class="s">topic</span><span class="pi">:</span> <span class="s2">"</span><span class="s">setTemperature"</span>
<span class="c1"># entity_id: input_slider.target_temp</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">input_slider.select_value</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_slider.target_temp</span>
<span class="s">value</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">trigger.payload}}'</span>
<span class="c1"># This automation script runs when the target temperature slider is moved.</span>
<span class="c1"># It publishes its value to the same MQTT topic it is also subscribed to.</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">Temp slider moved</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">state</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_slider.target_temp</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">mqtt.publish</span>
<span class="s">data_template</span><span class="pi">:</span>
<span class="s">topic</span><span class="pi">:</span> <span class="s2">"</span><span class="s">setTemperature"</span>
<span class="s">retain</span><span class="pi">:</span> <span class="s">true</span>
<span class="s">payload</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">states.input_slider.target_temp.state</span><span class="nv"> </span><span class="s">|</span><span class="nv"> </span><span class="s">int</span><span class="nv"> </span><span class="s">}}'</span>
</code></pre>
</div>
</article>
</div>
<aside id="sidebar" class="grid__item one-third lap-one-whole palm-one-whole">
<div class="grid">
<section class="aside-module grid__item one-whole lap-one-half">
<div class='edit-github'><a href='https://github.com/home-assistant/home-assistant.github.io/tree/current/source/_components/input_slider.markdown'>Edit this page on GitHub</a></div>
<div class='brand-logo-container section'>
<img src='/images/supported_brands/home-assistant.png' />
</div>
<div class='section'>
Introduced in release: 0.16
</div>
<div class='section'>
<h1 class="title delta">Category Automation</h1>
<ul class='divided'>
<li>
<a href='/components/alert/'>Alert</a>
</li>
<li>
<a href='/components/automation/'>Automation</a>
</li>
<li>
<a href='/components/counter/'>Counter</a>
</li>
<li>
<a href='/components/switch.flux/'>Flux Light Adjustment</a>
</li>
<li>
<a href='/components/hdmi_cec/'>HDMI CEC</a>
</li>
<li>
<a href='/components/ifttt/'>IFTTT</a>
</li>
<li>
<a href='/components/input_boolean/'>Input Boolean</a>
</li>
<li>
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
Input Slider
</li>
<li>
<a href='/components/input_text/'>Input Text</a>
</li>
<li>
<a href='/components/keyboard/'>Keyboard</a>
</li>
<li>
<a href='/components/lirc/'>LIRC</a>
</li>
<li>
<a href='/components/device_sun_light_trigger/'>Presence based lights</a>
</li>
<li>
<a href='/components/proximity/'>Proximity</a>
</li>
<li>
<a href='/components/python_script/'>Python Scripts</a>
</li>
<li>
<a href='/components/rest_command/'>RESTful Command</a>
</li>
<li>
<a href='/components/script/'>Scripts</a>
</li>
<li>
<a href='/components/shell_command/'>Shell command</a>
</li>
</ul>
</div>
</section>
</div>
</aside>
</div>
</div>
<footer>
<div class="grid-wrapper">
<div class="grid">
<div class="grid__item">
<div class="copyright">
<a rel="me" href='https://twitter.com/home_assistant'><i class="icon-twitter"></i></a>
<a rel="me" href='https://facebook.com/homeassistantio'><i class="icon-facebook"></i></a>
<a rel="me" href='https://plus.google.com/110560654828510104551'><i class="icon-google-plus"></i></a>
<a rel="me" href='https://github.com/home-assistant/home-assistant'><i class="icon-github"></i></a>
<div class="credit">
Contact us at <a href='mailto:hello@home-assistant.io'>hello@home-assistant.io</a> (no support!).<br>
Website powered by <a href='http://jekyllrb.com/'>Jekyll</a> and the <a href='https://github.com/coogie/oscailte'>Oscalite theme</a>.<br />
Hosted by <a href='https://pages.github.com/'>GitHub</a> and served by <a href='https://cloudflare.com'>CloudFlare</a>.
</div>
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">home-assistant.io</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
</div>
</div>
</div>
</div>
</footer>
<script>
var _gaq=[['_setAccount','UA-57927901-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />
<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
<script type="text/javascript">
docsearch({
apiKey: 'ae96d94b201c5444c8a443093edf3efb',
indexName: 'home-assistant',
inputSelector: '#search',
debug: false // Set debug to true if you want to inspect the dropdown
});
document.querySelector('.search .close').addEventListener('click', function(ev) {
ev.preventDefault();
document.querySelector('.search-container').style.display = 'none';
});
document.querySelector('.show-search').addEventListener('click', function(ev) {
ev.preventDefault();
document.querySelector('.search-container').style.display = 'block';
document.getElementById('toggle').checked = false;
document.querySelector('.search-container input').focus();
});
</script>
</body>
<!DOCTYPE html>
<html lang="en-US">
<meta charset="utf-8">
<title>Redirecting…</title>
<link rel="canonical" href="https://home-assistant.io/components/input_number/">
<meta http-equiv="refresh" content="0; url=https://home-assistant.io/components/input_number/">
<h1>Redirecting…</h1>
<a href="https://home-assistant.io/components/input_number/">Click here if you are not redirected.</a>
<script>location="https://home-assistant.io/components/input_number/"</script>
</html>

View file

@ -138,10 +138,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
Input Text

View file

@ -135,10 +135,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -92,7 +92,7 @@
<li><strong>[mac address]</strong> (<em>Required</em>): The bluetooth address of the switch.
<ul>
<li><strong>name</strong> (<em>Optional</em>): The custom name to use in the frontend.</li>
<li><strong>api_key</strong> (<em>Required</em>): The API key to acces the device.</li>
<li><strong>api_key</strong> (<em>Required</em>): The API key to access the device.</li>
</ul>
</li>
</ul>

View file

@ -176,10 +176,10 @@ end
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -109,7 +109,7 @@ Be aware that if you use your main account for Home Assistant you may not be abl
</tr>
<tr>
<td><code class="highlighter-rouge">date</code></td>
<td>Date when the event occured.</td>
<td>Date when the event occurred.</td>
</tr>
<tr>
<td><code class="highlighter-rouge">description</code></td>

View file

@ -97,7 +97,7 @@ Media extractor doesnt transcode streams, it just tries to find stream that m
<span class="s">music</span><span class="pi">:</span> <span class="s">bestaudio[ext=mp3]</span>
</code></pre>
</div>
<p>This configuration sets query for all service calls like: <code class="highlighter-rouge"><span class="p">{</span><span class="nt">"entity_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"media_player.my_sonos"</span><span class="p">,</span><span class="w"> </span><span class="nt">"media_content_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://soundcloud.com/bruttoband/brutto-11"</span><span class="p">,</span><span class="w"> </span><span class="nt">"media_content_type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"music"</span><span class="p">}</span></code> to bestaudio with mp3 extention.</p>
<p>This configuration sets query for all service calls like: <code class="highlighter-rouge"><span class="p">{</span><span class="nt">"entity_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"media_player.my_sonos"</span><span class="p">,</span><span class="w"> </span><span class="nt">"media_content_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"https://soundcloud.com/bruttoband/brutto-11"</span><span class="p">,</span><span class="w"> </span><span class="nt">"media_content_type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"music"</span><span class="p">}</span></code> to bestaudio with mp3 extension.</p>
<p>Query examples with explanations:</p>
<ul>
<li><strong>bestvideo</strong> - best video only stream</li>

View file

@ -99,7 +99,7 @@
<li><strong>port</strong> (<em>Optional</em>): The port number. Defaults to 80.</li>
<li><strong>password</strong> (<em>Optional</em>): PIN code of the Internet Radio. Defaults to 1234.</li>
</ul>
<p>Some models use a seperate port (2244) for API access, this can be verified by visiting http://[host]:[port]/device.</p>
<p>Some models use a separate port (2244) for API access, this can be verified by visiting http://[host]:[port]/device.</p>
<p>In case your device (friendly name) is called <em>badezimmer</em>, an example automation can look something like this:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml automation</span>
<span class="s">alias</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Bathroom</span><span class="nv"> </span><span class="s">Motion</span><span class="nv"> </span><span class="s">Detected"</span>

View file

@ -75,7 +75,7 @@
</header>
<hr class="divider">
<p>The <a href="https://discordapp.com/">Discord service</a> is a platform for the notify component. This allows components to send messages to the user using Discord.</p>
<p>In order to get a token you need to go to the <a href="https://discordapp.com/developers/applications/me">Discord My Apps page</a> and create a new application. Once the application is ready, create a <a href="https://discordapp.com/developers/docs/topics/oauth2#bots">bot</a> user (<strong>Create a Bot User</strong>) and activate <strong>Require OAuth2 Code Grant</strong>. Retreive the <strong>Client ID</strong> and the (hidden) <strong>Token</strong> of your bot for later.</p>
<p>In order to get a token you need to go to the <a href="https://discordapp.com/developers/applications/me">Discord My Apps page</a> and create a new application. Once the application is ready, create a <a href="https://discordapp.com/developers/docs/topics/oauth2#bots">bot</a> user (<strong>Create a Bot User</strong>) and activate <strong>Require OAuth2 Code Grant</strong>. Retrieve the <strong>Client ID</strong> and the (hidden) <strong>Token</strong> of your bot for later.</p>
<p>When setting up the application you can use this <a href="https://home-assistant.io/demo/favicon-192x192.png">icon</a>.</p>
<p>To use Discord notifications, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>

View file

@ -179,10 +179,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -158,10 +158,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -140,10 +140,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -201,10 +201,10 @@ The preferred way to separate words for better readability is to use underscore
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -206,7 +206,7 @@ for the overall “health” of the air.</p>
</tr>
</tbody>
</table>
<h3>Air Polution Level</h3>
<h3>Air Pollution Level</h3>
<p><strong>Description:</strong> This sensor displays the associated <code class="highlighter-rouge">Status</code> (from the above
table) for the current AQI.</p>
<p><strong>Sample Sensor Name:</strong> <code class="highlighter-rouge">sensor.us_air_pollution_level</code></p>

View file

@ -118,7 +118,7 @@
<span class="o">{</span><span class="s1">'thing'</span>: <span class="s1">'ha-sensor'</span>, <span class="s1">'created'</span>: <span class="s1">'2015-12-10T09:46:08.559Z'</span>, <span class="s1">'content'</span>: <span class="o">{</span><span class="s1">'humiditiy'</span>: 81, <span class="s1">'temperature'</span>: 23<span class="o">}}</span>
</code></pre>
</div>
<p>Recieve the latest dweet.</p>
<p>Receive the latest dweet.</p>
<div class="language-bash highlighter-rouge"><pre class="highlight"><code><span class="gp">&gt;&gt;&gt; </span>dweepy.get_latest_dweet_for<span class="o">(</span><span class="s1">'ha-sensor'</span><span class="o">)</span>
<span class="o">[{</span><span class="s1">'thing'</span>: <span class="s1">'ha-sensor'', '</span>created<span class="s1">': '</span>2015-12-10T09:43:31.133Z<span class="s1">', '</span>content<span class="s1">': {'</span>humidity<span class="s1">': 65, '</span>temperature<span class="s1">': 40}}]
</span></code></pre>

View file

@ -76,7 +76,7 @@
<hr class="divider">
<p>The <code class="highlighter-rouge">vera</code> platform allows you to get data from your <a href="http://getvera.com/">Vera</a> sensors from within Home Assistant.</p>
<p>They will be automatically discovered if the vera component is loaded.</p>
<p>Please note that some vera sensors (such as <em>motion</em> and <em>flood</em> sensors) are <em>armable</em> which means that vera will send alerts (email messages ot txts) when they are <em>armed</em> an change state.</p>
<p>Please note that some vera sensors (such as <em>motion</em> and <em>flood</em> sensors) are <em>armable</em> which means that vera will send alerts (email messages to txts) when they are <em>armed</em> an change state.</p>
<p>Home Assistant will display the state of these sensors regardless of the <em>armed</em> state.</p>
<p>To allow you to change the <em>armed state</em> - Home Assistant will create a switch as well as a sensor for each <em>Armable</em> sensor. You can hide these switches using customization if you wish.</p>
</article>

View file

@ -94,11 +94,11 @@
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s">run_set_ac</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">state</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_slider.ac_temperature</span>
<span class="s">entity_id</span><span class="pi">:</span> <span class="s">input_number.ac_temperature</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">shell_command.set_ac_to_slider</span>
<span class="s">input_slider</span><span class="pi">:</span>
<span class="s">input_number</span><span class="pi">:</span>
<span class="s">ac_temperature</span><span class="pi">:</span>
<span class="s">name</span><span class="pi">:</span> <span class="s">A/C Setting</span>
<span class="s">initial</span><span class="pi">:</span> <span class="s">24</span>
@ -108,7 +108,7 @@
<span class="s">shell_command</span><span class="pi">:</span>
<span class="s">set_ac_to_slider</span><span class="pi">:</span> <span class="s1">'</span><span class="s">irsend</span><span class="nv"> </span><span class="s">SEND_ONCE</span><span class="nv"> </span><span class="s">DELONGHI</span><span class="nv"> </span><span class="s">AC_{{</span><span class="nv"> </span><span class="s">states.input_slider.ac_temperature.state</span><span class="nv"> </span><span class="s">}}_AUTO'</span>
<span class="s">set_ac_to_slider</span><span class="pi">:</span> <span class="s1">'</span><span class="s">irsend</span><span class="nv"> </span><span class="s">SEND_ONCE</span><span class="nv"> </span><span class="s">DELONGHI</span><span class="nv"> </span><span class="s">AC_{{</span><span class="nv"> </span><span class="s">states.input_number.ac_temperature.state</span><span class="nv"> </span><span class="s">}}_AUTO'</span>
</code></pre>
</div>
@ -149,10 +149,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -153,10 +153,10 @@
<a href='/components/input_datetime/'>Input Datetime</a>
</li>
<li>
<a href='/components/input_select/'>Input Select</a>
<a href='/components/input_number/'>Input Number</a>
</li>
<li>
<a href='/components/input_slider/'>Input Slider</a>
<a href='/components/input_select/'>Input Select</a>
</li>
<li>
<a href='/components/input_text/'>Input Text</a>

View file

@ -88,7 +88,7 @@
<li><strong>language</strong> (<em>Optional</em>): The language to use. Defaults to <code class="highlighter-rouge">en-US</code>. Supported <code class="highlighter-rouge">en-US</code>, <code class="highlighter-rouge">ru-RU</code>, <code class="highlighter-rouge">uk-UK</code>, <code class="highlighter-rouge">tr-TR</code>.</li>
<li><strong>codec</strong> (<em>Optional</em>): Audio codec. Default is <code class="highlighter-rouge">mp3</code>. Supported us <code class="highlighter-rouge">mp3</code>, <code class="highlighter-rouge">wav</code>, <code class="highlighter-rouge">opus</code>.</li>
<li><strong>voice</strong> (<em>Optional</em>): Speaker voice. Default is <code class="highlighter-rouge">zahar</code>. Supported female voices are <code class="highlighter-rouge">jane</code>, <code class="highlighter-rouge">oksana</code>, <code class="highlighter-rouge">alyss</code>, <code class="highlighter-rouge">omazh</code> and male voices are <code class="highlighter-rouge">zahar</code> and <code class="highlighter-rouge">ermil</code>.</li>
<li><strong>emotion</strong> (<em>Optional</em>): Speaker emotional intonation. Default is <code class="highlighter-rouge">neutral</code>. Also supported are <code class="highlighter-rouge">good</code> (freindly) and <code class="highlighter-rouge">evil</code> (angry)</li>
<li><strong>emotion</strong> (<em>Optional</em>): Speaker emotional intonation. Default is <code class="highlighter-rouge">neutral</code>. Also supported are <code class="highlighter-rouge">good</code> (friendly) and <code class="highlighter-rouge">evil</code> (angry)</li>
<li><strong>speed</strong> (<em>Optional</em>): Speech speed. Default value is <code class="highlighter-rouge">1</code>. Highest speed is <code class="highlighter-rouge">3</code> and lowest <code class="highlighter-rouge">0,1</code></li>
</ul>
<p>Please check the <a href="https://tech.yandex.com/speechkit/cloud/doc/guide/concepts/tts-http-request-docpage/">API documentation</a> for details. It seems that the English version of documentation is outdated. You could request an API key <a href="https://tech.yandex.com/speechkit/cloud/">by email</a> or <a href="https://developer.tech.yandex.ru/">online</a>.</p>