I have connected to my RPi, I have setup the Output in Enclosure plugin setup with GPIO pin 24, it show correctly in the plugin but it don't work. If i manually set the GPIO to output with gpio -g mode 19 out the relay work but not with the plugin.
Yes GPIO 24 is 19 in BCM so, if you use in Enclosure plugin without BCM mode you have to write 24, but in SSH with gpio command you have to use BCM number.
A part of octoprint.log, here you can see the plugin write on pin 24 by manually trigger the button.
2021-05-13 17:01:19,165 - octoprint.plugins.enclosure - DEBUG - Writing on GPIO: 24 value True
2021-05-13 17:01:19,582 - octoprint.plugins.enclosure - DEBUG - Writing on GPIO: 24 value False
2021-05-13 17:01:20,011 - octoprint.plugins.enclosure - DEBUG - Writing on GPIO: 24 value True
2021-05-13 17:01:20,418 - octoprint.plugins.enclosure - DEBUG - Writing on GPIO: 24 value False
2021-05-13 17:01:23,275 - octoprint.plugins.enclosure - DEBUG - Temperature SI7021 cmd: sudo python /home/pi/oprint/lib/python3.7/site-packages/octoprint_enclosure/SI7021.py 0x40 1
2021-05-13 17:01:24,328 - octoprint.plugins.enclosure - DEBUG - SI7021 result: b'21.4 | 54.8\n'
If i test w/ gpio via SSH it works, with the Enclosure plugin no result
in my config tab i have unchecked "Use Board Pin #" to use BCM numbers, but the setup window don't save this option and i have to use the Board pin #. Now it works perfectly.