2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

98_autocreate.pm: set attr even if noAtocreatedFilelog is set (Forum #119055)

git-svn-id: https://svn.fhem.de/fhem/trunk@23593 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-01-23 10:53:53 +00:00
parent b83d21b6a9
commit 2c198174f3
2 changed files with 3 additions and 2 deletions

View File

@ -1760,7 +1760,7 @@ FileLog_regexpFn($$)
Dieses Attribut enthält eine durch Kommata getrennte Liste von Dieses Attribut enthält eine durch Kommata getrennte Liste von
"devspec:readings:maxInterval" Tripel. readings kann ein regexp sein. "devspec:readings:maxInterval" Tripel. readings kann ein regexp sein.
Falls nach maxInterval (Sekunden) kein passendes Event eingetroffen ist, Falls nach maxInterval (Sekunden) kein passendes Event eingetroffen ist,
der letzte Wert wird zum Logfile hinzugefuegt. wird der letzte Wert zum Logfile hinzugefuegt.
</li><br> </li><br>
<a name="archivedir"></a> <a name="archivedir"></a>

View File

@ -252,10 +252,11 @@ autocreate_Notify($$)
$attr{$name}{room} = $room if($room); $attr{$name}{room} = $room if($room);
$nrcreated = 0 if($temporary); # do not save $nrcreated = 0 if($temporary); # do not save
next if($modules{$hash->{TYPE}}{noAutocreatedFilelog} || $temporary); next if($temporary);
#################### ####################
my $fl = replace_wildcards($hash, AttrVal($me, "filelog", "")); my $fl = replace_wildcards($hash, AttrVal($me, "filelog", ""));
$fl = undef if($modules{$hash->{TYPE}}{noAutocreatedFilelog});
my $flname = "FileLog_$name"; my $flname = "FileLog_$name";
delete($defs{$flname}) if($fl); # If we are re-creating it with createlog. delete($defs{$flname}) if($fl); # If we are re-creating it with createlog.
my ($gplot, $filter, $devattr) = ("", $name, ""); my ($gplot, $filter, $devattr) = ("", $name, "");