2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

support lacyConfig and wake for one device

git-svn-id: https://svn.fhem.de/fhem/trunk@6476 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2014-08-28 07:04:12 +00:00
parent ad1908a7f3
commit 378b65a186

View File

@ -1889,7 +1889,7 @@ sub CUL_HM_Parse($$) {#########################################################
if (@mI > 8){#status for all channel included
# open to decode byte $mI[4] - related to backlight? seen 20 and 21
my $lStat = join("",@mI[5..8]); # all LED status in one long
my %colTbl=("00"=>"off","01"=>"red","10"=>"green","11"=>"orange");
my %colTbl=("00"=>"off","01"=>"red","10"=>"green","11"=>"orange");
my @leds = reverse(unpack('(A2)*',sprintf("%032b",hex($lStat))));
$_ = $colTbl{$_} foreach (@leds);
for(my $cCnt = 0;$cCnt<16;$cCnt++){# go for all channels
@ -2248,7 +2248,7 @@ sub CUL_HM_parseCommon(@){#####################################################
$shash->{helper}{prt}{sleeping} = 1 if($mFlgH & 0x20) ;
}
}
elsif($rxt & 0x10){ # lazy config
if($rxt & 0x10 && $shash->{helper}{prt}{sleeping}){ # lazy config
if($mFlgH & 0x02 #wakeup device
&& $defs{$shash->{IODev}{NAME}}{TYPE} eq "HMLAN"){
$shash->{helper}{io}{newCh} = 1 if ($shash->{helper}{prt}{sProc} == 2);