GPIO Binding not working

Hello everyone,

I’ve just set up the gpio binding to perform a simple test to enable a led in Raspberry and, although I’m not getting any error, nothing happens:

OH log: 2015-08-24 12:47:44.463 [INFO ] [runtime.busevents ] - LED received command ON

The setup is like this one: https://devicediscovery.wordpress.com/2014/09/22/openhab-on-raspberrypi/ and, when I test in command line, the led turns on and off.

default.items
Group All
Group gGroundFloor (All)

Group GF_Living “Living Room” (gGroundFloor)

Number TestTemperature “Luminosidade Exterior [%.1f ]” (GF_Living) {mqtt="<[mymosquitto:Exterior/temperature:state:default]"}
Switch LED “LED” { gpio=“pin:17” debounce:10 activelow:yes}

default.sitemap
sitemap default label=“Main Menu”
{
Frame label=“Outside” {
Text item=TestTemperature
Switch item=LED
}
}
Hardware: Raspberry Pi 2
Software: (followed this sample project: http://www.homeautomationforgeeks.com/project/project.shtml)
Mosquitto, OpenHab, GPIO Addon

Help to solve this would be very appreciated.

Best regards,

Nuno

Hello again,

Found the issue. It seems that I missed to copy the following JARs org.openhab.io.gpio and org.openhab.binding.gpio to /opt/openhab/addons folder, although this should have been made by the automatic installation.

(source: https://github.com/openhab/openhab/wiki/GPIO-Binding)

Best regards,

Nuno

Hi Nuno,

You wrote about GPIO output and that your LED is working. Did you also managed to get an input pin working via GPIO? If so I am interested how your setup is.

Chrs,
Jeroen