Delayed SET_PIN after shutdown

My Biqu B1 (SKR 1.4) is on its way to Klipper. On the SKR 1.4 I have attached a MKS PWC module, which can detach the whole printer from AC. The Raspi is powered from the PSU of the Biqu B1.

In Marlin I configured a delay of 3 minutes to turn off the MKS PWC. In this time, the Raspi can make a clean shutdown.

Is it possible to do this with Klipper without rewiring the MKS PWC to the Raspi?

Thx,
Markus

I’m only aware that it works via the RPi GPIO pins. See Configuration - Moonraker

Shutdown command to the raspberry - #4 by Fuksas showed me how to do a system shutdown from a menu entry. I think you could probably build on that to invoke system shutdown and add a timer to toggle a pin on the SKR to turn off the PWC (if that’s how it works). Basically:

  • system shutdown
  • UPDATE_DELAYED_GCODE ID=turn_off_pwc DURATION=180

With a [delayed_gcode turn_off_pwc] that sets the pin? Just spitballing…