fhem.pl: sleep can now wait for an event (Forum #100306)
git-svn-id: https://svn.fhem.de/fhem/trunk@19374 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -737,7 +737,7 @@ The following local attributes are used by a wider range of devices:
|
||||
<ul>
|
||||
<code>cancel [<id> [quiet]]</code>
|
||||
<br><br>
|
||||
Cancels a named <a href="#sleep">sleep</a>.
|
||||
List named sleeps or cancel a named <a href="#sleep">sleep</a>.
|
||||
|
||||
</ul>
|
||||
<!-- cancel end -->
|
||||
@@ -1357,12 +1357,17 @@ The following local attributes are used by a wider range of devices:
|
||||
<a name="sleep"></a>
|
||||
<h3>sleep</h3>
|
||||
<ul>
|
||||
<code>sleep <sec> [<id>] [quiet]</code>
|
||||
<code>sleep <sec|timespec|regex> [<id>] [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>
|
||||
href="#at">at</a> or <a href="#notify">notify</a>, it executes the
|
||||
following commands after waiting for the specified time or an event matching
|
||||
<regex>. The delay can be given<ul>
|
||||
<li>in seconds, with millisecond accuracy, as you can specify decimal places,
|
||||
</li>
|
||||
<li>as a timespec (HH:MM or HH::MM::SS or {perlfunc})</li>
|
||||
<li>or as a regex (devicename or devicename:event)</li></ul><br>
|
||||
|
||||
A sleep with an <id> will replace a sleep with the same <id>
|
||||
and can be canceled by <a href="#cancel">cancel</a>.
|
||||
|
||||
Reference in New Issue
Block a user