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

korrekt battery status for BA

git-svn-id: https://svn.fhem.de/fhem/trunk@5043 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2014-02-24 19:40:04 +00:00
parent 61717cbdb3
commit d78dfe1398

View File

@ -1397,7 +1397,8 @@ sub CUL_HM_Parse($$) {#########################################################
push @evtEt,[$h,1,"battery:".(($err&0x08)?"critical":($err&0x80?"low":"ok"))];
}
elsif ($md =~ m /HM-LC-SW.-BA-PCB/){
push @event,"battery:" . (($err&0x80) ? "low" : "ok" );
my $h = CUL_HM_getDeviceHash($shash);
push @evtEt,[$h,1,"battery:" . (($err&0x80) ? "low" : "ok" )];
}
}
}