You can use a wifi power plug such as TPlink. You will have to root your K1 and install moonraker to set a macro to control the tplink plug.
in moonraker.conf add
[power printer]
type: tplink_smartplug
address: 192.168.0.172 'insert the IP address of the tplink plug
restart_klipper_when_powered: True
restart_delay: 3
port: 9999
in gcode_macro_cfg ADD
[gcode_macro POWER_OFF_PRINTER]
gcode:
{action_call_remote_method(“set_device_power”,
device=“printer”,
state=“off”)}
[delayed_gcode delayed_printer_off]
initial_duration: 0.
gcode:
POWER_OFF_PRINTER
Modify END_PRINT macro: Add last line.
[gcode_macro END_PRINT]
gcode:
Qmode_exit
EXCLUDE_OBJECT_RESET
PRINT_PREPARE_CLEAR
M220 S100
SET_VELOCITY_LIMIT ACCEL=5000 ACCEL_TO_DECEL=2500
TURN_OFF_HEATERS
M107 P1
M107 P2
END_PRINT_POINT
WAIT_TEMP_START
M84
UPDATE_DELAYED_GCODE ID=delayed_printer_off DURATION=300
Bill