Page 1 of 1

door sensor

Posted: Saturday 28 April 2018 10:57
by lucius
Hi
I have raspberry Pi V2, Raspbian Jessie, installed Domoticz V3.8153, wiringPi gpio version: 2.46

According to https://www.domoticz.com/wiki/GPIO I've made leds controlling.

But how can I handle door magnetic sensor/button?
It works on python scripts, it changes state under gpio exports command, but I don't have any ide how to configure in domoticz?


I've put at the end:

Code: Select all

/usr/local/bin/gpio export 6 in
/usr/local/bin/gpio edge 6 both
/usr/local/bin/gpio -g mode 6 up
in /etc/init.d/domoticz.sh file

sensor/button is connected to GPIO6/ PIN31

Lukasz