Чуть логирования для случая когда связи с датчиком нет
This commit is contained in:
+2
-1
@@ -147,6 +147,7 @@ def check_temperatures():
|
|||||||
# sensor is offline
|
# sensor is offline
|
||||||
if contour_t is None:
|
if contour_t is None:
|
||||||
contour_t = sum_t / count_t
|
contour_t = sum_t / count_t
|
||||||
|
logger.info("Contour " + c.sensor_topic + " has no data from sensor, using others' average")
|
||||||
target_t = target_temp
|
target_t = target_temp
|
||||||
if not c.target_value is None:
|
if not c.target_value is None:
|
||||||
target_t = c.target_value
|
target_t = c.target_value
|
||||||
@@ -176,7 +177,7 @@ def check_temperatures():
|
|||||||
boiler_out = 1
|
boiler_out = 1
|
||||||
pump_out = 1
|
pump_out = 1
|
||||||
else:
|
else:
|
||||||
logger.info("All contours are closed, shutting down boiler and pump")
|
logger.info("All contours are considered closed, shutting down boiler and pump")
|
||||||
boiler_out = 0
|
boiler_out = 0
|
||||||
pump_out = 0
|
pump_out = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user