Adding parameters to END_PRINT

Hi folks,
just don´t want to change the END_PRINT macro or pull it out and add it to an own cfg.

I really would like to move z to a defined hight like 200 before the motors are switched off.

Further more, I would really like to ad a call for a special gcode at the end of the END_PRINT:
This gcode will wait until the heaters are cooled down and then shut down Klipper and after some waiting time it calls my Tasmota to switch off.

What should I do to get this working from your perspective?
Was this page helpful?