mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
91_watchdog.pm: add $NAME, $SELF, $TYPE (Forum #123956)
git-svn-id: https://svn.fhem.de/fhem/trunk@25230 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5b3e55301f
commit
1fdec7e87b
@ -193,9 +193,13 @@ watchdog_Trigger($)
|
||||
}
|
||||
|
||||
Log3 $name, 3, "Watchdog $name triggered";
|
||||
my $dname = ReadingsVal($name, "triggeredByDev", "");
|
||||
my %specials= (
|
||||
"%DEV" => ReadingsVal($name, "triggeredByDev", ""),
|
||||
"%EVENT" => ReadingsVal($name, "triggeredByEvent", "")
|
||||
"%DEV" => $dname,
|
||||
"%EVENT" => ReadingsVal($name, "triggeredByEvent", ""),
|
||||
"%NAME" => $dname,
|
||||
"%TYPE" => InternalVal($dname, "TYPE", ""),
|
||||
"%SELF" => $name,
|
||||
);
|
||||
my $exec = EvalSpecials($watchdog->{CMD}, %specials);
|
||||
$watchdog->{STATE} = "triggered";
|
||||
@ -355,8 +359,9 @@ watchdog_Set($@)
|
||||
currently not possible.</li>
|
||||
<li>with modify all parameters are optional, and will not be changed if
|
||||
not specified.</li>
|
||||
<li>the device and the event triggering the watchdog is available as $DEV
|
||||
and $EVENT in the executable.</li>
|
||||
<li>The variables $DEV, $NAME, $EVENT, $EVTPART*, $TYPE and $SELF are
|
||||
available in the executed code, see the notify documentation for
|
||||
details.</li>
|
||||
</ul>
|
||||
|
||||
<br>
|
||||
@ -498,9 +503,9 @@ watchdog_Set($@)
|
||||
<li>Bei modify sind alle Parameter optional, und werden nicht geaendert,
|
||||
falls nicht spezifiziert.</li>
|
||||
|
||||
<li>Das aktivierende Gerät und Event sind al $DEV und $EVENT im
|
||||
ausführenden Teil verfügbar.</li>
|
||||
|
||||
<li>Die Variablen $DEV, $NAME, $EVENT, $EVTPART*, $TYPE und $SELF stehen
|
||||
im ausgefürten Code zur Verfügung, sie sind in der notify
|
||||
Dokumentation genauer beschreiben.</li>
|
||||
</ul>
|
||||
|
||||
<br>
|
||||
|
Loading…
x
Reference in New Issue
Block a user