2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

MAX: format desiredTemperature with fixed precision

This make the new longpoll update of dropdowns work.

git-svn-id: https://svn.fhem.de/fhem/trunk@2200 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
mgehre 2012-11-26 19:48:11 +00:00
parent 4bdd36c988
commit 47f90870ae

View File

@ -264,7 +264,8 @@ MAX_Parse($$)
readingsBeginUpdate($shash);
readingsBulkUpdate($shash, "battery", $batterylow ? "low" : "ok");
readingsBulkUpdate($shash, "desiredTemperature", $temperaturesetpoint);
#This formatting must match with in MAX_Set:$templist
readingsBulkUpdate($shash, "desiredTemperature", sprintf("%2.1f",$temperaturesetpoint));
readingsBulkUpdate($shash, "valveposition", $valveposition);
if($measuredTemperature ne "") {
readingsBulkUpdate($shash, "temperature", $measuredTemperature);