#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
sudo /home/pi/scripts/sysfs-init.sh
exit 0
Did this, then reboot, then added hardware Generic sysfs GPIO with option autoconfigure devices
Followed the Domoticz GPIO wiki.
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
I indeed had to change to GPIO pins to the high numbers when i did the upgrade from Bullseye to Bookworm
Didn't you had to change the GPIO numbers with the update?
Hi,
My config : RPi5 with trixie, Domoticz 2025.2
HardWare : Generic Sysfs GPIO
No way to make it work
* Can't echo :
sudo echo "6" > /sys/class/gpio/export
echo: write error: Invalid argument
* Can't gpio
gpio export 6 out
gpio: GPIO Sysfs Interface for Userspace is deprecated (https://www.kernel.org/doc/Documentation/gpio/sysfs.txt).
Function is now useless and empty.
* Can't raspi-gpio
Doesn't exist any more
*Just can
sudo pinctrl set 6 op dl => Not seen by Domoticz