From 0774c9db0e9a7f89abbef7f84769e7bf51a9e491 Mon Sep 17 00:00:00 2001 From: mgehre Date: Fri, 8 Feb 2013 19:44:43 +0000 Subject: [PATCH] MAX: add yet another WallThermostatState message git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2670 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_MAX.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FHEM/10_MAX.pm b/FHEM/10_MAX.pm index fa86bb12e..e8892e9de 100755 --- a/FHEM/10_MAX.pm +++ b/FHEM/10_MAX.pm @@ -486,9 +486,10 @@ MAX_Parse($$) if( length($args[0]) == 4 ) { #This is the message that WallMountedThermostats send to paired HeatingThermostats ($desiredTemperature,$temperature) = unpack("CC",pack("H*",$args[0])); - } elsif( length($args[0]) == 14 or length($args[0]) == 12) { + } elsif( length($args[0]) == 6 or length($args[0]) == 14 or length($args[0]) == 12) { #len=14: This is the message we get from the Cube over MAXLAN and which is probably send by WallMountedThermostats to the Cube - #len=12: Payload of the Ack message, last field "temperature" is missing + #len=12: Payload of an Ack message, last field "temperature" is missing + #len=6 : Payload of an Ack message, last four fields (especially $heaterTemperature and $temperature) are missing ($bits2,$displayActualTemperature,$desiredTemperature,$null1,$heaterTemperature,$null2,$temperature) = unpack("aCCCCCC",pack("H*",$args[0])); #$heaterTemperature/10 is the temperature measured by a paired HeatingThermostat #we don't do anything with it here, because this value also appears as temperature in the HeatingThermostat's ThermostatState message