Multiple timeout

hi.
im looking for a feature for multiple idle_timeout.

exp. for hotend and heatbed

looks like:

[idle_timeout timer1]
gcode:
 M104 S0
timeout: 120

[idle_timeout timer2]
gcode:
 TURN_OFF_HEATERS 
 M84
 timeout: 8000

with SET_IDLE_TIMEOUT TARGET=timer1 TIMEOUT=43000 you can set specific timer

There is no ability to declare multiple idle_timeout sections. However, you can use command templates ( Commands templates - Klipper documentation ) to take different actions when the idle_timeout does run.

-Kevin

ok thanks
my current solution.

[idle_timeout]
gcode:
 M104 S0
 UPDATE_DELAYED_GCODE ID=bed_off DURATION=36000
timeout: 600

[delayed_gcode bed_off]
gcode:
 {% if printer.idle_timeout.state == "Idle" %}
 M140 S0
 M84
 {% endif %}

Would you consider adding support for more timeout scenario’s? For example it would be very useful to have a longer idle timeout for when filament runs out, opposed to when the printer has finished printing.

ps I use the idle_timeout to shutdown a tasmota device.