mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
KS300 state bigfix
git-svn-id: https://svn.fhem.de/fhem/trunk@121 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
42c3c6a80b
commit
9461ca352c
@ -362,5 +362,8 @@
|
||||
- feature: alternativ Quad-based numbers for the FS20 (Matthias, 24.11)
|
||||
- feature: dummy type added (contrib/99_dummy.pm)
|
||||
|
||||
- ==DATE== (4.3)
|
||||
- bugfix: KS300 state was wrong after the STATE bugfix
|
||||
|
||||
- TODO
|
||||
emem -2.5kW / getDevData for emwz -1
|
||||
|
@ -149,18 +149,17 @@ KS300_Parse($$)
|
||||
|
||||
my $max = int(@v);
|
||||
|
||||
|
||||
for(my $i = 0; $i < $max; $i++) {
|
||||
$r->{$txt[$i]}{TIME} = $tm;
|
||||
my $val = "$v[$i] $sfx[$i]";
|
||||
$r->{$txt[$i]}{VAL} = $val;
|
||||
$def->{CHANGED}[$i] = "$txt[$i]: $val";
|
||||
}
|
||||
|
||||
# For logging/summary
|
||||
my $val = "T: $v[4] H: $v[3] W: $v[2] R: $v[1] IR: $v[5]";
|
||||
$def->{STATE} = $val;
|
||||
$def->{CHANGED}[$max++] = $val;
|
||||
$def->{CHANGED}[0] = $val;
|
||||
|
||||
for(my $i = 0; $i < $max; $i++) {
|
||||
$r->{$txt[$i]}{TIME} = $tm;
|
||||
$val = "$v[$i] $sfx[$i]";
|
||||
$r->{$txt[$i]}{VAL} = $val;
|
||||
$def->{CHANGED}[$i+1] = "$txt[$i]: $val";
|
||||
}
|
||||
|
||||
###################################
|
||||
# AVG computing
|
||||
|
Loading…
Reference in New Issue
Block a user