mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
level with blank to %
git-svn-id: https://svn.fhem.de/fhem/trunk@3172 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
24a8ae0ef0
commit
b463a66cc0
@ -735,10 +735,10 @@ sub CUL_HM_Parse($$) {##############################
|
||||
my %lvl=("00"=>"normal","64"=>"added","C8"=>"addedStrong");
|
||||
if($model eq "HM-Sen-Wa-Od"){
|
||||
$level = hex($level)/2 ;
|
||||
push @event, "level:$level%";
|
||||
push @event, "level:$level %";
|
||||
}
|
||||
$level = $lvl{$level} if($model eq "HM-CC-SCD");
|
||||
push @event, "state:".$level."%";
|
||||
push @event, "state:".$level." %";
|
||||
|
||||
my $err = hex(substr($p,6,2));
|
||||
push @event, "battery:".($err&0x80?"low":"ok") if (defined $err);
|
||||
|
Loading…
Reference in New Issue
Block a user