fluidd-core / fluidd

Fluidd, the klipper UI.
https://docs.fluidd.xyz
GNU General Public License v3.0
1.34k stars 401 forks source link

FR: Seperate options for on/off switch in top bar #1350

Open Arakon opened 5 months ago

Arakon commented 5 months ago

Is your feature request related to a problem? Please describe

The on/off switch only allows to power i.e. the printer on or off. If one was to use a power down macro (in this specific case, to switch neopixel LEDs off before shutting off the relay the cuts power to the mainboard and power supply, while leaving the Raspberry running on its own PSU), then the user has to click on the macro's button instead of using the power button in the top bar to shut down properly. Considering how many things Klipper can control these days, it would be nice to have the option to perform extra steps before power is cut hard.

Unfortunately, assigning the button to a klipper_device will not allow the user to also use the button to turn the printer back on anymore.

Describe the solution you'd like

Have seperate on/off entries of the power button. Example:

Describe alternatives you've considered

No response

Additional information

No response

pedrolamas commented 5 months ago

Hi @Arakon, thank you for submitting this Feature Request.

I haven't delved much into it yet, but have you considered using a Moonraker [power] device with type: klipper_device and calling a macro?

Please check here for more information on this.

Arakon commented 5 months ago

I have. Unfortunately, when using klipper_device as a type, I can not turn the printer back on, since Klipper goes into shutdown state once the mainboard connection is lost, so no further communication with Klipper is possible (i.e. to run a macro to turn on power). image