Automatic relay shutdown of printer on issue with thermal runaway

What is the problem?

Looking for a plugin or solution that will automatically switch off a relay connected on GPIO that in turn will switch of mains power for the 3D printer if a thermal run away occurs.

What did you already try to solve it?

Found the octorelay plugin, but does not seem that it can be used to monitor thermal issues

I would try the Events API. Events β€” OctoPrint master documentation The docs suggest that a thermal runaway can be detected.You could then call a script to flip the GPIO bit and shutdown the printer.

PSU Control plugin will do this, or any of my smartplug power plugins.