2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-04 08:03:40 +00:00

CUL_HM:battery reading for OU-CFM-TW

git-svn-id: https://svn.fhem.de/fhem/trunk@12602 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2016-11-19 19:03:48 +00:00
parent 6d57f61bb0
commit d0fa0fb99e

View File

@ -2488,7 +2488,9 @@ sub CUL_HM_Parse($$) {#########################################################
my $val = hex($mI[2])/2;
$val = ($val == 100 ? "on" : ($val == 0 ? "off" : "$val %"));
push @evtEt,[$mh{cHash},1,"state:$val"];
push @evtEt,[$mh{devH} ,1,"battery:".(hex($mI[3]&0x80)?"low":"ok" )]if ($mh{md} eq "HM-OU-CFM-TW" && $mI[3]);
}
}
}
elsif($mh{st} =~ m /^(motionDetector|motionAndBtn)$/) { #####################