From 7f300ddc2c3f190f028c0d86340b23a5fcb68bfa Mon Sep 17 00:00:00 2001 From: Denis Denisov Date: Sun, 14 Dec 2025 15:53:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=20=D1=81=20=D0=BE=D0=BF?= =?UTF-8?q?=D1=80=D0=B5=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC=20?= =?UTF-8?q?"=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=20=D0=BB=D0=B8=20=D0=BA?= =?UTF-8?q?=D0=B0=D0=BA=D0=BE=D0=B9-=D0=BD=D0=B8=D0=B1=D1=83=D0=B4=D1=8C?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BD=D1=82=D1=83=D1=80=20=D0=B2=20=D1=82=D0=B5?= =?UTF-8?q?=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20N=20=D0=B2=D1=80=D0=B5=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- heat_control.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/heat_control.py b/heat_control.py index f4453a1..0d32274 100644 --- a/heat_control.py +++ b/heat_control.py @@ -161,15 +161,17 @@ def check_temperatures(): mqtt_client.publish(c.out_topic, "1", retain=True) if any_opened: + any_opened = False for c in contours: - if not c.state: - any_opened = False + if c.state: + any_opened = True else: for c in contours: if c.state: any_opened = True any_opened_start = time.time() + logger.debug("Any opened: " + str(any_opened) + " aos " + str(any_opened_start) + " time " + str(time.time())) if any_opened and time.time() - any_opened_start > BOILER_TURN_ON_AFTER: mqtt_client.publish(boiler_control, "1", retain=True) mqtt_client.publish(pump_control, "1", retain=True)