diff -r 5855abe0e82c -r 2f75f94d471b thermferm/thermferm.c --- a/thermferm/thermferm.c Tue Jul 25 11:43:35 2017 +0200 +++ b/thermferm/thermferm.c Tue Jul 25 13:16:49 2017 +0200 @@ -1662,9 +1662,12 @@ * Prevent cooling if we use a chiller and the chiller temperature is not low enough. */ if (unit->chiller_address && (unit->chiller_state == 0)) { - if ((unit->chiller_temperature / 1000.0) > (unit->PID_cool->Input - 1)) { + if ((unit->chiller_temperature / 1000.0) > ((unit->air_temperature / 1000.0) - 1)) { unit->PID_cool->OutP = 0.0; unit->alarm_flag |= ALARM_FLAG_CHILLER; + if (seconds == 60) { + syslog(LOG_NOTICE, "Cool: Air=%.2f Chiller=%.2f alarm", unit->air_temperature / 1000.0, unit->chiller_temperature / 1000.0); + } } } if (debug)