Luxtronik2: Fixed statBoilerGradientCoolDownMin

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4916 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch 2014-02-13 21:14:54 +00:00
parent ec38a7695a
commit c3ad2d57d9

View File

@ -720,7 +720,7 @@ LUXTRONIK2_UpdateDone($)
if ( exists( $hash->{READINGS}{statBoilerGradientCoolDownMin} ) ) { if ( exists( $hash->{READINGS}{statBoilerGradientCoolDownMin} ) ) {
my @new = split / /, $value; my @new = split / /, $value;
my @old = split / /, $hash->{READINGS}{statBoilerGradientCoolDownMin}; my @old = split / /, $hash->{READINGS}{statBoilerGradientCoolDownMin};
if ($new[5]>6 && $new[0]<$old[0]) { if ($new[5]>6 && $new[0]>$old[0] && $new[0] < 0) {
readingsBulkUpdate($hash,"statBoilerGradientCoolDownMin",$value); readingsBulkUpdate($hash,"statBoilerGradientCoolDownMin",$value);
Log3 $name,3,"$name: statBoilerGradientCoolDownMin set to $value"; Log3 $name,3,"$name: statBoilerGradientCoolDownMin set to $value";
} }