jneilliii / OctoPrint-TasmotaMQTT

18 stars 16 forks source link

Add turnOn and turnOff API commands #32

Closed fieldOfView closed 4 years ago

fieldOfView commented 4 years ago

This PR adds turnOn and turnOff API commands, similar to what other power control plugins have (including the OctoPrint-Tasmota plugin).

This will make it easier for applications (such as Cura, through the Cura-OctoPrint plugin) to turn on a printer before sending over a print. See https://community.octoprint.org/t/tasmota-mqtt-turn-on-from-cura/14332/8