2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-17 23:46:03 +00:00

repair SD peering virtual

git-svn-id: https://svn.fhem.de/fhem/trunk@4276 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2013-11-23 16:56:20 +00:00
parent e90b734d3d
commit 31a1a27db8
2 changed files with 6 additions and 3 deletions

View File

@ -3163,7 +3163,8 @@ sub CUL_HM_Set($@) {
$culHmRegType{$st}{peerNeedsBurst});
for(my $i = 1; $i <= $nrCh2Pair; $i++) {
my $b = ($i==1 ? $b1 : $b2);
if ($st eq "virtual"){
$b = $b2 if ($pSt eq "smokeDetector");
if ($st eq "virtual"){
my $btnName = CUL_HM_id2Name($dst.sprintf("%02X",$b));
return "button ".$b." not defined for virtual remote ".$name
if (!defined $attr{$btnName});
@ -3171,9 +3172,10 @@ sub CUL_HM_Set($@) {
}
else{
my $bStr = sprintf("%02X",$b);
CUL_HM_PushCmdStack($hash,
CUL_HM_PushCmdStack($hash,
"++".$flag."01${id}${dst}${bStr}$cmdB${peerDst}${peerBtn}00");
CUL_HM_pushConfig($hash,$id, $dst,$b,$peerDst,hex($peerBtn),4,$burst)
CUL_HM_pushConfig($hash,$id, $dst,$b,$peerDst,
hex($peerBtn),4,$burst)
if($pnb && $cmdB eq "01"); # only if set
CUL_HM_qAutoRead($name,3);
}

View File

@ -397,6 +397,7 @@ my %culHmRegDefine = (
# SEC-WM55 02:01 (AES on?)
# CC-RT 02:01 16:00
# SEC-WDS 02:01 16:01(sabotage) ?
# 4DIS 02:01 ?
# HM-SEC-MDIR 02:01 ?
# SEC-SC 02:00 ?
# Blind 9:00 10:00 20:00