From 19f37840a828758fd81854b3d4ede46f1a38c98d Mon Sep 17 00:00:00 2001 From: mgehre <> Date: Wed, 20 Feb 2013 00:04:52 +0000 Subject: [PATCH] MAX: yet another WallThermostatState message format git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@2773 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/10_MAX.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FHEM/10_MAX.pm b/FHEM/10_MAX.pm index 79201fae5..d144ef31e 100755 --- a/FHEM/10_MAX.pm +++ b/FHEM/10_MAX.pm @@ -612,9 +612,10 @@ MAX_Parse($$) if( length($args[0]) == 4 ) { #WallThermostatControl #This is the message that WallMountedThermostats send to paired HeatingThermostats ($desiredTemperature,$temperature) = unpack("CC",pack("H*",$args[0])); - } elsif( length($args[0]) == 6 or length($args[0]) == 14 or length($args[0]) == 12) { #WallThermostatState + } elsif( length($args[0]) >= 6 and length($args[0]) <= 14) { #WallThermostatState #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 an Ack message, last field "temperature" is missing + #len=10: Received by MAX_CUL as WallThermostatState #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