Site updated at 2017-09-19 14:52:40 UTC

This commit is contained in:
Travis CI 2017-09-19 14:52:40 +00:00
parent 1c09166621
commit 5badcdcc25
29 changed files with 86 additions and 71 deletions

View file

@ -91,7 +91,6 @@ You can manually rename the created entities by using Home Assistants <a href="h
<li><strong>hosts</strong> (<em>Required</em>): Configuration for each host to integrate into Home Assistant.</li>
<li><strong>local_ip</strong> (<em>Optional</em>): IP of device running Home Assistant. Override autodetected value for exotic network setups.</li>
<li><strong>local_port</strong> (<em>Optional</em>): Port for connection with Home Assistant. By default it is randomly assigned.</li>
<li><strong>delay</strong> (<em>Optional</em>): [Float] Delay fetching of current state per device on startup. Used to prevent overloading of the CCU. Defaults to 0.5.</li>
</ul>
<p>Configuration variables (host):</p>
<ul>
@ -107,7 +106,6 @@ You can manually rename the created entities by using Home Assistants <a href="h
</ul>
<h4>Example configuration with multiple protocols and some other options set:</h4>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="s">homematic</span><span class="pi">:</span>
<span class="s">delay</span><span class="pi">:</span> <span class="s">1.0</span>
<span class="s">hosts</span><span class="pi">:</span>
<span class="s">rf</span><span class="pi">:</span>
<span class="s">ip</span><span class="pi">:</span> <span class="s">127.0.0.1</span>

View file

@ -74,13 +74,13 @@
</h1>
</header>
<hr class="divider">
<p><a href="https://ifttt.com">IFTTT</a> is a web service that allows users to create chains of simple conditional statements, so called “Applets”. With the IFTTT component you can trigger applets through the <strong>“Maker”</strong> channel. See the <a href="/blog/2015/09/13/home-assistant-meets-ifttt/">announcement blog post</a> for examples how to use it.</p>
<p><a href="https://ifttt.com">IFTTT</a> is a web service that allows users to create chains of simple conditional statements, so called “Applets”. With the IFTTT component you can trigger applets through the <strong>Webhooks”</strong> service (which was previously the <strong>Maker”</strong> channel). See the <a href="/blog/2015/09/13/home-assistant-meets-ifttt/">announcement blog post</a> for examples how to use it.</p>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</span>
<span class="s">ifttt</span><span class="pi">:</span>
<span class="s">key</span><span class="pi">:</span> <span class="s">xxxxx-x-xxxxxxxxxxxxx</span>
<span class="s">key</span><span class="pi">:</span> <span class="s">xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</span>
</code></pre>
</div>
<p><code class="highlighter-rouge">key</code> is your API key which can be obtained by viewing the <strong>Settings</strong> of the <a href="https://ifttt.com/services/maker_webhooks/settings">Maker Channel</a>. Its the last part of the URL (e.g. https://maker.ifttt.com/use/MYAPIKEY) you will find under <strong>Settings</strong> &gt; <strong>Account Info</strong>.</p>
<p><code class="highlighter-rouge">key</code> is your API key which can be obtained by viewing the <strong>Settings</strong> of the <a href="https://ifttt.com/services/maker_webhooks/settings">Webhooks applet</a>. Its the last part of the URL (e.g. https://maker.ifttt.com/use/MYAPIKEY) you will find under <strong>My Applets</strong> &gt; <strong>Webhooks</strong> &gt; <strong>Settings</strong>.</p>
<p class="img">
<img src="/images/components/ifttt/finding_key.png" />
Property screen of the Maker Channel
@ -90,7 +90,7 @@ Property screen of the Maker Channel
After restarting the server, be sure to watch the console for any logging errors that show up in red, white or yellow.
</p>
<h3><a class="title-link" name="testing-your-trigger" href="#testing-your-trigger"></a> Testing your trigger</h3>
<p>You can use the <strong>Developer tools</strong> to test your <a href="https://ifttt.com/maker">Maker Channel</a> trigger. To do this, open the Home Assistant frontend, open the sidebar, click on the first icon in the developer tools. This should get you to the <strong>Call Service</strong> screen. Fill in the following values:</p>
<p>You can use the <strong>Developer tools</strong> to test your <a href="https://ifttt.com/maker_webhooks">Webhooks</a> trigger. To do this, open the Home Assistant frontend, open the sidebar, click on the first icon in the developer tools. This should get you to the <strong>Call Service</strong> screen. Fill in the following values:</p>
<table>
<thead>
<tr>

View file

@ -137,6 +137,23 @@
<span class="pi">-</span> <span class="s">upload</span>
</code></pre>
</div>
<h3><a class="title-link" name="using-as-a-trigger-in-an-automation" href="#using-as-a-trigger-in-an-automation"></a> Using as a trigger in an automation</h3>
<div class="language-yaml highlighter-rouge"><pre class="highlight"><code><span class="c1"># Example configuration.yaml entry</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="s1">'</span><span class="s">Internet</span><span class="nv"> </span><span class="s">Speed</span><span class="nv"> </span><span class="s">Glow</span><span class="nv"> </span><span class="s">Connect</span><span class="nv"> </span><span class="s">Great'</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">template</span>
<span class="s">value_template</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">states.sensor.speedtest_download.state|float</span><span class="nv"> </span><span class="s">&gt;</span><span class="nv"> </span><span class="s">10}}'</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">shell_command.green</span>
<span class="pi">-</span> <span class="s">alias</span><span class="pi">:</span> <span class="s1">'</span><span class="s">Internet</span><span class="nv"> </span><span class="s">Speed</span><span class="nv"> </span><span class="s">Glow</span><span class="nv"> </span><span class="s">Connect</span><span class="nv"> </span><span class="s">Poor'</span>
<span class="s">trigger</span><span class="pi">:</span>
<span class="s">platform</span><span class="pi">:</span> <span class="s">template</span>
<span class="s">value_template</span><span class="pi">:</span> <span class="s1">'</span><span class="s">{{</span><span class="nv"> </span><span class="s">states.sensor.speedtest_download.state|</span><span class="nv"> </span><span class="s">float</span><span class="nv"> </span><span class="s">&lt;</span><span class="nv"> </span><span class="s">10</span><span class="nv"> </span><span class="s">}}'</span>
<span class="s">action</span><span class="pi">:</span>
<span class="s">service</span><span class="pi">:</span> <span class="s">shell_command.red</span>
</code></pre>
</div>
<h2><a class="title-link" name="notes" href="#notes"></a> Notes</h2>
<ul>
<li>When running on Raspberry Pi, just note that the maximum speed is limited by its 100 Mbit/s LAN adapter.</li>