What is the problem?
Trying to setup a script to power off printer on an error event, end goal to prevent fire during thermal runaway. Script to turn off printer via GPIO 18 and relay works but Octoprint will not trigger it. Might be related, Octoprint will not automatically connect to the printer on server startup.
What did you already try to solve it?
Changing permissions on scripts, multiple config changes, setting up configs through the GUI.
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, what kind of hardware precisely, ...)
Octoprint 1.7.3 on Octopi 0.18.0 running on Pi zero W V1.1