Чуть больше логирования
This commit is contained in:
+4
-2
@@ -152,10 +152,12 @@ def check_temperatures():
|
||||
target_t = c.target_value
|
||||
if contour_t < target_t - hysteresis:
|
||||
# should turn on contour
|
||||
c.check_state(True)
|
||||
if c.check_state(True):
|
||||
logger.info("target: " + str(target_t) + " current: " + str(contour_t) + " hyst: " + str(hysteresis))
|
||||
if contour_t > target_t + hysteresis:
|
||||
# should turn off contour
|
||||
c.check_state(False)
|
||||
if c.check_state(False):
|
||||
logger.info("target: " + str(target_t) + " current: " + str(contour_t) + " hyst: " + str(hysteresis))
|
||||
|
||||
if any_opened:
|
||||
any_opened = False
|
||||
|
||||
Reference in New Issue
Block a user