smart-nodes
Version:
76 lines (72 loc) • 3.04 kB
HTML
<script type="text/html" data-help-name="smart_delay">
<p>This node can be used to delay an on or off signal.</p>
<p>The time 0 means no delay.</p>
<p>
<b>Note:</b> Smart Nodes use topics in the format <code>name#number</code>, so that different Smart Nodes can be controlled with the same topic.<br />
This node only uses the part <code>name</code>. <code>#</code> and <code>number</code> are optional.
</p>
<p>
The following topics are accepted:
<table>
<thead>
<tr>
<th>Topic</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>set_delay_on</code></td>
<td>Sets the on delay to the time specified in <code>msg.payload</code>.</td>
</tr>
<tr>
<td><code>set_delay_off</code></td>
<td>Sets the off delay to the time specified in <code>msg.payload</code>.</td>
</tr>
<tr>
<td><code>set_delays</code></td>
<td>Sets the on and off delay to the time specified in <code>msg.payload</code> Time.</td>
</tr>
</tbody>
</table>
</p>
<p>
Example: <code>msg = { "topic": "set_delay_on", "payload": 5000 }</code> or <code>msg = { "topic": "set_delay_on", "payload": "5s" }</code><br />
This message sets the power-on delay to 5000 milliseconds / 5 seconds.
If the time is set to 0, the message is forwarded immediately.<br />
The following values can be used as a unit for time:
<table>
<thead>
<tr>
<th>Unit</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>ms</code> (default)</td>
<td>Milliseconds</td>
</tr>
<tr>
<td><code>s</code> or <code>sec</code></td>
<td>Seconds</td>
</tr>
<tr>
<td><code>m</code> or <code>min</code></td>
<td>Mintun.</td>
</tr>
<tr>
<td><code>h</code></td>
<td>Hours</td>
</tr>
</tbody>
</table>
</p>
<p>
If the checkbox <b>Only delay if <code>msg.payload</code> has changed.</b> is activated
and a shutdown signal is received while waiting to forward a power-on signal,
the sending of the power-on signal is aborted. This also applies in the opposite case.<br />
If the checkbox is not activated, every message is delayed unless a delay is already active for the same
<code>payload</code>.
</p>
</script>