I have given following code in my items file as
//------------------------------------------------------------------------
// Raspberry Pi
// GPIO
//------------------------------------------------------------------------
Switch RaspiLED{ gpio="pin:6" }
How to work with relay with exact ON and OFF ! While i switch on the relay gets off and viceversa.
Please give me a solution
jeffsf
(Jeff)
March 23, 2017, 4:36pm
2
Is what you’re driving from the GPIO pin active when the pin is high? Many of the inexpensive relay boards out there close the contact when the pin is low .
Initially GPIO pin becoming active state so ,that it turns relay into active state. How to overcome it?
jeffsf
(Jeff)
March 23, 2017, 5:24pm
4
Take a look at http://docs.openhab.org/addons/bindings/gpio1/readme.html
While I’ve never used the GPIO binding, it looks like it supports an activelow
option.
skatun
(Kim Skatun)
March 23, 2017, 5:41pm
5
Or just map it to whatever you like:) Like open,closed instead of Off,On