2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-12 02:39:57 +00:00

MAX: fix WallThermostat Ack parsing

git-svn-id: https://svn.fhem.de/fhem/trunk@2521 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2013-01-15 22:50:30 +00:00
parent 7bfaa0bdeb
commit 72fc7caa91

View File

@ -511,9 +511,9 @@ 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]) == 13) {
} elsif( 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=13: Payload of the Ack message, last field "temperature" is missing
#len=12: Payload of the Ack message, last field "temperature" is 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