2
0
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:
martinp876 2020-07-27 12:09:02 +00:00
parent fd42801807
commit 01dd271fa2

View File

@ -1688,10 +1688,10 @@ sub HMinfo_SetFn($@) {#########################################################
elsif ($type ne "msgStat"){ elsif ($type ne "msgStat"){
return "unknown parameter - use msgEvents, msgErrors, msgStat, readings, register, rssi, attack or all" 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)$/); 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 $opt .= "d" if ($type =~ m/(msgE|rssi|oldRegs)/);# readings apply to all, others device only
my @entities; my @entities = (HMinfo_getEntities($opt,$filter));
foreach my $dName (HMinfo_getEntities($opt,$filter)){
push @entities,$dName; foreach my $dName (@entities){
CUL_HM_Set($defs{$dName},$dName,"clear",$type); CUL_HM_Set($defs{$dName},$dName,"clear",$type);
} }
$ret = $cmd.$type." done:" $ret = $cmd.$type." done:"