mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
HMInfo: improve/correct register update with clear oldRegs
git-svn-id: https://svn.fhem.de/fhem/trunk@22480 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fd42801807
commit
01dd271fa2
@ -1688,10 +1688,10 @@ sub HMinfo_SetFn($@) {#########################################################
|
||||
elsif ($type ne "msgStat"){
|
||||
return "unknown parameter - use msgEvents, msgErrors, msgStat, readings, register, rssi, attack or all"
|
||||
if ($type !~ m/^(msgEvents|msgErrors|readings|register|oldRegs|rssi|all|attack|trigger)$/);
|
||||
$opt .= "d" if ($type =~ m/(msgE|rssi)/);# readings apply to all, others device only
|
||||
my @entities;
|
||||
foreach my $dName (HMinfo_getEntities($opt,$filter)){
|
||||
push @entities,$dName;
|
||||
$opt .= "d" if ($type =~ m/(msgE|rssi|oldRegs)/);# readings apply to all, others device only
|
||||
my @entities = (HMinfo_getEntities($opt,$filter));
|
||||
|
||||
foreach my $dName (@entities){
|
||||
CUL_HM_Set($defs{$dName},$dName,"clear",$type);
|
||||
}
|
||||
$ret = $cmd.$type." done:"
|
||||
|
Loading…
x
Reference in New Issue
Block a user