Site updated at 2017-09-23 06:14:30 UTC
This commit is contained in:
parent
a675f41451
commit
9961fbdbbd
731 changed files with 9664 additions and 2684 deletions
|
@ -85,11 +85,10 @@
|
|||
<p>Configuration variables:</p>
|
||||
<ul>
|
||||
<li><strong>resource</strong> (<em>Required</em>): The resource or endpoint that contains the value.</li>
|
||||
<li><strong>name</strong> (<em>Optional</em>): Name of the REST switch.
|
||||
<ul>
|
||||
<li><strong>method</strong> (<em>Optional</em>): HTTP method to use (<code class="highlighter-rouge">post</code> or <code class="highlighter-rouge">put</code>). Defaults to <code class="highlighter-rouge">post</code>.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>name</strong> (<em>Optional</em>): Name of the REST switch.</li>
|
||||
<li><strong>method</strong> (<em>Optional</em>): HTTP method to use (<code class="highlighter-rouge">post</code> or <code class="highlighter-rouge">put</code>). Defaults to <code class="highlighter-rouge">post</code>.</li>
|
||||
<li><strong>username</strong> (<em>Optional</em>): The username for accessing the REST endpoint.</li>
|
||||
<li><strong>password</strong> (<em>Optional</em>): The password for accessing the REST endpoint.</li>
|
||||
<li><strong>body_on</strong> (<em>Optional</em>): The body of the POST request that commands the switch to become enabled. Default is “ON”. This value can be a <a href="/topics/templating/">template</a>.</li>
|
||||
<li><strong>body_off</strong> (<em>Optional</em>): The body of the POST request that commands the switch to become disabled. Default is “OFF”. This value can also be a <a href="/topics/templating/">template</a>.</li>
|
||||
<li><strong>is_on_template</strong> (<em>Optional</em>): A <a href="/docs/configuration/templating/#processing-incoming-data">template</a> that determines the state of the switch from the value returned by the GET request on the resource URL. This template should compute to a boolean (True or False). If the value is valid JSON, it will be available in the template as the variable <code class="highlighter-rouge">value_json</code>. Default is equivalent to <code class="highlighter-rouge">'{{ value_json == body_on }}'</code>. This means that by default, the state of the switch is on if and only if the response to the GET request matches .</li>
|
||||
|
@ -184,6 +183,9 @@ Make sure that the URL matches exactly your endpoint or resource.
|
|||
<li>
|
||||
<a href='/components/switch.digital_ocean/'>Digital Ocean Switch</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/switch.doorbird/'>DoorBird Switch</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/switch.edimax/'>Edimax Switch</a>
|
||||
</li>
|
||||
|
@ -289,6 +291,9 @@ Make sure that the URL matches exactly your endpoint or resource.
|
|||
<li>
|
||||
<a href='/components/switch.tellduslive/'>Telldus Live Switch</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/switch.telnet/'>Telnet Switch</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/switch.template/'>Template Switch</a>
|
||||
</li>
|
||||
|
@ -311,7 +316,7 @@ Make sure that the URL matches exactly your endpoint or resource.
|
|||
<a href='/components/switch.wink/'>Wink Switch</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/switch.xiaomi/'>Xiaomi Switch</a>
|
||||
<a href='/components/switch.xiaomi_aqara/'>Xiaomi Switch</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='/components/switch.zwave/'>Z-Wave Switch</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue