Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arakon opened this issue Feb 9, 2024 · 2 comments
Open

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

Arakon opened this issue Feb 9, 2024 · 2 comments
Labels
FR - Enhancement New feature or request

Comments

@Arakon
Copy link

Arakon commented Feb 9, 2024

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:

  • Power is off, click the button to toggle the relay GPIO pin via Moonraker
  • Power is on, click the button to execute a macro of choice, i.e. to disable the lights on a display or tell the display to shut down, send a message, park the printhead, and/or toggle GPIO pins.

Describe alternatives you've considered

No response

Additional information

No response

@Arakon Arakon added the FR - Enhancement New feature or request label Feb 9, 2024
@pedrolamas
Copy link
Member

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
Copy link
Author

Arakon commented Feb 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FR - Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants