MAX: show restricted valveposition on HeatingThermostatPlus with MAXLAN

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3355 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2013-06-28 17:50:42 +00:00
parent eb1a0e8802
commit 48258e9814

View File

@ -615,9 +615,13 @@ MAX_Parse($$)
#The formatting of desiredTemperature must match with in MAX_Set:$templist #The formatting of desiredTemperature must match with in MAX_Set:$templist
#Sometime we get an MAX_Parse MAX,1,ThermostatState,01090d,180000000000, where desiredTemperature is 0 - ignore it #Sometime we get an MAX_Parse MAX,1,ThermostatState,01090d,180000000000, where desiredTemperature is 0 - ignore it
readingsBulkUpdate($shash, "desiredTemperature", sprintf("%2.1f",$desiredTemperature)) if($desiredTemperature != 0); readingsBulkUpdate($shash, "desiredTemperature", sprintf("%2.1f",$desiredTemperature)) if($desiredTemperature != 0);
readingsBulkUpdate($shash, "valveposition", $valveposition);
if($measuredTemperature ne "") { if($measuredTemperature ne "") {
readingsBulkUpdate($shash, "temperature", sprintf("%2.1f",$measuredTemperature)); readingsBulkUpdate($shash, "temperature", sprintf("%2.1f",$measuredTemperature));
if($shash->{type} =~ /HeatingThermostatPlus/ and $hash->{TYPE} eq "MAXLAN") {
readingsBulkUpdate($shash, "valveposition", int($valveposition*MAX_ReadingsVal($shash,"maxValveSetting")/100));
} else {
readingsBulkUpdate($shash, "valveposition", $valveposition);
}
} }
}elsif($msgtype ~~ ["WallThermostatState", "WallThermostatControl" ]){ }elsif($msgtype ~~ ["WallThermostatState", "WallThermostatControl" ]){