Site updated at 2016-08-28 21:01:41 UTC
This commit is contained in:
parent
46897be76e
commit
6e1ccd0e0f
22 changed files with 43 additions and 43 deletions
|
@ -98,10 +98,10 @@
|
|||
<span class="pi">-</span> <span class="s">platform</span><span class="pi">:</span> <span class="s">command_line</span>
|
||||
<span class="s">covers</span><span class="pi">:</span>
|
||||
<span class="s">Garage door</span><span class="pi">:</span>
|
||||
<span class="s">open_cmd</span><span class="pi">:</span> <span class="s">move_command up kitchen</span>
|
||||
<span class="s">close_cmd</span><span class="pi">:</span> <span class="s">move_command down kitchen</span>
|
||||
<span class="s">stop_cmd</span><span class="pi">:</span> <span class="s">move_command stop kitchen</span>
|
||||
<span class="s">state_cmd</span><span class="pi">:</span> <span class="s">state_command kitchen</span>
|
||||
<span class="s">opencmd</span><span class="pi">:</span> <span class="s">move_command up kitchen</span>
|
||||
<span class="s">closecmd</span><span class="pi">:</span> <span class="s">move_command down kitchen</span>
|
||||
<span class="s">stopcmd</span><span class="pi">:</span> <span class="s">move_command stop kitchen</span>
|
||||
<span class="s">statecmd</span><span class="pi">:</span> <span class="s">state_command kitchen</span>
|
||||
<span class="s">value_template</span><span class="pi">:</span> <span class="pi">></span>
|
||||
<span class="no">{% if value == 'open' %}</span>
|
||||
<span class="no">100</span>
|
||||
|
@ -119,10 +119,10 @@
|
|||
<ul>
|
||||
<li><strong>entry</strong> (<em>Required</em>): Name of the command line cover. Multiple entries are possible.
|
||||
<ul>
|
||||
<li><strong>open_cmd</strong> (<em>Required</em>): The command to open the cover.</li>
|
||||
<li><strong>close_cmd</strong> (<em>Required</em>): The action to close the cover.</li>
|
||||
<li><strong>stop_cmd</strong> (<em>Required</em>): The action to stop the cover.</li>
|
||||
<li><strong>state_cmd</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>opencmd</strong> (<em>Required</em>): The command to open the cover.</li>
|
||||
<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>
|
||||
</ul>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue