Problems with GPIO

I was happily running 2.5 with GPIO binding, with some open collector contacs from my alarm interfaced with raspberry. With 3.0 GPIO binding has disappeared, hasn’t it?
Any suggestions?

GPIO is an OH1 binding, so you are correct that it is not in OH3 as they were all removed. You could use my MQTTany software.

1 Like

I gave a try but I was able to have only polling working well. This means that I have a delay before openhab is updated via mqtt and, unfortunately, this is not acceptable for an alarm. No way to have interrupts working…
This is the configuration:

######## GPIO Module ########
gpio:
polling interval: 30
debounce: 50
pin-stato-allarme:
pin: 12
pin mode: ‘output’
invert: true
digital:
interrupt: ‘both’

@Roberto_Di_Bartolome

See my response on GitHub, and please include more information when asking for help.

TLDR: outputs are outputs, there are no interrupts to capture, only inputs can catch interrupt events.