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
Best solution for GPIO
Moderator: leecollings
- waltervl
- Posts: 5853
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Best solution for GPIO
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.
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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 36
- Joined: Tuesday 02 October 2018 15:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Best solution for GPIO
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?
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?
Who is online
Users browsing this forum: No registered users and 1 guest