Чуть больше логирования

This commit is contained in:
ftc
2025-12-26 15:09:49 +03:00
parent ff11153b36
commit 98cad51f78
2 changed files with 7 additions and 3 deletions
+4 -2
View File
@@ -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