From f3289e5c65c6facab23419a31d656adf2cdced92 Mon Sep 17 00:00:00 2001 From: mgehre <> Date: Sat, 15 Dec 2012 12:35:20 +0000 Subject: [PATCH] MAX: fix measurementOffset calculation (thanks to reacend) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2330 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_MAX.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/10_MAX.pm b/FHEM/10_MAX.pm index 0602ebc53..7fafcf377 100755 --- a/FHEM/10_MAX.pm +++ b/FHEM/10_MAX.pm @@ -370,7 +370,7 @@ MAX_Parse($$) #The HeatingThermostat uses the measurementOffset during control #but does not apply it to measuredTemperature before sending it to us my $measOffset = ReadingsVal($shash->{NAME},"measurementOffset",""); - $measuredTemperature += $measOffset if($measuredTemperature ne "" and $measOffset ne ""); + $measuredTemperature -= $measOffset if($measuredTemperature ne "" and $measOffset ne ""); $shash->{mode} = $mode; $shash->{rferror} = $rferror; @@ -538,7 +538,7 @@ MAX_Parse($$)
  • comfortTemperature <value>
    For devices of type HeatingThermostat only. Writes the given comfort temperature to the device's memory. It can be activated by pressing the rightmost physical button on the device.
  • measurementOffset <value>
    - For devices of type HeatingThermostat only. Writes the given temperature offset to the device's memory. The thermostat tries to match desiredTemperature to (measured temperature at sensor + measurementOffset). Usually, the measured temperature is a bit higher than the overall room temperature (due to closeness to the heater), so one uses a small negative offset. Must be between -3.5 and 3.5 degree.
  • + For devices of type HeatingThermostat only. Writes the given temperature offset to the device's memory. The thermostat tries to match desiredTemperature to (measured temperature at sensor - measurementOffset). Usually, the measured temperature is a bit higher than the overall room temperature (due to closeness to the heater), so one uses a small positive offset. Must be between -3.5 and 3.5 degree.
  • minimumTemperature <value>
    For devices of type HeatingThermostat only. Writes the given minimum temperature to the device's memory. It confines the temperature that can be manually set on the device.
  • maximumTemperature <value>