diff --git a/fhem/FHEM/91_notify.pm b/fhem/FHEM/91_notify.pm index d29bd8d57..26eb9176b 100755 --- a/fhem/FHEM/91_notify.pm +++ b/fhem/FHEM/91_notify.pm @@ -56,7 +56,7 @@ notify_Define($$) my $doTrigger = ($name !~ m/^$re$/); # Forum #34516 readingsSingleUpdate($hash, "state", "active", $doTrigger); - notifyRegexpChanged($hash, $re); + InternalTimer(0, sub(){ notifyRegexpChanged($hash, $re); }, $hash); return undef; } diff --git a/fhem/FHEM/92_FileLog.pm b/fhem/FHEM/92_FileLog.pm index 6dcad99fb..7bddf06fd 100755 --- a/fhem/FHEM/92_FileLog.pm +++ b/fhem/FHEM/92_FileLog.pm @@ -115,7 +115,7 @@ FileLog_Define($@) $hash->{logfile} = $a[2]; $hash->{currentlogfile} = $f; $hash->{STATE} = "active"; - notifyRegexpChanged($hash, $a[3]); + InternalTimer(0, sub(){ notifyRegexpChanged($hash, $a[3]); }, $hash); return undef; }