--- a/www-thermferm/getstate.php Mon Jan 21 17:11:50 2019 +0100 +++ b/www-thermferm/getstate.php Thu Feb 07 14:59:47 2019 +0100 @@ -1,6 +1,6 @@ <?php /***************************************************************************** - * Copyright (C) 2014-2017 + * Copyright (C) 2014-2019 * * Michiel Broek <mbroek at mbse dot eu> * @@ -92,10 +92,14 @@ $psu = "yes"; if (($f[0] == "DOOR_ADDRESS") && (strcmp($f[1], "(null)"))) $door = "yes"; - if (($f[0] == "BEER_SET") && ($mode == "BEER")) - $target_temperature_lo = $target_temperature_hi = $f[1]; - if (($f[0] == "FRIDGE_SET") && ($mode == "FRIDGE")) - $target_temperature_lo = $target_temperature_hi = $f[1]; + if (($f[0] == "BEER_SET_LO") && ($mode == "BEER")) + $target_temperature_lo = $f[1]; + if (($f[0] == "BEER_SET_HI") && ($mode == "BEER")) + $target_temperature_hi = $f[1]; + if (($f[0] == "FRIDGE_SET_LO") && ($mode == "FRIDGE")) + $target_temperature_lo = $f[1]; + if (($f[0] == "FRIDGE_SET_HI") && ($mode == "FRIDGE")) + $target_temperature_hi = $f[1]; if (($f[0] == "PROF_TARGET_LO") && ($mode == "PROFILE")) $target_temperature_lo = $f[1]; if (($f[0] == "PROF_TARGET_HI") && ($mode == "PROFILE"))