diff --git a/fhem/FHEM/91_watchdog.pm b/fhem/FHEM/91_watchdog.pm index 2c6253524..f69e15d03 100755 --- a/fhem/FHEM/91_watchdog.pm +++ b/fhem/FHEM/91_watchdog.pm @@ -15,7 +15,7 @@ watchdog_Initialize($) $hash->{DefFn} = "watchdog_Define"; $hash->{UndefFn} = "watchdog_Undef"; $hash->{NotifyFn} = "watchdog_Notify"; - $hash->{AttrList} = "disable:0,1"; + $hash->{AttrList} = "disable:0,1 regexp1WontReactivate:0,1"; } @@ -89,12 +89,12 @@ watchdog_Notify($$) } - if($n =~ m/^$re1$/ || - "$n:$s" =~ m/^$re1$/ || - ($ln eq $n && $s eq ".")) { - watchdog_Activate($ntfy); - + if(($ln eq $n && $s eq ".") || # trigger w . + (($n =~ m/^$re1$/ || "$n:$s" =~ m/^$re1$/) && + !AttrVal($ln, "regexp1WontReactivate", 0))) { + watchdog_Activate($ntfy) } + } return ""; } diff --git a/fhem/docs/commandref.html b/fhem/docs/commandref.html index d861810b7..33872cad6 100644 --- a/fhem/docs/commandref.html +++ b/fhem/docs/commandref.html @@ -7241,20 +7241,31 @@ href="http://www.elv.de/output/controller.aspx?cid=74&detail=10&detail2=29870">U
# Talk to the FHT80 if we do not receive any message for 15 Minutes define w watchdog FHT80 00:15:00 SAME set FHT80 time + # Shout if the HMS100-FIT is not alive define w watchdog HMS100-FIT 01:00:00 SAME "alarm-fit.sh" + + # Send mail if the window is left open + define w watchdog contact1:open 00:15 contact1:closed "mail_me close window1" + attr w regexp1WontReactivateNotes: