Problems switching on the printer with moonraker

Hi
I am new to the Klipper world and i´m curious to find out more. I have installed Klipper on a Creality Ender3 S1 PRO. Mainsail OS and moonraker are on a raspberry pi 4. This combination worked fine from the beginning. Now I want to control a Relay from my raspberryPi to switch the PSU from my Printer on and off. With a bit effort I got this running. The only thing whats left ist to switch off the PSU after printing via GCode. I´m sure this is a common procedure but I can´t find any suitable informations. I also asked the all Mighty ChatGPT and he also dont´t know a solution ;-).
What I have in moonraker.conf:
[power printer]
type: gpio
pin: gpiochip0/gpio21 # Der gewünschte GPIO-Pin
active_high: true # Wenn true, schaltet 1 den Pin ein
initial_state: off
name: PSU
gave me an option in the “Power Section” in right upper corner to switch my PSU on and off. Strabgely the Name of my PSU in the list ist not PSU but instead printer. I tried out so many things that I found in the Internet but none of them worked for me. As soon as I write something in the printer.conf my PSU Button stops working or Klipper reports a problem or… Has someone a hint for me what to do.

Uli
klippy.zip (2.1 MB)

See Configuration - Moonraker

You will need to use a “smart plug”, such as TP-Link, Shelly, or Tasmota, that can cut the mains power to the PSU.

As said… This is already funktionable. I have an SSR on GPIO pin 21 of the raspberry pi