Raspberry GPIO, Home security status

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
stef84
Posts: 4
Joined: Sunday 05 February 2017 16:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Raspberry GPIO, Home security status

Post by stef84 »

Hello everybody. Sorry for my bad English

Im's using edomoticz + homebdrige to control any LED Light with Fibaro RGBW and Razberry on Raspberry Pi Zero and it work very fine.

I'm interest to use some GPIO port to control the status of my home security allarm. I'm not interest to arm or disarm the alarm in remote, because for this function i use a internal GSM.

I'm interest only LOG the status of the sensor (closed or open) when the alarm is armed or part-armed and view the log in domoticz.

I've seven 7 sensor with Normal Open contact and 1 wire "tamper" is everibody closed.

For the status ARMED or Part-ARMED, i've two LED in my central. When the alarm is FULL ARMED, the LED armed is ON, when is disarmed is OFF. When the allarm is Part-ARMED, the LED PARM is ON, when is disarmed this led is OFF.

For control the status, i think to use a 4N28 Phototransistor to trasform the led status in NO contact and connect in a GPIO.

It's possbile this?

Thanks
AimoPaukku
Posts: 43
Joined: Saturday 28 January 2017 9:35
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Contact:

Re: Raspberry GPIO, Home security status

Post by AimoPaukku »

Fibaro universal binary sensor?
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: Raspberry GPIO, Home security status

Post by randytsuch »

If it was me, I would look at wiring into your alarm panel?

See if there is some signal you could tap off of to get this.
stef84
Posts: 4
Joined: Sunday 05 February 2017 16:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Raspberry GPIO, Home security status

Post by stef84 »

AimoPaukku wrote:Fibaro universal binary sensor?
If is possible, i want use the gpio because i've install Raspberry in the box of my central allarm.
If it was me, I would look at wiring into your alarm panel?

See if there is some signal you could tap off of to get this.
The wiring is very simple. I've 3 IR sensor tent in the window, 2 PIR sensor in the kitchen and in the aisle ( this wire is collegate in serial, in only one Z inpunt), 2 perimetral Barrier IR in my two terrace and 1 sensor in the doorway. all sensor have NC contact.
The central allarm is this in picture and teh contact is csollegate in Z1 to Z7 input whit a resistor in serial to the NC contact.

Thaks
Attachments
centrale.PNG
centrale.PNG (385.88 KiB) Viewed 2665 times
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: Raspberry GPIO, Home security status

Post by randytsuch »

So I think your original idea could work, but it would not look good. You would have to have some sensor in front of the leds on your alarm panel.

I can't read your diagram, but if there are outputs available that change state when the alarm is armed, and when the alarm is activated, you can use those. You may have to change the levels to feed into a pi. For instance, I would think you can tap into the bell output, which is probably 12VDC. You would need to convert 12VDC to 3.3VDC before connecting to the pi IO pins.
sion
Posts: 113
Joined: Friday 08 January 2016 12:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Raspberry GPIO, Home security status

Post by sion »

How wedded to your alarm panel are you?
I looked at doing the same thing - and did think about using a sensor on the leds.
In the end I switched the alarm panel for a Honeywell accenta.
There are connections for "set" and intruder.
These are 13v, so connected a relay to them, and them an rf transmitter to the other side of the relay - though I'm sure you could run this straight into the pi if you know what your doing. ( I didn't so went the rf roughy).

The only thing I haven't been able to to is detect "part set". But when tied in with presence detection, this isn't an issue.

The setup works really well.

The other thing you could do if you Pi is next to your alarm panel, is use the panel to power the pi - thus incorporating a ups.
running domoticz 3.4834 on rpi2, with
Hue bridge / bulbs.
lightwave rf sockets, mood controlers, sensors & contacts.
Home bridge / Siri.
Ha bridge / echo Alexa.
Hard wired alarm system - setting home / away status.

Next: harmony hub.
User avatar
PeGe
Posts: 25
Joined: Tuesday 31 January 2017 14:21
Target OS: Raspberry Pi / ODroid
Domoticz version: V3.6328
Location: Sollentuna, Sweden
Contact:

