OH3 GPIO binding: "(-41) no permission to update GPIO"

I’m getting an error when setting up the GPIO binding with a digital input on a recent standard installation. The GPIO output is working however.
I already ran the Fix permissions option in openhabian-config.

  • Platform information:
    • Hardware: RPI3B+/1Gb RAM/32Gb SD
    • OS: openhabian official RPi image/5.15.76
    • Java Runtime Environment: OpenJDK 11.0.16
    • openHAB version: 3.4.0 release


Thing gpio:pigpio-remote:local "Pigpio Local" [host="::1", port=8888] {
        Type pigpio-digital-input : MyInput [ gpioId=32 ]
        Type pigpio-digital-output : MyOutput [ gpioId=23 ]


Switch Sensor1 "Sensor 1 [%s]" <motion>  (gSecuritySensor) { channel="gpio:pigpio-remote:local:MyInput", expire="60s,state=OFF" }


[WARN ] [.binding.gpio.internal.handler.PigpioRemoteHandler] - Failed to initialize gpio:pigpio-remote:local:MyInput: (-41) no permission to update GPIO
openhabian@oh:~ $ groups openhab
openhab : openhab tty dialout audio bluetooth gpio

I figured it out. I had set gpioId to 32 instead of 12. Pin 32 = GPIO12. Simple.

I just wish the error message had been clearer, would have saved me a couple of hours.