vitormhenrique / OctoPrint-Enclosure

OctoPrint Enclosure Plugin
GNU General Public License v3.0
395 stars 201 forks source link

Can only turn on light and psu. Not off #490

Open johnokdk opened 1 year ago

johnokdk commented 1 year ago

I can suddenly only turn on light and psu. Not off. Also my hardware buttons has stopped working. I get this error in the octoprint.log. How do i fix it?

File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_enclosure/init.py", line 934, in update_ui_outputs val = GPIO.input(pin) if not output['active_low'] else (not GPIO.input(pin)) ValueError: The channel sent is invalid on a Raspberry Pi

It has worked for a very long time, and suddenly not. Maybe an update (python) broke it?

johnokdk commented 1 year ago

I fixed it with pressing the "Cleanup plugin data" under plugins and the reintering all the data again (Same values as it said before the reset). That seemed to fix it.