Describe the bug
Suddenly the GPIO stops working. I cannot identify the exact reason but installed a new plugin GPIO monitor. Reinstalled it now but issue still persists.
Execution of a simple python command like GPIO.out works fine and it looks good in the logs also.
2022-02-10 23:50:03,146 - octoprint.plugins.enclosure - INFO - Setting GPIO pin 15 as OUTPUT with initial value: 1
vs.
2022-02-10 23:56:31,912 - octoprint.plugins.enclosure - WARNING - An exception of type RuntimeError occurred on write_gpio when writing on pin 15. Arguments:
('The GPIO channel has not been set up as an OUTPUT',)
2022-02-10 23:56:31,941 - octoprint.plugins.enclosure - WARNING - An exception of type RuntimeError occurred on log_error. Arguments:
('You must setup() the GPIO channel first',)
Traceback (most recent call last):
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))
To Reproduce
Steps to reproduce the behavior:
Plugin stops working and cannot access GPIO anymore.
Describe the bug Suddenly the GPIO stops working. I cannot identify the exact reason but installed a new plugin GPIO monitor. Reinstalled it now but issue still persists.
Same behavior like here but cannot get it running. https://github.com/vitormhenrique/OctoPrint-Enclosure/issues/84 https://community.octoprint.org/t/solved-the-gpio-channel-has-not-been-set-up-as-an-output/10650/4
Execution of a simple python command like GPIO.out works fine and it looks good in the logs also. 2022-02-10 23:50:03,146 - octoprint.plugins.enclosure - INFO - Setting GPIO pin 15 as OUTPUT with initial value: 1
vs.
2022-02-10 23:56:31,912 - octoprint.plugins.enclosure - WARNING - An exception of type RuntimeError occurred on write_gpio when writing on pin 15. Arguments: ('The GPIO channel has not been set up as an OUTPUT',) 2022-02-10 23:56:31,941 - octoprint.plugins.enclosure - WARNING - An exception of type RuntimeError occurred on log_error. Arguments: ('You must setup() the GPIO channel first',) Traceback (most recent call last): 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))
To Reproduce Steps to reproduce the behavior: Plugin stops working and cannot access GPIO anymore.
Expected behavior GPIO should change its state.
Additional context Enclosure Logs.log