Page 1 of 1
Best solution for GPIO
Posted: Friday 07 March 2025 12:27
by mgugu
After moving from buster to bookworm on a Pi2 using GPIO intensively, I discovered that the sysfs method is not working anymore even if sysfs option is still available in domoticz latest version.
So my question is what is the recommanded solution to use GPIO in domoticz/bookworm ?
Best regards
Re: Best solution for GPIO
Posted: Friday 07 March 2025 16:27
by waltervl
On newer RPI OS's the GPIO PIN number range has changed. So Sysfs should still work but you need different pin numbers.
See also
https://github.com/domoticz/domoticz/issues/6040
Alternatively use IO devices not directly connected to the RPi but with for example ESP devices with ESPHome.
Re: Best solution for GPIO
Posted: Wednesday 02 July 2025 16:21
by enboer
I am struggling with this. As the command like echo 533 > /sys/class/gpio/export do not work in Bookwork I need to use pinctrl.
But Domoticz does not see these pins. I tried: pinctrl 21 ip pd, also tried the pin 533 but that fails as GPIO_533 does not exist.
Enabling the sysfs GPIO in Domoticz gives this in the log: 2025-07-02 16:20:39.268 Status: gpio: Startup - polling:no interrupts:no debounce:50msec inputs:0 outputs:0
Checking the value with 'raspi-gpio get 21' I see that value changing.
So what am I missing to get this pin into Domoticz?