-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
[BUG]:Printer does not turn off after the idle period #361
Comments
This issue has been automatically marked as stale because it has not had activity in 14 days. It will be closed if no further activity occurs in 7 days |
Sometimes I also observe that described behaviour, but isn't needed to print something. Just turn on the plug, connect and wait should turn off the printer. But it's not present everytime, so I can't reproduce it yet. M81 in terminal does not turn off the plug. |
Both of you need to share screenshots of your settings please. For M81 to work you have to include the IP address of the plug you want to turn off. |
@lethuer for gcode to work you have to enable the gcode trigger option. |
Awesome ! That works immediately if I send this manually in terminal :) Now let me ask: After Idle time I can't observe M81 command in the terminal. |
You could do that in your end gcode of your slicer or in OctoPrint's gcode script section. Can't remember if sending the wait for temp command will block until the temp is reached and then allow power off. |
I also configured @TPLINKOFF code in section of cancelling a print.
|
I tried again and now received this:
I think the problem was that in my previous post I used @TPLINKOFF 192.168.178.46 instead of M81 192.168.178.46 in gcode section. So now M81 was sent which I can observe in the terminal. |
Based on your printer response to m81 I suspect the other option of using @TPLINKOFF command would be better. Also, typically what I see with gcode processing is that the delay isn't long enough to allow the final commands from the file to clear the printing buffer. If you want me to assist further I need you to enable debug logging in the plugin's settings and restart OctoPrint. After attempting and it fails share plugin_tplinksmartplug_debug.log. That will help determine what the plugin is doing. |
But I didn't observe any command is sent if @TPLINKOFF was set up in gcode script section
Logging was active the hole time, here is the file also containing yesterday evening. Can you work with that ? 1st try with @TPLINKOFF |
I missed that option in plugin settings, so here is another try... Nothing configured in gcode script section terminal:
M81 configured in gcode script section terminal:
@TPLINKOFF configured in gcode script section terminal output: Again I didn't observe any command is sent if @TPLINKOFF was set up in gcode script section
The log file: |
ok, so idle timeout is working properly. honestly that's the preferred approach as it will account for temperatures to be below a certain threshold before powering off. It's normal to not see @ commands in the terminal, because those aren't sent to the printer, they are specifically used internally by OctoPrint. It is strange that it doesn't work as expected. Based on your comment you added that command to OctoPrint's on cancel gcode script? |
Yes this time it worked like it should but in the past I had problems with it...
|
Thanks I'll do some additional testing with gcode scripts being used to trigger. There's a chance that those commands might not go through the processing queue like the file commands do that the plugin is using to do the work. |
Hi ! I again observe this issue that printer does not turn off after printing... |
Sorry, no, my focus has been on one of the many other plugins I maintain lately. Did you still have debug logging enabled? Could you share an updated log file if so. Also, by chance are you running the current stable version or the latest rc version? |
Here is an updated log file, print finished at 21:15 |
Did you happen to restart OctoPrint after the change? |
Yes sure :) |
ok, had a chance to look at the actual log and noticed this...
but that was way after the idle timeout, any errors in octoprint.log? what version are you running of the plugin? I just tested on my OctoPrint instance and powered on the printer from the button, it auto-connected and after the 3 minute timeout I got the message in the UI to allow me to cancel the power off if I wanted to and then it powered off. |
Yes. this is also working for me but the printer does not turn off after a print. This were the settings of the print today: And the tp link log file: Print was started at 16:33 and finished at 19:48. Also I have enabled this one for logging: I'm not really sure what to search for. The file is to large to upload here, but here is a download link: |
let's see if the issue persists in the current rc version. in OctoPrint's software update settings change the release channel for the plugin to |
Okay print was started at 19:19 and finished at 22:34, nozzle temp of about 50 degree (idle target temperature) was reached again at 22:45. I found this with "idle timer"
|
I tried to disable telegram to check if this is the problem. TP link again did not switch off after the print was done. I can still observe this ClientOpened event (so telegram seems not to be the issue):
Also tried this, here tp link does immediately switch off after the print was done. |
Yes, since the gcode triggers don't support cooldown you can either increase this delay out to an estimated time frame, or alternatively use a cooldown command in your slicer's end gcode setting to do that for you. Adding the below line to the slicer's end gcode would wait until temp is reached.
this way the OctoPrint gcode scripts for print completion would not trigger immediately because the print job wouldn't complete until that 50 was reached. unfortunately this wouldn't work for cancelled prints so the long delay may be the way to go. I don't know if there is a way to determine what client is being opened to troubleshoot that, but it's either someone opening the webpage or an external service/plugin doing it. |
|
if you enabled debug logging for octoprint.events.fire, it might help you determine where that is coming from. It will show line like below in octoprint.log to see the username and ip address the client is connecting from.
|
plugin_tplinksmartplug_debug (2).log Print started at 08:55 and finished at 10:19.
After I enabled debug logging for octoprint.events.fire in octoprint.log I can see these "ClientOpened" events:
This is my laptop, maybe because I had the web view opened (but I have to to start the print job... )
I give it a try and will disable the plugin. |
Okay disabled the plugin and I'm wondering why there are still messages updated on the ssd display. |
I'm at a loss then for your issue. I am unable to reproduce and everything works fine for me with idle timeout. |
Describe the bug
Configuring the printer to be turned off after a 30 minute idle time does not seem to result in it being turned off. The printer can be turned off and on with the icon that the plugin puts in the Octoprint toolbar but does not turn off when the printer is idle
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The TPLink smart plug should be turned off after the idle time
Desktop (please complete the following information):
plugin_tplinksmartplug_debug.log
The text was updated successfully, but these errors were encountered: