mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
91_watchdog.pm: trigger w . will abort an activated trigger (Forum #43957)
git-svn-id: https://svn.fhem.de/fhem/trunk@10789 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
18626636ee
commit
2d7e5b442e
@ -94,6 +94,12 @@ watchdog_Notify($$)
|
||||
|
||||
if($watchdog->{STATE} =~ m/Next:/) {
|
||||
|
||||
if($dotTrigger) {
|
||||
RemoveInternalTimer($watchdog);
|
||||
$watchdog->{STATE} = "defined";
|
||||
return;
|
||||
}
|
||||
|
||||
if($n =~ m/^$re2$/ || "$n:$s" =~ m/^$re2$/) {
|
||||
RemoveInternalTimer($watchdog);
|
||||
|
||||
@ -112,8 +118,7 @@ watchdog_Notify($$)
|
||||
}
|
||||
|
||||
} elsif($watchdog->{STATE} eq "defined") {
|
||||
if($dotTrigger || # trigger w .
|
||||
($n =~ m/^$re1$/ || "$n:$s" =~ m/^$re1$/)) {
|
||||
if($dotTrigger || ($n =~ m/^$re1$/ || "$n:$s" =~ m/^$re1$/)) {
|
||||
watchdog_Activate($watchdog)
|
||||
}
|
||||
|
||||
@ -251,9 +256,10 @@ watchdog_Attr(@)
|
||||
regexp, and it will be reactivated, when it is received.
|
||||
</li>
|
||||
<li>trigger <watchdogname> . will activate the trigger if its state
|
||||
is defined, and set it into state defined if its state is
|
||||
triggered. You always have to reactivate the watchdog with this
|
||||
command once it has triggered (unless you restart fhem)</li>
|
||||
is defined, and set it into state defined if its state is active
|
||||
(Next:...) or triggered. You always have to reactivate the watchdog
|
||||
with this command once it has triggered (unless you restart
|
||||
fhem)</li>
|
||||
<li>a generic watchdog (one watchdog responsible for more devices) is
|
||||
currently not possible.</li>
|
||||
<li>with modify all parameters are optional, and will not be changed if
|
||||
@ -354,7 +360,7 @@ watchdog_Attr(@)
|
||||
|
||||
<li>trigger <watchdogname> . aktiviert den Trigger wenn dessen
|
||||
Status defined ist und setzt ihn in den Status defined wenn sein status
|
||||
triggered ist.<br>
|
||||
triggered oder aktiviert (Next:...) ist.<br>
|
||||
|
||||
Der Watchdog musst immer mit diesem Befehl reaktiviert werden wenn er
|
||||
getriggert wurde.</li>
|
||||
|
Loading…
Reference in New Issue
Block a user