Newbie: Help needed on Domoticz GPIO
Posted: Saturday 09 February 2019 16:48
Hi folks, just started on Domoticz-Raspberry Pi. Great stuff.
Now I want to read a GPIO pin.
Followed the https://www.domoticz.com/wiki/GPIO but cannot get to read an input.
I used the SYSFS methode in the wiki for exporting a pin
echo 4 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio4/direction
Added Generic sysfs GPIO in the Domoticz hardware. Now when I add a manual switch with sysfs hardware using "type: Sysfs GPIO" I get "Sysfs GPIO: No sysfs-gpio exports" and cannot select any pin there.
Seems the export is not correct any ideas?
Now I want to read a GPIO pin.
Followed the https://www.domoticz.com/wiki/GPIO but cannot get to read an input.
I used the SYSFS methode in the wiki for exporting a pin
echo 4 > /sys/class/gpio/export
echo in > /sys/class/gpio/gpio4/direction
Added Generic sysfs GPIO in the Domoticz hardware. Now when I add a manual switch with sysfs hardware using "type: Sysfs GPIO" I get "Sysfs GPIO: No sysfs-gpio exports" and cannot select any pin there.
Seems the export is not correct any ideas?