mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
91_notify/92_FileLog: better NOTIFYDEV assignment (Forum #67416)
git-svn-id: https://svn.fhem.de/fhem/trunk@13455 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
61cf98a2eb
commit
800459aaa2
@ -56,7 +56,7 @@ notify_Define($$)
|
|||||||
|
|
||||||
my $doTrigger = ($name !~ m/^$re$/); # Forum #34516
|
my $doTrigger = ($name !~ m/^$re$/); # Forum #34516
|
||||||
readingsSingleUpdate($hash, "state", "active", $doTrigger);
|
readingsSingleUpdate($hash, "state", "active", $doTrigger);
|
||||||
notifyRegexpChanged($hash, $re);
|
InternalTimer(0, sub(){ notifyRegexpChanged($hash, $re); }, $hash);
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ FileLog_Define($@)
|
|||||||
$hash->{logfile} = $a[2];
|
$hash->{logfile} = $a[2];
|
||||||
$hash->{currentlogfile} = $f;
|
$hash->{currentlogfile} = $f;
|
||||||
$hash->{STATE} = "active";
|
$hash->{STATE} = "active";
|
||||||
notifyRegexpChanged($hash, $a[3]);
|
InternalTimer(0, sub(){ notifyRegexpChanged($hash, $a[3]); }, $hash);
|
||||||
|
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user