Skip to content

Commit 6641d11

Browse files
committed
Site updated at 2016-12-18 08:57:56 UTC
1 parent 2d2e1f5 commit 6641d11

File tree

23 files changed

+70
-36
lines changed

23 files changed

+70
-36
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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

blog/categories/micropython/atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<title><![CDATA[Category: Micropython | Home Assistant]]></title>
55
<link href="https://home-assistant.io/blog/categories/micropython/atom.xml" rel="self"/>
66
<link href="https://home-assistant.io/"/>
7-
<updated>2016-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+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-12-18T08:45:43+00:00</updated>
7+
<updated>2016-12-18T08:55:48+00:00</updated>
88
<id>https://home-assistant.io/</id>
99
<author>
1010
<name><![CDATA[Home Assistant]]></name>

components/switch.wake_on_lan/index.html

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ <h1 class="title indent">
9494

9595
<p class="note warning">
9696
The WOL switch can only turn on your computer and monitor the state. There is no universal way to turn off a computer remotely. The <code class="highlighter-rouge">turn_off</code> variable is there to help you call a script when you have figured out how to remotely turn off your computer.
97+
See below for suggestions on how to do this.
9798
</p>
9899

99100
<p>To enable this switch in your installation, add the following to your <code class="highlighter-rouge">configuration.yaml</code> file:</p>
@@ -114,6 +115,39 @@ <h1 class="title indent">
114115
<li><strong>turn_off</strong> (<em>Optional</em>): Defines an <a href="/getting-started/automation/">action</a> to run when the switch is turned off.</li>
115116
</ul>
116117

118+
<h2><a class="title-link" name="examples" href="#examples"></a> Examples</h2>
119+
120+
<p>Here are some real life examples of how to use the <strong>turn_off</strong> variable.</p>
121+
122+
<h3><a class="title-link" name="suspending-linux" href="#suspending-linux"></a> Suspending linux</h3>
123+
<p>Suggested recipe for letting the turn_off script suspend a Linux computer (the <strong>target</strong>)
124+
from Home Assistant running on another Linux computer (the <strong>server</strong>).</p>
125+
126+
<ol>
127+
<li>On the <strong>server</strong>, log in as the user account Home Assistant is running under. (I’m using <code class="highlighter-rouge">hass</code> in this example)</li>
128+
<li>On the <strong>server</strong>, create ssh keys by running <code class="highlighter-rouge">ssh-keygen</code>. Just press enter on all questions.</li>
129+
<li>On the <strong>target</strong>, create a new account that Home Assistant can ssh into: <code class="highlighter-rouge">sudo adduser hass</code>. Just press enter on all questions except password. I recommend using the same user name as on the server. If you do, you can leave out <code class="highlighter-rouge">hass@</code> in the ssh commands below.</li>
130+
<li>On the <strong>server</strong>, transfer your public ssh key by <code class="highlighter-rouge">ssh-copy-id hass@TARGET</code> where TARGET is your target machine’s name or IP address. Enter the password you created in step 3.</li>
131+
<li>On the <strong>server</strong>, verify that you can reach your target machine without password by <code class="highlighter-rouge">ssh TARGET</code>.</li>
132+
<li>On the <strong>target</strong>, we need to let the hass user execute the program needed to suspend/shut down the target computer. I’m using <code class="highlighter-rouge">pm-suspend</code>, use <code class="highlighter-rouge">poweroff</code> to turn off the computer. First, get the full path: <code class="highlighter-rouge">which pm-suspend</code>. On my system, this is <code class="highlighter-rouge">/usr/sbin/pm-suspend</code>.</li>
133+
<li>On the <strong>target</strong>, using an account with sudo access (typically your main account), <code class="highlighter-rouge">sudo visudo</code>. Add this line last in the file: <code class="highlighter-rouge">hass ALL=NOPASSWD:/usr/sbin/pm-suspend</code>, where you replace <code class="highlighter-rouge">hass</code> with the name of your user on the target, if different, and <code class="highlighter-rouge">/usr/sbin/pm-suspend</code> with the command of your choice, if different.</li>
134+
<li>On the <strong>server</strong>, add the following to your configuration, replacing TARGET with the target’s name:
135+
``` yaml
136+
switch:
137+
<ul>
138+
<li>platform: wake_on_lan
139+
name: “TARGET”
140+
141+
turn_off:
142+
service: shell_command.turn_off_TARGET</li>
143+
</ul>
144+
</li>
145+
</ol>
146+
147+
<p>shell_command:
148+
turn_off_TARGET: ‘ssh hass@TARGET sudo pm-suspend’
149+
```</p>
150+
117151

118152
</article>
119153

sitemap.xml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2462,62 +2462,62 @@
24622462
</url>
24632463
<url>
24642464
<loc>https://home-assistant.io/demo/frontend.html</loc>
2465-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2465+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
24662466
</url>
24672467
<url>
24682468
<loc>https://home-assistant.io/demo/index.html</loc>
2469-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2469+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
24702470
</url>
24712471
<url>
24722472
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-event.html</loc>
2473-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2473+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
24742474
</url>
24752475
<url>
24762476
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-info.html</loc>
2477-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2477+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
24782478
</url>
24792479
<url>
24802480
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-service.html</loc>
2481-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2481+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
24822482
</url>
24832483
<url>
24842484
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-state.html</loc>
2485-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2485+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
24862486
</url>
24872487
<url>
24882488
<loc>https://home-assistant.io/demo/panels/ha-panel-dev-template.html</loc>
2489-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2489+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
24902490
</url>
24912491
<url>
24922492
<loc>https://home-assistant.io/demo/panels/ha-panel-history.html</loc>
2493-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2493+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
24942494
</url>
24952495
<url>
24962496
<loc>https://home-assistant.io/demo/panels/ha-panel-iframe.html</loc>
2497-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2497+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
24982498
</url>
24992499
<url>
25002500
<loc>https://home-assistant.io/demo/panels/ha-panel-logbook.html</loc>
2501-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2501+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
25022502
</url>
25032503
<url>
25042504
<loc>https://home-assistant.io/demo/panels/ha-panel-map.html</loc>
2505-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2505+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
25062506
</url>
25072507
<url>
25082508
<loc>https://home-assistant.io/googlef4f3693c209fe788.html</loc>
2509-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2509+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
25102510
</url>
25112511
<url>
25122512
<loc>https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html</loc>
2513-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2513+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
25142514
</url>
25152515
<url>
25162516
<loc>https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html</loc>
2517-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2517+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
25182518
</url>
25192519
<url>
25202520
<loc>https://home-assistant.io/static/mdi-demo.html</loc>
2521-
<lastmod>2016-12-18T08:45:01+00:00</lastmod>
2521+
<lastmod>2016-12-18T08:55:08+00:00</lastmod>
25222522
</url>
25232523
</urlset>

0 commit comments

Comments
 (0)