Site updated at 2015-09-13 17:20:16 UTC

This commit is contained in:
Paulus Schoutsen 2015-09-13 10:20:16 -07:00
parent 8c6ee3c712
commit f9dcacafcb
53 changed files with 1803 additions and 656 deletions

View file

@ -4,7 +4,7 @@
<title><![CDATA[Category: how-to | Home Assistant]]></title>
<link href="https://home-assistant.io/blog/categories/how-to/atom.xml" rel="self"/>
<link href="https://home-assistant.io/"/>
<updated>2015-09-12T18:24:29-07:00</updated>
<updated>2015-09-13T10:20:01-07:00</updated>
<id>https://home-assistant.io/</id>
<author>
<name><![CDATA[Paulus Schoutsen]]></name>
@ -13,6 +13,203 @@
<generator uri="http://octopress.org/">Octopress</generator>
<entry>
<title type="html"><![CDATA[Home Assistant meets IFTTT]]></title>
<link href="https://home-assistant.io/blog/2015/09/13/home-assistant-meets-ifttt/"/>
<updated>2015-09-13T09:28:00-07:00</updated>
<id>https://home-assistant.io/blog/2015/09/13/home-assistant-meets-ifttt</id>
<content type="html"><![CDATA[<p>Today we announce the release of Home Assistant v0.7.2 which includes brand new support by
<a href="https://github.com/sfam">@sfam</a> to integrate with <a href="https://ifttt.com">IFTTT</a>. IFTTT stands for If This, Then That and is a
webservice that integrates with almost every possible webservice out there. Adding Home
Assistant to this mix means Home Assistant connects with all these.</p>
<p class='img'>
<img src='https://home-assistant.io/images/blog/2015-09-ifttt/splash.png'>
</p>
<p>It is now possible to disable your irregation system if it is going to be cloudy tomorrow or tweet
if your smoke alarm goes off. Click the read more button for some example recipes.</p>
<p>IFTTT integration requires your Home Assistant instance to be accessible from the web. This can be
achieved by forwarding the port from your router to the device running Home Assistant. If your ISP
is giving you a new IP address from time to time, consider using <a href="https://duckdns.org">DuckDNS</a>.</p>
<!--more-->
<p>In each of the following examples, make sure to replace the XXX in the url with your correct
host address and api password.</p>
<h2><a class='title-link' name='turn-off-irregation-system-when-not-needed' href='#turn-off-irregation-system-when-not-needed'></a> Turn off irregation system when not needed </h2>
<p class='img'>
<img src='https://home-assistant.io/images/blog/2015-09-ifttt/recipe-weather.png' />
</p>
<p>Maker channel setup:</p>
<table>
<thead>
<tr>
<th> Field </th>
<th> Value </th>
</tr>
</thead>
<tbody>
<tr>
<td> URL </td>
<td> <a href="http://xxx.xxx.xxx.xxx:8123/api/services/switch/turn_off?api_password=xxxxxxxx">http://xxx.xxx.xxx.xxx:8123/api/services/switch/turn_off?api_password=xxxxxxxx</a></td>
</tr>
<tr>
<td> METHOD </td>
<td> POST</td>
</tr>
<tr>
<td> CONTENT TYPE </td>
<td> application/json</td>
</tr>
<tr>
<td> BODY </td>
<td> { &ldquo;entity_id&rdquo;: &ldquo;switch.irrigation&rdquo; }</td>
</tr>
</tbody>
</table>
<h2><a class='title-link' name='tweet-when-important-events-happen' href='#tweet-when-important-events-happen'></a> Tweet when important events happen </h2>
<p class='img'>
<img src='https://home-assistant.io/images/blog/2015-09-ifttt/recipe-twitter.png' />
</p>
<p>This will tweet a message when a MQTT message is received that the smoke alarm has been triggered.
Setup Maker channel with event name <code>HA_FIRE_ALARM</code> and Twitter channel to tweet the message in
<code>value1</code>.</p>
<pre><code class="yaml"># Configuration.yaml entry
automation:
alias: Post a tweet when fire alarm is triggered
platform: mqtt
mqtt_topic: home/alarm/fire
mqtt_payload: 'on'
execute_service: ifttt.trigger
service_data: {"event":"HA_FIRE_ALARM", "value1":"The fire alarm just triggered!"}
</code></pre>
<h2><a class='title-link' name='turn-on-lights-when-i-get-home' href='#turn-on-lights-when-i-get-home'></a> Turn on lights when I get home </h2>
<p class='img'>
<img src='https://home-assistant.io/images/blog/2015-09-ifttt/recipe-geo.png' />
</p>
<p>Maker channel setup:</p>
<table>
<thead>
<tr>
<th> Field </th>
<th> Value </th>
</tr>
</thead>
<tbody>
<tr>
<td> URL </td>
<td> <a href="http://xxx.xxx.xxx.xxx:8123/api/services/light/turn_on?api_password=xxxxxxxx">http://xxx.xxx.xxx.xxx:8123/api/services/light/turn_on?api_password=xxxxxxxx</a></td>
</tr>
<tr>
<td> METHOD </td>
<td> POST</td>
</tr>
<tr>
<td> CONTENT TYPE </td>
<td> application/json</td>
</tr>
<tr>
<td> BODY </td>
<td> { &ldquo;entity_id&rdquo;: &ldquo;light.kitchen&rdquo; }</td>
</tr>
</tbody>
</table>
<h2><a class='title-link' name='flash-lights-when-a-new-pr-comes-in-for-home-assistant' href='#flash-lights-when-a-new-pr-comes-in-for-home-assistant'></a> Flash lights when a new PR comes in for Home Assistant </h2>
<p class='img'>
<img src='https://home-assistant.io/images/blog/2015-09-ifttt/recipe-github.png' />
</p>
<p>Maker channel setup:</p>
<table>
<thead>
<tr>
<th> Field </th>
<th> Value </th>
</tr>
</thead>
<tbody>
<tr>
<td> URL </td>
<td> <a href="http://xxx.xxx.xxx.xxx:8123/api/services/light/turn_on?api_password=xxxxxxxx">http://xxx.xxx.xxx.xxx:8123/api/services/light/turn_on?api_password=xxxxxxxx</a></td>
</tr>
<tr>
<td> METHOD </td>
<td> POST</td>
</tr>
<tr>
<td> CONTENT TYPE </td>
<td> application/json</td>
</tr>
<tr>
<td> BODY </td>
<td> { &ldquo;entity_id&rdquo;: &ldquo;group.all_lights&rdquo;, &ldquo;flash&rdquo;:&ldquo;yes&rdquo; }</td>
</tr>
</tbody>
</table>
<h2><a class='title-link' name='fire-events-when-pressing-the-do-button' href='#fire-events-when-pressing-the-do-button'></a> Fire events when pressing the DO button </h2>
<p class='img'>
<img src='https://home-assistant.io/images/blog/2015-09-ifttt/recipe-do.png' />
</p>
<p>Maker channel setup:</p>
<table>
<thead>
<tr>
<th> Field </th>
<th> Value </th>
</tr>
</thead>
<tbody>
<tr>
<td> URL </td>
<td> <a href="http://xxx.xxx.xxx.xxx:8123/api/events/do_button_pressed?api_password=xxxxxxxx">http://xxx.xxx.xxx.xxx:8123/api/events/do_button_pressed?api_password=xxxxxxxx</a></td>
</tr>
<tr>
<td> METHOD </td>
<td> POST</td>
</tr>
<tr>
<td> CONTENT TYPE </td>
<td> application/json</td>
</tr>
</tbody>
</table>
]]></content>
</entry>
<entry>
<title type="html"><![CDATA[Using MQTT with Home Assistant]]></title>
<link href="https://home-assistant.io/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/"/>

