Did you consider to use the exce binding to control the pi?
For me that works well to read 1-wire sensors. But I have not yet tried to use it for output purposes.
I was following this tutorial GPIO 1-Wire Temp sensors on Raspberry Pi with openHABian
What are the major steps?
- Write a shell script to read the sensors
- Put in in the /ets/openhab/scripts directory
- Test this file (can be done on the pi)
- use the exec binding to run it from OH