diff --git a/fhem/CHANGED b/fhem/CHANGED index 47a65fa03..9e7aff7a7 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -351,8 +351,8 @@ - feature: softwarebuffer for FHT devices (Dirk 17.10) - feature: FHT low temperatur warning and offset (Dirk 17.10) - change: change FHT state into warnings (Dirk 17.10) - NOTE: you'll get an undefined type state & - undefined type unknown_85 after upgrade. + NOTE: you'll get an undefined type state & + undefined type unknown_85 after upgrade. - feature: Softwarebuffer code simplified (Rudi 22.11) - bugfix: bug #12327 doppeltes my - bugfix: set STATE from trigger @@ -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 diff --git a/fhem/FHEM/13_KS300.pm b/fhem/FHEM/13_KS300.pm index d2d19fbf7..4d6ecac0b 100755 --- a/fhem/FHEM/13_KS300.pm +++ b/fhem/FHEM/13_KS300.pm @@ -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