Skip to content

Commit b264571

Browse files
committed
Site updated at 2016-08-18 05:59:12 UTC
1 parent 839e9b5 commit b264571

File tree

22 files changed

+107
-101
lines changed

22 files changed

+107
-101
lines changed

atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Home Assistant]]></title>
55
<link href="https://home-assistant.io/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/community/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Community | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/community/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/device-tracking/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Device-Tracking | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/device-tracking/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/esp8266/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: ESP8266 | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/esp8266/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/how-to/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: How-To | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/ibeacons/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: iBeacons | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/ibeacons/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/internet-of-things/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Internet-of-Things | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/internet-of-things/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/iot-data/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: IoT-Data | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/iot-data/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/mqtt/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: MQTT | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/mqtt/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/organisation/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Organisation | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/organisation/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/owntracks/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: OwnTracks | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/owntracks/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/presence-detection/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Presence-Detection | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/presence-detection/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/public-service-announcement/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Public-Service-Announcement | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/public-service-announcement/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/release-notes/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Release-Notes | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/release-notes/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/survey/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Survey | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/survey/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/talks/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Talks | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/talks/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/technology/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Technology | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/technology/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/user-stories/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: User-Stories | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/user-stories/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/video/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Video | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/video/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/website/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Website | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/website/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-08-18T05:52:47+00:00</updated>
7+
<updated>2016-08-18T05:58:03+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

components/input_slider/index.html

Lines changed: 72 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -115,79 +115,85 @@ <h1 class="title indent">
115115
<li><strong>step</strong> (<em>Optional</em>): Step value for the slider.</li>
116116
</ul>
117117

118-
<h1>Automation Examples</h1>
118+
<h2><a class="title-link" name="automation-examples" href="#automation-examples"></a> Automation Examples</h2>
119119

120120
<p>Here’s an example of <code>input_slider</code> being used as a trigger in an automation.</p>
121121

122-
<pre><code>
123-
# Example configuration.yaml entry using 'input_slider' as a trigger in an automation
124-
125-
# Define input_slider
126-
input_slider:
127-
bedroom_brightness:
128-
name: Brightness
129-
initial: 254
130-
min: 0
131-
max: 254
132-
step: 1
133-
134-
# Automation.
135-
automation:
136-
- alias: Bedroom Light - Adjust Brightness
137-
trigger:
138-
platform: state
139-
entity_id: input_slider.bedroom_brightness
140-
action:
141-
- service: light.turn_on
142-
# Note the use of 'data_template:' below rather than the normal 'data:' if you weren't using an input variable
143-
data_template:
144-
entity_id: light.bedroom
145-
brightness: '{{ trigger.to_state.state | int }}'
146-
147-
</code></pre>
122+
<div class="highlighter-coderay"><div class="CodeRay">
123+
<div class="code"><pre>
124+
<span class="comment"># Example configuration.yaml entry using 'input_slider' as a trigger in an automation</span>
125+
126+
<span class="comment"># Define input_slider</span>
127+
<span class="key">input_slider</span>:
128+
<span class="key">bedroom_brightness</span>:
129+
<span class="key">name</span>: <span class="string"><span class="content">Brightness</span></span>
130+
<span class="key">initial</span>: <span class="string"><span class="content">254</span></span>
131+
<span class="key">min</span>: <span class="string"><span class="content">0</span></span>
132+
<span class="key">max</span>: <span class="string"><span class="content">254</span></span>
133+
<span class="key">step</span>: <span class="string"><span class="content">1</span></span>
134+
135+
<span class="comment"># Automation. </span>
136+
<span class="key">automation</span>:
137+
- <span class="string"><span class="content">alias: Bedroom Light - Adjust Brightness</span></span>
138+
<span class="key">trigger</span>:
139+
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
140+
<span class="key">entity_id</span>: <span class="string"><span class="content">input_slider.bedroom_brightness</span></span>
141+
<span class="key">action</span>:
142+
- <span class="string"><span class="content">service: light.turn_on</span></span>
143+
<span class="comment"># Note the use of 'data_template:' below rather than the normal 'data:' if you weren't using an input variable</span>
144+
<span class="key">data_template</span>:
145+
<span class="key">entity_id</span>: <span class="string"><span class="content">light.bedroom</span></span>
146+
<span class="key">brightness</span>: <span class="string"><span class="content">'{{ trigger.to_state.state | int }}'</span></span>
147+
148+
</pre></div>
149+
</div>
150+
</div>
148151

