10_CULHM:power on detection for power meter bug Fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@14465 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876
2017-06-04 17:15:29 +00:00
parent ca2e59f79f
commit 73824e9d23

View File

@@ -1178,11 +1178,6 @@ sub CUL_HM_Parse($$) {#########################################################
} }
} }
#----------CUL aesCommReq handling--------- #----------CUL aesCommReq handling---------
my $aComReq = AttrVal($mh{devN},"aesCommReq",0); my $aComReq = AttrVal($mh{devN},"aesCommReq",0);
my $dRfMode = AttrVal($mh{devH}{IODev}{NAME},"rfmode",""); my $dRfMode = AttrVal($mh{devH}{IODev}{NAME},"rfmode","");
@@ -2479,7 +2474,7 @@ sub CUL_HM_Parse($$) {#########################################################
my $eo = ReadingsVal($mh{shash}->{NAME},"energyOffset",0); my $eo = ReadingsVal($mh{shash}->{NAME},"energyOffset",0);
if($eCnt == 0 && hex($mh{mNo}) < 3 && !$mh{shash}->{helper}{pon}){ if($eCnt == 0 && hex($mh{mNo}) < 3 && !$mh{shash}->{helper}{pon}){
if($mh{devH}->{helper}{PONtest}){ if($mh{devH}->{helper}{PONtest}){
push @evtEt,[$mh{devH},1,"powerOn:$tn",] ; push @evtEt,[$mh{devH},1,"powerOn:$tn",] if ($mh{md} !~ m/HM-ES-PMSw1/);
$mh{devH}->{helper}{PONtest} = 0; $mh{devH}->{helper}{PONtest} = 0;
} }
$eo += $el; $eo += $el;