I don't know if this becomes its own plugin or part of this one, but whenever I print with OctoPrint, the fan stays on indefinitely after the print completes. I have worked around this by adding GCODE to the end of the print to wait 5 minutes (to allow hotend to cool down), then turn off the fan. This however makes all my build time estimates be WAY off (it says it will take 40 minutes instead of the actual 7). I think with the timeout code you already have in this plugin it would be easy to add in an auto-shutoff of the fan if the machine is idle and the hotend is below a threshold.
I don't know if this becomes its own plugin or part of this one, but whenever I print with OctoPrint, the fan stays on indefinitely after the print completes. I have worked around this by adding GCODE to the end of the print to wait 5 minutes (to allow hotend to cool down), then turn off the fan. This however makes all my build time estimates be WAY off (it says it will take 40 minutes instead of the actual 7). I think with the timeout code you already have in this plugin it would be easy to add in an auto-shutoff of the fan if the machine is idle and the hotend is below a threshold.