149152
<p>Another code example using <code>input_slider</code>, this time being used in an action in an automation.</p>
150153

151-
<pre><code>
152-
# Example configuration.yaml entry using 'input_slider' in an action in an automation
153-
154-
# Define 'input_select'
155-
input_select:
156-
scene_bedroom:
157-
name: Scene
158-
options:
159-
- Select
160-
- Concentrate
161-
- Energize
162-
- Reading
163-
- Relax
164-
- 'OFF'
165-
initial: 'Select'
154+
<div class="highlighter-coderay"><div class="CodeRay">
155+
<div class="code"><pre>
156+
<span class="comment"># Example configuration.yaml entry using 'input_slider' in an action in an automation</span>
157+
158+
<span class="comment"># Define 'input_select'</span>
159+
<span class="key">input_select</span>:
160+
<span class="key">scene_bedroom</span>:
161+
<span class="key">name</span>: <span class="string"><span class="content">Scene</span></span>
162+
<span class="key">options</span>:
163+
- <span class="string"><span class="content">Select</span></span>
164+
- <span class="string"><span class="content">Concentrate</span></span>
165+
- <span class="string"><span class="content">Energize</span></span>
166+
- <span class="string"><span class="content">Reading</span></span>
167+
- <span class="string"><span class="content">Relax</span></span>
168+
- <span class="string"><span class="content">'OFF'</span></span>
169+
<span class="key">initial</span>: <span class="string"><span class="content">'Select'</span></span>
166170

167-
# Define input_slider
168-
input_slider:
169-
bedroom_brightness:
170-
name: Brightness
171-
initial: 254
172-
min: 0
173-
max: 254
174-
step: 1
175-
176-
# Automation.
177-
automation:
178-
- alias: Bedroom Light - Custom
179-
trigger:
180-
platform: state
181-
entity_id: input_select.scene_bedroom
182-
to: CUSTOM
183-
action:
184-
- service: light.turn_on
185-
# Again, note the use of 'data_template:' rather than the normal 'data:' if you weren't using an input variable.
186-
data_template:
187-
entity_id: light.bedroom
188-
brightness: '{{ states.input_slider.bedroom_brightness.state | int }}'
189-
190-
</code></pre>
171+
<span class="comment"># Define input_slider</span>
172+
<span class="key">input_slider</span>:
173+
<span class="key">bedroom_brightness</span>:
174+
<span class="key">name</span>: <span class="string"><span class="content">Brightness</span></span>
175+
<span class="key">initial</span>: <span class="string"><span class="content">254</span></span>
176+
<span class="key">min</span>: <span class="string"><span class="content">0</span></span>
177+
<span class="key">max</span>: <span class="string"><span class="content">254</span></span>
178+
<span class="key">step</span>: <span class="string"><span class="content">1</span></span>
179+
180+
<span class="comment"># Automation. </span>
181+
<span class="key">automation</span>:
182+
- <span class="string"><span class="content">alias: Bedroom Light - Custom</span></span>
183+
<span class="key">trigger</span>:
184+
<span class="key">platform</span>: <span class="string"><span class="content">state</span></span>
185+
<span class="key">entity_id</span>: <span class="string"><span class="content">input_select.scene_bedroom</span></span>
186+
<span class="key">to</span>: <span class="string"><span class="content">CUSTOM</span></span>
187+
<span class="key">action</span>:
188+
- <span class="string"><span class="content">service: light.turn_on</span></span>
189+
<span class="comment"># Again, note the use of 'data_template:' rather than the normal 'data:' if you weren't using an input variable.</span>
190+
<span class="key">data_template</span>:
191+
<span class="key">entity_id</span>: <span class="string"><span class="content">light.bedroom</span></span>
192+
<span class="key">brightness</span>: <span class="string"><span class="content">'{{ states.input_slider.bedroom_brightness.state | int }}'</span></span>
193+
194+
</pre></div>
195+
</div>
196+
</div>
191197

192198

193199

0 commit comments

Comments
 (0)