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

Using internal Sensing Printer doesn't turn off after printing #245

Open LittleEumel opened 2 years ago

LittleEumel commented 2 years ago

When PSU Control reaches the timeout, it didnt shutdown the printer, because it wants to turn off the heater first.

Logfile content: 2022-06-15 23:48:26,077 - octoprint.plugins.psucontrol - INFO - Idle timeout reached after 2 minute(s). Turning heaters off prior to shutting off PSU. 2022-06-15 23:48:26,078 - octoprint.plugins.psucontrol - DEBUG - Heater tool0 already off. 2022-06-15 23:48:26,078 - octoprint.plugins.psucontrol - DEBUG - Heater tool1 already off. 2022-06-15 23:48:26,079 - octoprint.plugins.psucontrol - DEBUG - Heater tool2 already off. 2022-06-15 23:48:26,079 - octoprint.plugins.psucontrol - DEBUG - Heater tool3 already off. 2022-06-15 23:48:26,079 - octoprint.plugins.psucontrol - DEBUG - Heater tool4 already off. 2022-06-15 23:48:26,080 - octoprint.plugins.psucontrol - DEBUG - Heater bed already off. 2022-06-15 23:48:26,080 - octoprint.plugins.psucontrol - INFO - Turning off heater: OT 2022-06-15 23:48:29,669 - octoprint.plugins.psucontrol - DEBUG - Polling PSU state... 2022-06-15 23:48:29,670 - octoprint.plugins.psucontrol - DEBUG - isPSUOn: True 2022-06-15 23:48:34,675 - octoprint.plugins.psucontrol - DEBUG - Polling PSU state... 2022-06-15 23:48:34,675 - octoprint.plugins.psucontrol - DEBUG - isPSUOn: True 2022-06-15 23:48:39,681 - octoprint.plugins.psucontrol - DEBUG - Polling PSU state... 2022-06-15 23:48:39,681 - octoprint.plugins.psucontrol - DEBUG - isPSUOn: True 2022-06-15 23:48:44,685 - octoprint.plugins.psucontrol - DEBUG - Polling PSU state... 2022-06-15 23:48:44,686 - octoprint.plugins.psucontrol - DEBUG - isPSUOn: True 2022-06-15 23:48:49,692 - octoprint.plugins.psucontrol - DEBUG - Polling PSU state... 2022-06-15 23:48:49,692 - octoprint.plugins.psucontrol - DEBUG - isPSUOn: True 2022-06-15 23:48:54,698 - octoprint.plugins.psucontrol - DEBUG - Polling PSU state... 2022-06-15 23:48:54,698 - octoprint.plugins.psucontrol - DEBUG - isPSUOn: True ...

PSC Control sensing is set to internal. Manual switching is working fine.

Systeminfo: browser.user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 connectivity.connection_check: 8.8.8.8:53 connectivity.connection_ok: True connectivity.enabled: True connectivity.online: True connectivity.resolution_check: octoprint.org connectivity.resolution_ok: True env.hardware.cores: 4 env.hardware.freq: 1200.0 env.hardware.ram: 914006016 env.os.bits: 32 env.os.id: linux env.os.platform: linux env.plugins.pi_support.model: Raspberry Pi 3 Model B Rev 1.2 env.plugins.pi_support.octopi_version: 0.18.0 env.plugins.pi_support.octopiuptodate_build: 0.18.0-1.8.1-20220524101555 env.plugins.pi_support.throttle_check_enabled: True env.plugins.pi_support.throttle_check_functional: True env.plugins.pi_support.throttle_state: 0x0 env.python.pip: 20.3.3 env.python.version: 3.7.3 env.python.virtualenv: True octoprint.last_safe_mode.date: 2022-06-09T19:40:25Z octoprint.last_safe_mode.reason: settings octoprint.safe_mode: False octoprint.version: 1.8.1 printer.firmware: Prusa-Firmware 3.11.0 based on Marlin systeminfo.generated: 2022-07-17T09:14:21Z systeminfo.generator: zipapi

wolph commented 2 years ago

It's not working for me using "Plugin" sensing either. Using the Home Assistant plugin.