In Klipper firmware, you can control your printer’s LED light using the SET_PIN command. This guide explains how to use macro commands so the LED automatically turns on at the start of a print and off when the print finishes.
You can add these commands to your slicer’s printer profile so that the LED light is controlled automatically.