mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
improved status decoding for HM-CC-VD in 10_CUL_HM.pm
git-svn-id: https://svn.fhem.de/fhem/trunk@1320 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
befb64d650
commit
c93082d2b3
@ -491,15 +491,20 @@ CUL_HM_Parse($$)
|
||||
# CMD:8202 SRC:13F251 DST:15B50D 010100002A
|
||||
# status ACK to controlling HM-CC-TC
|
||||
if($cmd eq "8202" && $p =~ m/^(..)(..)(..)(..)/) {
|
||||
my ( $vp, $d1) =
|
||||
(hex($3), $4);
|
||||
my ( $vp, $st) =
|
||||
(hex($3), hex($4));
|
||||
$vp = int($vp)/2; # valve position in %
|
||||
push @event, "actuator:$vp %";
|
||||
|
||||
# I think this is too much info:
|
||||
# if($d1 eq "10") { push @event, "actuator:movement_open";
|
||||
# } elsif($d1 eq "20") { push @event, "actuator:movement_close";
|
||||
# }
|
||||
# Status-Byte Auswertung
|
||||
push @event, "motor:opening" if($st&0x10);
|
||||
push @event, "motor:closing" if($st&0x20);
|
||||
push @event, "motor:blocked" if($st&0x06) == 2;
|
||||
push @event, "motor:loose" if($st&0x06) == 4;
|
||||
push @event, "motor:adjusting range too small" if($st&0x06) == 6;
|
||||
push @event, "motor:ok" if($st&0x06) == 0;
|
||||
push @event, "battery:low" if($st&0x08);
|
||||
push @event, "battery:ok" if(($st&0x08) == 0);
|
||||
}
|
||||
|
||||
# CMD:A010 SRC:13F251 DST:5D24C9 0401000000000509000A070000
|
||||
|
@ -3048,17 +3048,18 @@ A line ending with \ will be concatenated with the next one, so long lines
|
||||
temperature $t<br>
|
||||
humidity $h<br>
|
||||
actuator $vp %<br>
|
||||
desired-temp: $t<br>
|
||||
tempList$wd: hh:mm $t hh:mm $t ...<br>
|
||||
ValveErrorPosition $dname: $vep %<br>
|
||||
ValveOffset $dname: $of %<br>
|
||||
windowopentemp-$tchan: $t (sensor:$tdev)<br>
|
||||
desired-temp $t<br>
|
||||
desired-temp-ack $t<br>
|
||||
tempList$wd hh:mm $t hh:mm $t ...<br>
|
||||
ValveErrorPosition $dname $vep %<br>
|
||||
ValveOffset $dname $of %<br>
|
||||
windowopentemp-$tchan $t (sensor:$tdev)<br>
|
||||
<li>HM-CC-VD:<br>
|
||||
actuator $vp %<br>
|
||||
actuator:movement_open<br>
|
||||
actuator:movement_close<br>
|
||||
ValveErrorPosition:$vep %<br>
|
||||
ValveOffset $dname: $of %<br>
|
||||
motor [opening|closing|blocked|loose|adjusting range too small|ok]<br>
|
||||
battery [low|ok]<br>
|
||||
ValveErrorPosition $vep %<br>
|
||||
ValveOffset $dname $of %<br>
|
||||
<li>KFM100:<br>
|
||||
rawValue $v<br>
|
||||
Sequence $s<br>
|
||||
|
Loading…
Reference in New Issue
Block a user