From 4943c735879751d3789bf9ec6c441de6860d9bbe Mon Sep 17 00:00:00 2001 From: mgehre <> Date: Sat, 15 Dec 2012 12:34:37 +0000 Subject: [PATCH] MAX: do not use wrong values on WallMountedThermostats git-svn-id: https://svn.fhem.de/fhem/trunk@2328 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/00_MAXLAN.pm | 2 +- fhem/FHEM/10_MAX.pm | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/fhem/FHEM/00_MAXLAN.pm b/fhem/FHEM/00_MAXLAN.pm index 8c15de0b2..21f658f01 100755 --- a/fhem/FHEM/00_MAXLAN.pm +++ b/fhem/FHEM/00_MAXLAN.pm @@ -541,7 +541,7 @@ MAXLAN_Parse($$) $valveoffset *= 100/255; my $decalcDay = ($decalcifiction >> 5) & 0x07; my $decalcTime = $decalcifiction & 0x1F; - Log $ll5, "comfortemp $comforttemp, ecotemp $ecotemp, boostValve $boostValve, boostDuration $boostDuration, tempoffset $tempoffset, $minsetpointtemp minsetpointtemp, maxsetpointtemp $maxsetpointtemp, windowopentemp $windowopentemp, windowopendur $windowopendur"; + Log $ll5, "comfortemp $comforttemp, ecotemp $ecotemp, boostValve $boostValve, boostDuration $boostDuration, tempoffset $tempoffset, minsetpointtemp $minsetpointtemp, maxsetpointtemp $maxsetpointtemp, windowopentemp $windowopentemp, windowopendur $windowopendur"; Dispatch($hash, "MAX,1,ThermostatConfig,$addr,$ecotemp,$comforttemp,$boostValve,$boostDuration,$tempoffset,$maxsetpointtemp,$minsetpointtemp,$windowopentemp,$windowopendur,$maxvalvesetting,$valveoffset,$decalcDay,$decalcTime,$weekprofile", {RAWMSG => $rmsg}); }elsif($devicetype == 4){#ShutterContact diff --git a/fhem/FHEM/10_MAX.pm b/fhem/FHEM/10_MAX.pm index 45a9d232b..e57d1804f 100755 --- a/fhem/FHEM/10_MAX.pm +++ b/fhem/FHEM/10_MAX.pm @@ -425,15 +425,15 @@ MAX_Parse($$) readingsBeginUpdate($shash); readingsBulkUpdate($shash, "ecoTemperature", $args[0]); readingsBulkUpdate($shash, "comfortTemperature", $args[1]); - readingsBulkUpdate($shash, "boostValveposition", $args[2]); - readingsBulkUpdate($shash, "boostDuration", $args[3]); - readingsBulkUpdate($shash, "measurementOffset", $args[4]); + readingsBulkUpdate($shash, "boostValveposition", $args[2]) if($shash->{type} eq "HeatingThermostat"); + readingsBulkUpdate($shash, "boostDuration", $args[3]) if($shash->{type} eq "HeatingThermostat"); + readingsBulkUpdate($shash, "measurementOffset", $args[4]) if($shash->{type} eq "HeatingThermostat"); readingsBulkUpdate($shash, "maximumTemperature", $args[5]); readingsBulkUpdate($shash, "minimumTemperature", $args[6]); - readingsBulkUpdate($shash, "windowOpenTemperature", $args[7]); + readingsBulkUpdate($shash, "windowOpenTemperature", $args[7]) if($shash->{type} eq "HeatingThermostat"); readingsBulkUpdate($shash, "windowOpenDuration", $args[8]) if($shash->{type} eq "HeatingThermostat"); - readingsBulkUpdate($shash, "maxValveSetting", $args[9]); - readingsBulkUpdate($shash, "valveOffset", $args[10]); + readingsBulkUpdate($shash, "maxValveSetting", $args[9]) if($shash->{type} eq "HeatingThermostat"); + readingsBulkUpdate($shash, "valveOffset", $args[10]) if($shash->{type} eq "HeatingThermostat"); readingsBulkUpdate($shash, "decalcification", "$decalcDays[$args[11]], $args[12]:00"); #readingsBulkUpdate($shash, "weekProfile", "$args[13]"); $shash->{internal}{weekProfile} = $args[13];