Site updated at 2016-08-22 08:21:42 UTC

This commit is contained in:
Travis CI 2016-08-22 08:21:43 +00:00
parent f9d65cbe57
commit 4acb07bf8e
559 changed files with 18878 additions and 21688 deletions

View file

@ -92,18 +92,16 @@
<p>Keeps track which switches are in your environment, their state and allows you to control them.</p>
<ul>
<li>Maintains a state per switch and a combined state <code>all_switches</code>.</li>
<li>Registers services <code>switch/turn_on</code>, <code>switch/turn_off</code>, and <code>switch/toggle</code> to control switches.</li>
<li>Maintains a state per switch and a combined state <code class="highlighter-rouge">all_switches</code>.</li>
<li>Registers services <code class="highlighter-rouge">switch/turn_on</code>, <code class="highlighter-rouge">switch/turn_off</code>, and <code class="highlighter-rouge">switch/toggle</code> to control switches.</li>
</ul>
<h3><a class="title-link" name="use-the-services" href="#use-the-services"></a> Use the services</h3>
<p>Go the the <strong>Developer Tools</strong>, then to <strong>Call Service</strong> in the frontend, and choose <code>switch/turn_on</code> or <code>switch/turn_off</code> from the list of available services (<strong>Available services:</strong> on the left). Enter something like the sample below into the <strong>Service Data</strong> field and hit <strong>CALL SERVICE</strong>.</p>
<p>Go the the <strong>Developer Tools</strong>, then to <strong>Call Service</strong> in the frontend, and choose <code class="highlighter-rouge">switch/turn_on</code> or <code class="highlighter-rouge">switch/turn_off</code> from the list of available services (<strong>Available services:</strong> on the left). Enter something like the sample below into the <strong>Service Data</strong> field and hit <strong>CALL SERVICE</strong>.</p>
<div class="highlighter-coderay"><div class="CodeRay">
<div class="code"><pre>{<span class="key"><span class="delimiter">&quot;</span><span class="content">entity_id</span><span class="delimiter">&quot;</span></span>:<span class="string"><span class="delimiter">&quot;</span><span class="content">livingroom_pin2</span><span class="delimiter">&quot;</span></span>}
</pre></div>
</div>
<div class="language-json highlighter-rouge"><pre class="highlight"><code><span class="p">{</span><span class="nt">"entity_id"</span><span class="p">:</span><span class="s2">"livingroom_pin2"</span><span class="p">}</span><span class="w">
</span></code></pre>
</div>
<table>
@ -116,7 +114,7 @@
</thead>
<tbody>
<tr>
<td><code>entity_id</code></td>
<td><code class="highlighter-rouge">entity_id</code></td>
<td>yes</td>
<td>Only act on specific switch. Else targets all.</td>
</tr>