TLDR: What trigger should I use to turn off a smart plug in the event of a possible hardware failure causing heating issues? Is it just as simple as PrintFailed?
Firstly, thanks everyone for all of the amazing help and articles I've been able to find in getting mostly everything set up for my printer. I've got event handling done due to some great guides and plugins, almost everything is running exactly as I want it to.
But I am in the middle of some prototyping, and it's going to involve some 20+ hour prints that I won't be able to monitor in full. While I realize that I should probably be fine, it would put my mind at ease knowing that I could automatically cut power if something starts to behave improperly in my absence.
So what event, gcode, etc. could I use to detect a possible hardware failure that is causing a loss of control of the temperature? It looks to me like maybe PrintFailed, but I don't want to make any assumptions. What would PrintFailed catch?