fhem.pl: add sleep with id / cancel (Forum #44747)

git-svn-id: https://svn.fhem.de/fhem/trunk@10024 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-11-28 08:02:51 +00:00
parent ea4041aa3c
commit 770e70ccf4
3 changed files with 71 additions and 5 deletions

View File

@@ -38,6 +38,7 @@
<a href="#attr">attr</a> &nbsp;
<a href="#backup">backup</a> &nbsp;
<a href="#CULflash">CULflash</a> &nbsp;
<a href="#cancel">cancel</a> &nbsp;
<a href="#cmdalias">cmdalias</a> &nbsp;
<a href="#configdb">configdb</a> &nbsp;
<a href="#copy">copy</a> &nbsp;
@@ -732,6 +733,15 @@ The following local attributes are used by a wider range of devices:
</ul>
</ul>
<a name="cancel"></a>
<h3>cancel</h3>
<ul>
<code>cancel [&lt;id&gt; [quiet]]</code>
<br><br>
Cancels a named <a href="#sleep">sleep</a>.
</ul>
<a name="define"></a>
<h3>define</h3>
<ul>
@@ -1250,13 +1260,16 @@ The following local attributes are used by a wider range of devices:
<a name="sleep"></a>
<h3>sleep</h3>
<ul>
<code>sleep &lt;sec&gt; [quiet]</code>
<code>sleep &lt;sec&gt; [&lt;id&gt;] [quiet]</code>
<br><br>
sleep followed by another command is comparable to a nameless <a
href="#at">at</a>, it executes the following commands after waiting the
specified time. The unit is seconds, with millisecond accuracy, as you can
specify decimal places.<br><br>
A sleep with an &lt;id&lt; will replace a sleep with the same &lt;id&lt;
and can be canceled by <a href="#cancel">cancel</a>.
When called in a notify/at/etc, then nonempty return values of the following
commands are logged to the global logfile with loglevel 2.<br> If quiet is
specified, then skip this logging.