add triggered reading to watchdog

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1231 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
klassm
2012-02-02 09:33:08 +00:00
parent 55a54847c1
commit aca7655c96

View File

@@ -119,6 +119,10 @@ watchdog_Trigger($)
Log(3, "Watchdog $ntfy->{NAME} triggered");
my $exec = SemicolonEscape($ntfy->{CMD});;
$ntfy->{STATE} = "triggered";
$ntfy->{READINGS}{Triggered}{TIME} = TimeNow();
$ntfy->{READINGS}{Triggered}{VAL} = $ntfy->{STATE};
my $ret = AnalyzeCommandChain(undef, $exec);
Log 3, $ret if($ret);
}