View file

@ -114,6 +114,45 @@
<article>
<div class="grid">
<div class="grid__item one-fifth palm-one-whole">
<time datetime="2015-09-13T09:28:00-07:00" pubdate>
<span class='month'>Sep</span> <span class='day'>13</span>
</time>
</div>
<div class="grid__item four-fifths palm-one-whole">
<h1 class="gamma"><a href="/blog/2015/09/13/home-assistant-meets-ifttt/">Home Assistant meets IFTTT</a></h1>
<footer class="meta">
<span>
<i class="icon-tags"></i>
<ul class="tags unstyled">
<li><a class='category' href='/blog/categories/how-to/'>how-to</a></li>
<li><a class='category' href='/blog/categories/release-notes/'>release-notes</a></li>
</ul>
</span>
</footer>
<hr class="divider">
</div>
</div>
</article>
<article>
<div class="grid">
<div class="grid__item one-fifth palm-one-whole">
@ -206,6 +245,12 @@
<ul class="divided">
<li class="post">
<a href="/blog/2015/09/13/home-assistant-meets-ifttt/">Home Assistant meets IFTTT</a>
</li>
<li class="post">
<a href="/blog/2015/09/11/different-ways-to-use-mqtt-with-home-assistant/">Using MQTT with Home Assistant</a>
</li>
@ -229,12 +274,6 @@
</li>
<li class="post">
<a href="/blog/2015/08/09/mqtt-raspberry-pi-squeezebox-asuswrt-support/">MQTT, Rasperry PI, Logitech Squeezebox and ASUSWRT routers now supported</a>
</li>
</ul>
</section>