From f1b892d4e4ac599e2fcdd1c8c602a43a2a64ddd4 Mon Sep 17 00:00:00 2001 From: mgehre <> Date: Sat, 23 Nov 2013 11:19:37 +0000 Subject: [PATCH] MAX: force correct formatting of preset temperatures git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4270 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_MAX.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/FHEM/10_MAX.pm b/FHEM/10_MAX.pm index ab0d55cbb..7392ec2bf 100755 --- a/FHEM/10_MAX.pm +++ b/FHEM/10_MAX.pm @@ -770,7 +770,16 @@ MAX_Parse($$) } elsif(grep /^$msgtype$/, ("AckConfigValve", "AckConfigTemperatures", "AckSetDisplayActualTemperature" )) { - readingsBulkUpdate($shash, $args[0], $args[1]); + if($args[0] == "windowOpenTemperature" + || $args[0] == "comfortTemperature" + || $args[0] == "ecoTemperature" + || $args[0] == "maximumTemperature" + || $args[0] == "minimumTemperature" ) { + readingsBulkUpdate($shash, $args[0], MAX_SerializeTemperature($args[1])); + } else { + #displayActualTemperature, boostDuration, boostValveSetting, maxValve, decalcification, valveOffset + readingsBulkUpdate($shash, $args[0], $args[1]); + } } elsif(grep /^$msgtype$/, ("AckSetGroupId", "AckRemoveGroupId" )) {