Site updated at 2016-08-29 10:31:38 UTC

This commit is contained in:
Travis CI 2016-08-29 10:31:38 +00:00
parent 14da123b6d
commit 25c412a13a
22 changed files with 36 additions and 36 deletions

View file

@ -123,7 +123,7 @@
<li><strong>closecmd</strong> (<em>Required</em>): The action to close the cover.</li>
<li><strong>stopcmd</strong> (<em>Required</em>): The action to stop the cover.</li>
<li><strong>statecmd</strong> (<em>Optional</em>): If given, this will act as a sensor that runs in the background and updates the state of the cover. If the command returns a <code class="highlighter-rouge">0</code> the indicates the cover is fully closed, whereas a 100 indicates the cover is fully open.</li>
<li><strong>value_template</strong> (<em>optional - default: {{ value }}</em>): if specified, <code class="highlighter-rouge">state_cmd</code> will ignore the result code of the command but the template evaluating will indicate the position of the cover. For example, if your <code class="highlighter-rouge">state_cmd</code> returns a string “open”, using <code class="highlighter-rouge">value_template</code> as in the example config above will allow you to translate that into the valid state <code class="highlighter-rouge">100</code>.</li>
<li><strong>value_template</strong> (<em>optional - default: {{ value }}</em>): if specified, <code class="highlighter-rouge">statecmd</code> will ignore the result code of the command but the template evaluating will indicate the position of the cover. For example, if your <code class="highlighter-rouge">statecmd</code> returns a string “open”, using <code class="highlighter-rouge">value_template</code> as in the example config above will allow you to translate that into the valid state <code class="highlighter-rouge">100</code>.</li>
</ul>
</li>
</ul>