mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
00_MQTT2_CLIENT.pm: fix ignoreRegexp (Forum #117058)
git-svn-id: https://svn.fhem.de/fhem/trunk@23419 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
349946841a
commit
157d11f75e
@ -466,17 +466,17 @@ MQTT2_CLIENT_Read($@)
|
|||||||
$val = "" if(!defined($val));
|
$val = "" if(!defined($val));
|
||||||
|
|
||||||
my $ir = AttrVal($name, "ignoreRegexp", undef);
|
my $ir = AttrVal($name, "ignoreRegexp", undef);
|
||||||
next if(defined($ir) && "$tp:$val" =~ m/$ir/);
|
if(!defined($ir) || "$tp:$val" !~ m/$ir/) {
|
||||||
|
my $ac = AttrVal($name, "autocreate", "no");
|
||||||
|
$ac = $ac eq "1" ? "simple" : ($ac eq "0" ? "no" : $ac); # backward comp.
|
||||||
|
|
||||||
my $ac = AttrVal($name, "autocreate", "no");
|
my $cid = makeDeviceName($hash->{clientId});
|
||||||
$ac = $ac eq "1" ? "simple" : ($ac eq "0" ? "no" : $ac); # backward comp.
|
$tp =~ s/:/_/g; # 96608
|
||||||
|
Dispatch($hash, "autocreate=$ac\0$cid\0$tp\0$val", undef, $ac eq "no");
|
||||||
|
|
||||||
my $cid = makeDeviceName($hash->{clientId});
|
my $re = AttrVal($name, "rawEvents", undef);
|
||||||
$tp =~ s/:/_/g; # 96608
|
DoTrigger($name, "$tp:$val") if($re && $tp =~ m/$re/);
|
||||||
Dispatch($hash, "autocreate=$ac\0$cid\0$tp\0$val", undef, $ac eq "no");
|
}
|
||||||
|
|
||||||
my $re = AttrVal($name, "rawEvents", undef);
|
|
||||||
DoTrigger($name, "$tp:$val") if($re && $tp =~ m/$re/);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user