OctoPrint-TPLinkSmartplug icon indicating copy to clipboard operation
OctoPrint-TPLinkSmartplug copied to clipboard

[Feature Request]: Ability to turn off Plug based on other sensor data (e.g., enclosure temperature

Open puterboy opened this issue 1 year ago • 2 comments

Hi @jneilliii -- really love this plugin... And now that I have gotten my enclosure sensor to display in your other Plotly plugin, I would like to use the enclosure sensor to trigger a TP-Link power off if the temperature exceeds a user-specified value, similar to what you can do with the existing sensors.

I see this as a potentially important safety measure in that if the chamber is overheating, I can kill power to the printer and accessories, even if the other sensors have not yet triggered.

How hard would this be to implement?

puterboy avatar Aug 07 '22 23:08 puterboy

It would probably make more sense to keep the logic of the sensor reading and off triggers for those as part of the single file plugin that you made for the PlotyTempGraph plugin. In this plugin's current state there are only a couple of ways to trigger the off command. That is via API call as documented in the wiki or one of the gcode trigger commands when that option is enabled. I have been considering to add both CLI and plugin helpers to make integrating a little easier for others.

jneilliii avatar Aug 08 '22 02:08 jneilliii