2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

add battery low/ok detection for HM-LC-SW1-BA-PCB

git-svn-id: https://svn.fhem.de/fhem/trunk@1809 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dirkho 2012-08-23 22:06:03 +00:00
parent 8bcfba2f3f
commit 95fcb612c2

View File

@ -608,6 +608,8 @@ CUL_HM_Parse($$)
push @event, "dim:down" if(hex($add)&0x20); push @event, "dim:down" if(hex($add)&0x20);
push @event, "dim:stop" if(hex($add)&0x40); push @event, "dim:stop" if(hex($add)&0x40);
} elsif($model eq "HM-LC-SW1-BA-PCB") {
push @event, "battery:" . ((hex($add)&0x80) ? "low" : "ok");
} }
if($id eq $dst && $cmd ne "8002") { # Send Ack if($id eq $dst && $cmd ne "8002") { # Send Ack