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

Cant power on/off with PSUControl plugin #264

Open
Electronlibre2012 opened this issue Apr 16, 2023 · 1 comment
Open

Cant power on/off with PSUControl plugin #264

Electronlibre2012 opened this issue Apr 16, 2023 · 1 comment

Comments

@Electronlibre2012
Copy link

Electronlibre2012 commented Apr 16, 2023

What were you doing?

  1. ...
  2. ...
  3. ...

What did you expect to happen?

it power ON

What happened instead?

Nothing. If i use Gpio control plugin, it work

Version of OctoPrint-PSUControl

1.0.6

Operating System running OctoPrint

OctoPi, RPI4.

Printer model & used firmware incl. version

Anycubic I3 Mega

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

https://drive.google.com/file/d/18ZT3Rh9c2Bp1zNA2n6FpO7EqsKINhzAA/view?usp=sharing

2023-04-16 17:27:39,302 - octoprint.plugins.psucontrol - ERROR - Exception while writing GPIO line
Traceback (most recent call last):
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_psucontrol/init.py", line 478, in turn_psu_on
self._configuredGPIOPins['switch'].write(pin_output)
KeyError: 'switch'

i found some same problem but my plugins are all up to date and i i switch to safe mode, i have no more PSU Control plugin active.

What can i do to help to solve this please?

@Electronlibre2012
Copy link
Author

Electronlibre2012 commented Apr 16, 2023

EDIT : i have install PSU Control RPI.Gpio and select as "switching method" instead of GPIO, and select the plugin PSU Control RPI.Gpio as switching plugin, and it works.

Strange behavior is it works great on my Anycubic Chiron and my MeCreator2 on the same OctoPi (i have 3 instence), only with "PSU Control" @kantlivelong

Any idea to solve the KeyError 'switch' please?

@Electronlibre2012 Electronlibre2012 changed the title Cant power on/off with PSU plugin Cant power on/off with PSUControl plugin Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant