Controlling GPIO with OpenHAB (RaspberryPi)

Yes it actually works really well. I primarily use Node-Red for everything and have everything linked to items in OH so I can control it with HABPanel. In Node-Red you can can add Raspberry Pi specific nodes (mine installed by default) that let you read and write to GPIO. I have flow sensors that connect through GPIO and used a counter node to count the transitions. I also have a temperature sensor that is connected through an ADC. I was able to find an ADC node that handled the I2C protocol for me and made it really simple to interface. I used used a PWM PiHat to send a PWM to the motors I was controlling. There was a specific node for the PiHat that handled all of the under the hood stuff.