door sensor

Moderator: leecollings

Post Reply
lucius
Posts: 3
Joined: Saturday 28 April 2018 10:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

door sensor

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest