-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
POWERTOGGLE only Powering off #1924
Comments
This is actually intended because my TPLink Plugin doesn't have a toggle state the same way that PSU Control plugin does. I use a separate button for the on/off commands. If you want the toggle option, you can switch to using PSU Control with the TPLink sub-plugin for it. |
Okay, thank you! It's still unexpected behaviour I think. It's probably a good idea to mention this in the custom actions documentation. I will stick to distinct on/off actions, I actually find it hard to think of a situation where "!POWERON" is necessary thanks to the automation. |
I also have this Problem but with a simple Relay, not a Smartplug. It would be very nice to have just 1 Button to Controll the Power... Is there a Workaround? |
@7R0J4Ner POWERTOGGLE should be supported by the PSUControl plugin with a simple relay. |
Well, unfortunately, it does not work. I just tried it again. I have connected the relay to GPIO4 and configured it in PSU Controll with the GPIO plugin. |
First of all, thank you guys! Here are the Logs. What i did: All this was done from the Octodash display via Custom Actions. The status indicator of the relay works correctly in the interface, i.e. the flash turns green when the printer is on and gray when off. Again, Thank you! |
@7R0J4Ner The logs indicate that that PSUControl is receiving the toggle/on/off requests and as you mentioned the UI is updating accordingly. This leaves me to believe you have an issue with your wiring or components. Many users end up purchasing 5V relays not realizing the Pi is 3.3V logic. Some 5V relays will still work but it seems to be a toss in the air. I'd suggest posting your issue on the OctoPrint forum with details about config, components, and wiring. |
I know the problem with the relays and have therefore tried several. Is it possible to send the command [!POWERTOGGLE] via the Octoprint terminal or ssh? |
Describe the bug
The !POWERTOGGLE action only turns off my Prusa mini plugged into a TP-Link power plug. !POWERON custom action and automatic power on, when octodash leaves sleep state do work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The TP-LINK power plug should power on
Screenshots
General Information:
The text was updated successfully, but these errors were encountered: