mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
correct clear filter
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6233 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7db9f4a863
commit
819c9e8821
@ -1094,14 +1094,14 @@ sub HMinfo_SetFn($@) {#########################################################
|
|||||||
delete $modules{CUL_HM}{stat}{r}{$_};
|
delete $modules{CUL_HM}{stat}{r}{$_};
|
||||||
delete $modules{CUL_HM}{stat}{s}{$_};
|
delete $modules{CUL_HM}{stat}{s}{$_};
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if ($type ne "msgStat"){
|
if ($type ne "msgStat"){
|
||||||
return "unknown parameter - use Protocol, readings, msgStat, register, rssi or all"
|
return "unknown parameter - use Protocol, readings, msgStat, register, rssi or all"
|
||||||
if ($type !~ m/^(Protocol|readings|register|rssi|all)$/);
|
if ($type !~ m/^(Protocol|readings|register|rssi|all)$/);
|
||||||
$opt .= "d" if ($type !~ m/(readings|register)/);# readings apply to all, others device only
|
$opt .= "d" if ($type =~ m/(Protocol|rssi)/);# readings apply to all, others device only
|
||||||
my @entities;
|
my @entities;
|
||||||
$type = "msgEvents" if ($type eq "Protocol");# translate parameter
|
$type = "msgEvents" if ($type eq "Protocol");# translate parameter
|
||||||
|
Log 1,"General filter:$opt,$filter";
|
||||||
foreach my $dName (HMinfo_getEntities($opt,$filter)){
|
foreach my $dName (HMinfo_getEntities($opt,$filter)){
|
||||||
push @entities,$dName;
|
push @entities,$dName;
|
||||||
CUL_HM_Set($defs{$dName},$dName,"clear",$type);
|
CUL_HM_Set($defs{$dName},$dName,"clear",$type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user