Hello everyone, my name is Pablo, I am from Spain and my English is bad, jejeje
I hope you can help me, two weeks ago I installed openhab and I’m still trying to understand it … jejeje
I tell you my project:
I want to domotize my house, but before I’m doing tests with leds …
I have openhab 1.8.3 with raspbian jessy I have also installed the binding io.gpio and binding.gpio version 1.9.0, I also have the user openhab in the group gpio and as root.
What I try to do is, with a pushbutton, the LED lights up but I can not get it to work, it does not read the gpio.
Here my configuration:
items:
Switch RaspiLED { gpio="pin:4" }
Contact push { gpio="pin:17 debounce:10 activelow:yes" }
sitemap
sitemap home label="Home"
{
//------------------------------------------------------------------------
// Raspberry Pi
// GPIO
//------------------------------------------------------------------------
Frame label="Rasperry Pi GPIO"
{
Switch item=RaspiLED
}
Rules
rule "Pulsador"
when
Item Pulsador changed
then
if (Pulsador.state == OPEN) {
RaspiLED.sendCommand(ON) }
else {
RaspiLED.sendCommand(OFF) }
end
The truth is that I have read the wiki openhab many times but I can not do this …
Hi, thanks for replying.
RaspiLED manual works correctly
I attach the event.log
2016-11-25 19:31:43 - push state updated to CLOSED
2016-11-25 19:31:44 - push state updated to OPEN
2016-11-25 19:32:44 - push state updated to CLOSED
2016-11-25 19:32:44 - push state updated to OPEN
2016-11-25 19:34:02 - push state updated to CLOSED
2016-11-25 19:34:02 - push state updated to OPEN