mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 04:36:02 +00:00
10_CUL_HM: fix mdir channel information
git-svn-id: https://svn.fhem.de/fhem/trunk@8682 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b428e8d8d1
commit
e34e18ec46
@ -2142,8 +2142,11 @@ sub CUL_HM_Parse($$) {#########################################################
|
||||
}
|
||||
elsif($st =~ m /^(motionDetector|motionAndBtn)$/) { #########################
|
||||
my $state = $mI[2];
|
||||
if(($mTp eq "10" ||$mTp eq "02") && $p =~ m/^0601..../) {
|
||||
my ($err,$bright)=(hex($mI[3]),hex($mI[2]));
|
||||
if(($mTp eq "10" ||$mTp eq "02") && $p =~ m/^06....../) {
|
||||
my ($chn,$err,$bright)=(hex($mI[1]),hex($mI[3]),hex($mI[2]));
|
||||
my $chId = $src.sprintf("%02X",$chn&0x3f);
|
||||
$shash = $modules{CUL_HM}{defptr}{$chId}
|
||||
if($modules{CUL_HM}{defptr}{$chId});
|
||||
push @evtEt,[$shash,1,"brightness:".$bright];
|
||||
if ($md eq "HM-Sec-MDIR"){
|
||||
push @evtEt,[$shash,1,"sabotageError:".(($err&0x0E)?"on":"off")];
|
||||
|
Loading…
x
Reference in New Issue
Block a user