Anycubic Auto Shut Off

Hi everyone, I installed Octoprint on my Anycubic 4 Max Pro and everything works smoothly. I only have one problem, the 4 Max Pro has automatic switch-off both after inactivity and after the end of printing, and obviously it is impossible remotely to reactivate it and send to print at any time.

Is there a command to be given via pronterface to disable these options and decide via smart socket when to switch it off?

Thanks a lot for your help

just btw - you can do the same stuff in the terminal tab of OctoPrint :slight_smile:

This one is the inactivity gcode


(I guess setting it to 0 disables it)
but I have no idea how to disable the switch off after printing.
Maybe there is something in your end gcode?