98_HMinfo: bugfix minor SumError

git-svn-id: https://svn.fhem.de/fhem/trunk@8975 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2015-07-26 06:20:41 +00:00
parent 1ab02f5ee8
commit eaa860ec51

View File

@@ -50,7 +50,7 @@ sub HMinfo_Define($$){#########################################################
.",reduced:off"
.",motorErr:ok"
.",error:none"
.",uncertain:[no|yes],"
.",uncertain:[no|yes]"
.",smoke_detect:none"
.",cover:closed"
;
@@ -109,6 +109,15 @@ sub HMinfo_Attr(@) {###########################################################
$modules{CUL_HM}{helper}{hmManualOper} = substr($attrVal,0,1);
}
}
elsif($attrName eq "sumERROR"){
if ($cmd eq "set"){
foreach (split ",",$attrVal){ #prepare reading filter for error counts
my ($p,@a) = split ":",$_;
return "parameter illegal - "
if(!$p || !$a[0]);
}
}
}
return;
}
@@ -126,6 +135,7 @@ sub HMinfo_status($){##########################################################
my %sum;
#--- used for error counts
my @erro = split ",",$attr{$name}{sumERROR};
my %errFlt;
my %err;
my @errNames;