How to set the LED light to automatically turn off in Orca after printing ends!

Add the following code to the position shown in the image, and the LED light will automatically turn off after printing ends:

SET_LED LED=cavity_led WHITE=0

Is there any way to have them auto turn on everytime you start a new print?

Its annoying Snapmaker can’t add this to a firmware update or bake it in to Snorca… With all the printers Snapmaker is selling they really need to put more resources into Snorca! Even Anycubic’s Slicer Next is better…

After adding this, every print slice will automatically include the light-off command, no additional operation needed.

Haha, I’ve already complained to the product manager. Such a simple feature, and I’ve mentioned it several times — just add it faster. He’s already promised to include the code natively in the next version.

You’re the best @Simon_Zhi! With persistence, we’ll get it eventually! :sweat_smile:

Yes I have add this to my end g code to trunk off when a print finishes. I was wondering if I can add something to my start g code that will turn ON the leds. My printer is in my basement and I use Octoeverywhere to monitor my prints and it needs the leds on to see it better. Its just a inconvenience to remember to manually turn the lights on when I start a print.

Copy the end code and make white=1 ??

@B27

The light is automatically turned on with every new print—regardless of whether it was turned off by the G-code or by the user.

Not true…it doesn’t turn on at the start…or at least not on my machine. I did fix it by adding

SET_LED LED=cavity_led WHITE=1

to the start g code and that worked perfectly.

I think it only turns on automatically if you’ve activated the time lapse recording (as it needs the light for the photos).

Ok, that makes sense. I don’t ever do time-lapse so that’s why it wasn’t coming on for me and was of others.

The light always turns on automatically for my printer, always has, and I never use the timelapse feature. Not sure why it would be different for anyone else, but not surprised either.

Is it important at which line to add that LED On command or is it irrelevant?

The lights turn on at print start if the spaghetti detection is detected. Something like that.

Except they tried to add this during beta testing and half of us asked them not to because we use the light to illuminate dark printing corners. You can still find it in the klipper configuration file commented out in the print end macro.

If this is added, I rather it be an option to choose the desired behavior on the screen rather than a blanket on/off. It may be why the most basic “always turn it off” is not implemented, given beta testers were evenly divided. Perhaps they want to do a little more screen magic.

(Personally, I’ve even added a delayed gcode macro to always turn on the led when it turns on. :sweat_smile:)

I added it to the Start & End gcode for the printer. On in Start, off in End. If I don’t want it to turn off I use the system U1 printer.

Yes, I understand what you mean. The code I use to turn off the LED light is added as end G-code at the end of each print, so that after each print, the LED light turns off by itself instead of staying on all night.

Generally, I also recommend printing with the light on because it helps the camera work and determine whether a printing error has occurred.