From 14d16ff37e8f600a45ffa62d4cfc25bb34a971ef Mon Sep 17 00:00:00 2001 From: Reijii Date: Tue, 8 Apr 2025 17:59:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=20=D0=B2=D1=8B=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=B3=D1=80=D0=B5=D0=BB=D0=BA=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D1=82=D0=B0=D0=B9=D0=BC=D0=B0=D1=83=D1=82=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/idle.cfg | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Scripts/idle.cfg b/Scripts/idle.cfg index b253f24..f49eee3 100644 --- a/Scripts/idle.cfg +++ b/Scripts/idle.cfg @@ -75,11 +75,16 @@ gcode: [delayed_gcode _IDLE_HEATER_SHUTDOWN] gcode: - RESPOND MSG="Грелка выключена" - {% if printer["gcode_macro RatOS"].tgbot_enabled|lower == 'true' %} - RESPOND PREFIX=tgnotify MSG="Грелка выключена" - {% endif %} - M104 S0 + {% if printer.idle_timeout.state == "Idle" or printer.idle_timeout.state == "Ready" %} + {% if printer.heater_bed.target == 0.0 %} + UPDATE_DELAYED_GCODE ID=_IDLE_HEATER_SHUTDOWN DURATION=0 + RESPOND MSG="Грелка выключена" + {% if printer["gcode_macro RatOS"].tgbot_enabled|lower == 'true' %} + RESPOND PREFIX=tgnotify MSG="Грелка выключена" + {% endif %} + M104 S0 + {% endif %} + {% endif %} [delayed_gcode _EXHAUST_FAN_DELAYED] gcode: