2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 04:36:02 +00:00

CUL_HM:correct trigger destination

git-svn-id: https://svn.fhem.de/fhem/trunk@7840 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2015-02-02 20:30:36 +00:00
parent 0a7a50b623
commit 183f9cf734

View File

@ -2773,7 +2773,7 @@ sub CUL_HM_parseCommon(@){#####################################################
foreach my $peer (grep /^$dst/,split(",",$peerIDs)){
my $pName = CUL_HM_id2Name($peer);
next if (!$pName || !$defs{$pName});
$pName = CUL_HM_id2Name($dst); #$dst - device-id of $peer
$pName = CUL_HM_id2Name($dst) if (!$defs{$pName}); #$dst - device-id of $peer
push @evtEt,[$defs{$pName},1,"trig_$cName:$level"];
push @evtEt,[$defs{$pName},1,"trigLast:$cName ".(($level ne "-")?":$level":"")];
@ -2916,7 +2916,7 @@ sub CUL_HM_pushEvnts(){########################################################
if ($h ne ${$e}[0] || $x ne ${$e}[1]){
push @ent,CUL_HM_UpdtReadBulk($h,$x,@evts);
@evts = ();
($h,$x) = (${$e}[0],${$e}[1])
($h,$x) = (${$e}[0],${$e}[1]);
}
push @evts,${$e}[2] if (${$e}[2]);
}