Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Power off relay when shutting down Octoprint from web UI / Power button #180

Open
JMVS opened this issue May 12, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@JMVS
Copy link

JMVS commented May 12, 2022

My setup:

  • Octoprint running on old laptop on Windows as a service
  • Printer connected via USB to Windows laptop with it's own swtich always on
  • Both elements connect to the same power strip with a Tasmota device

I'm already able to turn the printer on and connect to it when turning on the computer using your plugin.

What I want to do:
Being able to shutdown printer when I shutdown computer (either by power off button or Octoprint's web UI).
I've tried with the Disconnect / Autodisconnect options, but entered in a "bootloop" (Windows shutting down on startup) and Tasmota/Printer turning on & off constantly. I've managed to recover from that but I don't want to get into that again. Any pointers?
I should note that as the notebook has it's own battery I don't really care if the Tasmota device is turned off before the computer shuts down.

Thanks in advance.

@jneilliii
Copy link
Owner

I'd have to add shutdown event monitoring like I have in my TPLinkSmartplug plugin in order to get what you're after cleanly. A workaround for now might be using OctoPrint's event manager to send gcode triggers for the plugin to react to.

@jneilliii jneilliii added the enhancement New feature or request label May 12, 2022
@jneilliii jneilliii added this to the 1.1.3 milestone Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants