2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

98_autocreate.pm: refuse to act on a different type (Forum #115128)

git-svn-id: https://svn.fhem.de/fhem/trunk@23006 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-10-22 19:40:17 +00:00
parent d0193fe125
commit 2c63f444c5

View File

@ -47,7 +47,8 @@ my %flogpar = (
"USBWX_[0-8]"
=> { GPLOT => "temp4hum6:Temp/Hum,", FILTER => "%NAME" },
"USBWX_ks300"
=> { GPLOT => "temp4hum6:Temp/Hum,temp4rain10:Temp/Rain,hum6wind8:Wind/Hum,",
=> { GPLOT =>
"temp4hum6:Temp/Hum,temp4rain10:Temp/Rain,hum6wind8:Wind/Hum,",
FILTER => "%NAME:T:.*" },
# HomeMatic
@ -223,7 +224,13 @@ autocreate_Notify($$)
}
my ($cmd, $ret);
my $hash = $defs{$name}; # Called from createlog
my $hash = $defs{$name}; # Called (hopefully) from createlog
if($hash && $hash->{TYPE} ne $type) {
Log 1, "autocreate: refusing to create $type:$name, ".
"as $hash->{TYPE}:$name already exists";
return;
}
####################
if(!$hash) {