I posted this request in the github and was told it is already possible. The response was:
“This is done via moonraker power devices, since you want to use a pin you need to create a klipper-device variation, info here:
https://moonraker.readthedocs.io/en/latest/configuration/?h=klipper+power+device#klipper-device-configurationthen on klipperscreen.conf
# Define one or more moonraker power devices that turn on/off with the screensaver (CSV list) # screen_on_devices: example1, example2 # screen_off_devices: example1, example2
info here: https://klipperscreen.readthedocs.io/en/latest/Configuration/#main-options
I’m still a little unclear on the exact details. In printer.cfg I have a pin definition:
[led Printer_Lights]
white_pin: PA3
cycle_time: 0.001
initial_WHITE: 1.0
So then do I make a moonraker.conf entry like so:
object_name: led Printer_Lights
and then a KlipperScreen.conf entry like this:
screen_on_devices: led Printer_Lights
screen_off_devices: led Printer_Lights
It feels like I’m missing something here.