mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
MAX: ignore desiredTemperature = 0
git-svn-id: https://svn.fhem.de/fhem/trunk@2623 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
49f587ddab
commit
7578b7d801
@ -527,8 +527,9 @@ MAX_Parse($$)
|
||||
|
||||
readingsBulkUpdate($shash, "mode", $ctrl_modes[$mode] );
|
||||
readingsBulkUpdate($shash, "battery", $batterylow ? "low" : "ok");
|
||||
#This formatting must match with in MAX_Set:$templist
|
||||
readingsBulkUpdate($shash, "desiredTemperature", sprintf("%2.1f",$desiredTemperature));
|
||||
#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
|
||||
readingsBulkUpdate($shash, "desiredTemperature", sprintf("%2.1f",$desiredTemperature)) if($desiredTemperature != 0);
|
||||
readingsBulkUpdate($shash, "valveposition", $valveposition);
|
||||
if($measuredTemperature ne "") {
|
||||
readingsBulkUpdate($shash, "temperature", sprintf("%2.1f",$measuredTemperature));
|
||||
|
Loading…
Reference in New Issue
Block a user