kantlivelong / OctoPrint-PSUControl

Smart control of your power supply via GPIO, GCODE Command, System Command, or variety of sub-plugins.
GNU Affero General Public License v3.0
203 stars 113 forks source link

Turn on prior to printing after API upload does not turn PSU on after an upload #249

Open Simonlebucheron opened 2 years ago

Simonlebucheron commented 2 years ago

What were you doing?

Uploading a file to octoprint does not turn on PSU automatically. The function "Turn on prior to printing after API upload" is however enabled in the settings as shown on the octoprint screenshot below.

Octoprint settings screenshot:

2022-09-02 (2)

Note 1: PSU control work well with the switch button in the octoprint webpage. Note 2: Switching on the PSU after uploading a file with cura work well when I use the dedicated function in the cura-octoprint plug-in, (more info below in case 2).

What did you expect to happen?

PSU should turn ON after uploading a file to octoprint.

What happened instead?

PSU stay off

Version of OctoPrint-PSUControl

PSU Control (1.0.6) PSU Control - RPi.GPIO (1.0.4)

Operating System running OctoPrint

OctoPrint 1.8.2 Python 3.7.3 OctoPi 0.18.0

Printer model & used firmware incl. version

Hardware: Ender 3v2 printer, the 24V power supply of the v4.2.2 board is toggled by a relay and controlled via the pin 17 of the raspberry (with PSU control - RPI.GPIO). Software: Cura 5.1.0, cura-octoprintplugin v3.7.2

Link to octoprint.log with octoprnt.plugins.psucontrol set to DEBUG

gist.github.com log file

For the record, I made three different case in this log:

Case 2 screenshot

2022-09-13
DanForever commented 1 year ago

For what it's worth, this happens to me too. I'm using the Shelly smart plug plugin