2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

CUL_HM:update sabotage reading

git-svn-id: https://svn.fhem.de/fhem/trunk@22334 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2020-07-03 05:55:57 +00:00
parent 26df197914
commit 45b53f9adf

View File

@ -1244,14 +1244,14 @@ sub CUL_HM_Parse($$) {#########################################################
if( defined $mh{dstH}->{helper}{cSnd} &&
$mh{dstH}->{helper}{cSnd} !~ m/$tm/){
if ( !defined $mh{dstH}->{"prot"."ErrIoAttack"}
&& ReadingsVal($mh{dstN},"sabotageAttack_ErrIoAttack cnt:",undef)){
&& ReadingsVal($mh{dstN},"sabotageAttack_ErrIoAttack_cnt:",undef)){
$mh{dstH}->{"prot"."ErrIoAttack"} =
ReadingsVal($mh{dstN},"sabotageAttack_ErrIoAttack cnt:",undef);
ReadingsVal($mh{dstN},"sabotageAttack_ErrIoAttack_cnt:",undef);
}
Log3 $mh{dstN},2,"CUL_HM $mh{dstN} attack:$mh{dstH}->{helper}{cSnd}:".$tm;
CUL_HM_eventP($mh{dstH},"ErrIoAttack");
my ($evntCnt,undef) = split(' last_at:',$mh{dstH}->{"prot"."ErrIoAttack"},2);
push @evtEt,[$mh{dstH},1,"sabotageAttack_ErrIoAttack cnt:$evntCnt"];
push @evtEt,[$mh{dstH},1,"sabotageAttack_ErrIoAttack_cnt:$evntCnt"];
}
}
###########