Re: Raspberry GPIO, Home security status

Post by PeGe »

Now we're talking good old hardware solutions here... ;)

If you're somewhat familiar with electronics and soldering (and not worrying about waiving your equipment warranty), I suggest you trace the circuitry from the led all the way back to its driver chip. Most likely there are some components (like a resistor and/or possibly a diode) in between the led and driver chip output pin, but you will surely find it.

The driver chip output feeding the led should be more than enough to also drive a simple CMOS latch, e.g. a 4016 or 4066 chip. Then you will have a simple, cheap and absolutely reliable "dry contact" that opens and closes depending on the led status. Use the same DC power that supplies the led driver chip to also supply the added CMOS chip. Below you will find a small illustration on how to wire up such a CMOS circuit. And please note that there are 3 more latches available inside that chip, so with some additional wiring you could use it for monitoring a total of four different led's if you want.

Anyway, that's the nice and clean way I solved the same problem. I certainly didn't want to attach anything on the outside of my old alarm box, just to monitor the led indicator status!

/P-G
Attachments
CMOS_4066.png
CMOS_4066.png (30.43 KiB) Viewed 2614 times
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: Raspberry GPIO, Home security status

Post by randytsuch »

Ran across this yesterday

https://forum.mysensors.org/topic/6055/ ... -jablotron

Interesting concept. I don't remember if the Pi IO pins are 5V complaint? If they are, this would work. Otherwise, you would need a DC to DC that generates 3.3V to connect to the Pi.
stef84
Posts: 4
Joined: Sunday 05 February 2017 16:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Raspberry GPIO, Home security status

Post by stef84 »

Thanks for the answers. Besides I would like to monitor the logging EStore been armed or disarmed alarm, in a txt file also the state of each sensor while the alarm is armed. For example, with armed alarm is activated, the sensors have a log that are clicked.

For me there are no problems using IC 4066, I am an electronic profession.

I would like to use Raspberry Pi GPIO connector and not an Arduino sensor.

Thanks
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: Raspberry GPIO, Home security status

Post by sincze »

randytsuch wrote:Ran across this yesterday

https://forum.mysensors.org/topic/6055/ ... -jablotron

Interesting concept. I don't remember if the Pi IO pins are 5V complaint? If they are, this would work. Otherwise, you would need a DC to DC that generates 3.3V to connect to the Pi.
Tnx :D it still works like a charm.

According to http://raspberrypi.stackexchange.com/qu ... can-handle you would need to breng the voltage down to 3,3. I would suggest a little bit lower like 3V with the buckconverter
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Karen311
Posts: 1
Joined: Tuesday 18 July 2017 12:57
Target OS: -
Domoticz version:
Contact:

Re: Raspberry GPIO, Home security status

Post by Karen311 »

you are permitted to collaborate with that particular application Snapchat App If you intended to login online from your desktop or mobile.
febalci
Posts: 331
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Raspberry GPIO, Home security status

Post by febalci »

Well actually i am in the process of doing something similar. Instead of starting with phototransistors, maybe you should check the possibilities of your alarm system connection to IP networks. Since you did not mention the brand and model of your alarm panel, i do not know if there's any module regarding that. Also, you can use the ports of the alarm panel which is used for programming and firmware uploading. These ports generally are capable of using alarm CID/SID protocols. These module cards are generally called PSTN to LAN converter. These old alarm systems use PSTN phone signals, so this card converts your requests to TCP/IP or RS232 protocol.

Anyway, if you cannot find any of these modules supporting your alarm system, then you should consider to use the alarm keypad port. The thing is, reverse engineering or hacking this port is not easy if you do not know anything about electronics. If you analyze these signals with an osiloscope, you can get the idea. You should also convert (generally 5V) to 3.3V with a login converter or optocoupler for rpi. Then you can also connect the CLK, DAT and GND ports of the alarm system to GPIO ports of the rpi and process the signals and use a python script to decode the signals. That's what i am trying to do at the moment.

There are some working solutions on web regarding DSC alarms. I am trying to do the same with Crow Runner 8/16 alarm system. Will let you know if i succeed.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest