Retrofit Wireless Alarm System


(SiHui) #4

You need to find a pin in your central which is going high or low when the system is in alert state. You could then try to use that as an input to the Fibaro, which is a zwave module.

Edit: or maybe the central has an external input for switches or keypads which could be used to arm or disarm the system via relays …


(SiHui) #5

Here is a similar topic regarding pir’s and motion sensors:


(Ivan Pironi) #6

Thank you so much! you gave me some ideas!!! hopefully not too much crazy ideas :stuck_out_tongue:

I have founded a schema of my alarm system central unit and I have also took a picture of it (uploaded here)…

I apologies if my questions are silly/basics, but I really am a newbie here :stuck_out_tongue:

Let me rephrase what you have just suggested to me:

  1. I get a “binary sensor” and I connect it to the central
  2. I get a RPi (which version and model?) to rung OpenHab
  3. I make the “binary sensor” talk with the RPi via zwave

in theory I get it… but now lets try in reality :blush:

  1. which sensor/s should I get if I want to capture:
  • Change of status via OpenHab (remotely turn the alarm on/off)
  • Status of alarm (question the alarm status)
  • Alarm intrusion alert (get notification if the alarm goes off)

Do i need three binary sensors or there is something more advance (and cheaper that three sensors)?

  1. I do need a “hub” and I guess that that is done by RPi… which version should I use? (https://www.raspberrypi.org/products/ don’t need to over-engineer this… the easier the better and probably the cheaper -> I want to retrofit, but I do not want to spend as much as I would spend with a ready to use solution)

  2. Woudl the solution works also with Google home? (my alarm system has three zones, therefore, while at home I could set the alarm on in the garage…)

  3. the circuit board of the central unit has also an Rj45 plug… not sure what is that… ides? (i do not think is the LAN connection because the allarm is about 15 year old, therefore I do not thin that there is any webserver in it…)

many thanks for the great help!

Ivan


(SiHui) #7

It is hard to give you any details without knowing the alarm system and I’m pretty sure you will need a multimeter to find the voltage level of the in- and outputs you are seeing in your alarm central.

In general: if you need more than one I/O the Fibaro Universal Sensor is a bad choice because it only provides an input to the openHAB system, not an output. And it gets pretty expensive if you need to buy several devices :smiley:

I would go for the ESP8266 (easiest to connect is the nodemcu version) or any other microprocessor (read the linked posts for other ideas) to connect your alarm pins to openHAB. It also can drive relays to switch your alarm state ON/OFF.
Communication between your router and the ESP is done via Wifi, the status (In and Out) is established via MQTT. Inputs up to 5V can directly be wired to the ESP pins, outputs can be done via a variety of available relays. If you need a voltage free ouput this can be done without relays.
You need to flash a new firmware to the ESP for this.

A lot of users run their openHAB on an RPi. In my opinion using it as sensor I/O is to expensive. You can have this a lot cheaper with microprocs like the ESP’s.

If you want to run openHAB on it, the latest. Mostly older models are not available anymore.

Sure.

Either way: you will have to tinker and solder to get this working but I think it can be done.


(Ivan Pironi) #8

This was exactly my thought when I realised that I woudl need more than one “sensor”…

this is exciting… let me understand (and sorry for the low level here, I am just a newbie, with no HW experience… only SW… but somewhere we need to start, no? :smile: )

  1. I get a nodemcu (Option1 or Option2 sorry, but do you think that are the same? ore one is better than the other?)

  2. I define the voltage of I/O in the alarm system with a voltmeter

  3. I connect nodemcu to the allarm system pins

  4. I program the nodemcu so that I can get what i need (via ARDUINO IDE)

  5. ???

I am not too sure where I need to put the openHAB (you suggested a ESP, does it need any special feature/setting?)

in case I can connect the system to google home, does it go via openHAB, or the nodemcu can connect directly to google home?

Please have patience with me… I will definitely ask stupid question :stuck_out_tongue:

Shopping list recap:

Thank heaps!

Ivan


(SiHui) #9

Basically yes, option 1 needs to be soldered, option 2 is ready to use and can be supplied with power via a usb charger.

If you don’t want to flash it with alternative firmware you can go the Arduino IDE way and need to program everything in LUA (including MQTT support).
In my opinion it is easier to reflash with Tasmota (good support in this forum) or ESPEasy (also some support here, and has a nice web interface for configuration).

Nope, it can not be put on an ESP. You need a computer supporting java:


A lot of people are using a RPi as their openHAB server.

Yes. You need to define items for your MQTT setup and with those items and correct tagging you can use Google Home.


(Ivan Pironi) #10

Thank You! I will start with running a virtual server on my pc in order to test, then I will probably get a RPi…

Accordingly to your expertise, to try to achieve what I have described, to start my project I just need a nodemcu?

Any other HW requirements? if I use my PC for a virtual machine where I will install OpenHAB…

Many thanks!

I will read up while I will wait the nodemcu to be delivered :stuck_out_tongue_winking_eye:


(Ivan Pironi) #11

forgot to mention:

which tools do I need to wire Alarm pins to the nodemcu? what wires do you recommend? what “connectors”?

want just to get all in one go :stuck_out_tongue_winking_eye: (I only have a voltmeter)


(Rossko57) #12

Based solely on experience with alarms of this period (i.e. guessing) - the “wired commands interface” is probably a serial RS232 port, which would allow an external system to interrogate and control the alarm. Really useful!

But sadly, unless you can get the manufacturer’s specification for the data protocol used, not much chance of exploiting that. As a security system, that is likely been made deliberately difficult.
One approach might be to find out if there is a PC application around that will talk to the alarm. You could then monitor the data traffic and figure out essential commands and data. Very tedious!

I would guess again, that the RJ45 socket is another way to the same serial port, perhaps an RS485 version. It’s not likely to be a LAN port, that would usually be an add-on option.

I don’t think you’ll be able to remotely set or unset this alarm system without this knowledge. However - if you have the installer’s manual it might describe how to control the alarm from a keyswitch instead of keypad. Such a keyswitch could be simulated by a relay under OpenHAB control.

As sihui says, there are many ways to connect two binary sensors for alarm on/off and alarm normal/ringing indication (and possible relay for alarm enable/disable). You might want to decide how your home system might develop in the future, to help choose a suitable technology here - zwave, KNX, WiFi ESP, blah.


(SiHui) #13

Good idea.

and a power supply, for example an unused usb charger. And an usb cable to program/flash it.

A piece of wire or better: jumper cables and a breadboard for testing:

Make sure you also get the female to female and female to male ones:


(Ivan Pironi) #14

thanks again,

last silly question of the day… the cabel you posted are “one or the other”… right? why the [https://www.amazon.it/Arduino-Starter-Longruner-Solderless-Breadboard/dp/B073PVBJK7/] has also a little circuit?

feel so dump in this field! sorry


(SiHui) #15

Not really: you need jumper cables with a female end to connect it to the nodemcu. So buying different kinds would make send. Then you are able to connect it to the nodemcu, your alarm central and the breadboard if you need testing.

That is a power supply. If you intend to use a plain ESP chip (not the nodemcu version) you will need to connect 3.3V power to it.
The nodemcu runs on 5V, so you can power it with an usb charger.


(Ivan Pironi) #16

@sihui

Great!

I got it (I hope so :slight_smile: ) now time ti study :stuck_out_tongue:


(Ivan Pironi) #17

first of all, I need to apologize because I might have doubled posted in the followings:

SO, lets summaries everything here:

As newbie, I’m absolutely “incompetent” in HW (my background is more SW/Solutions) and I would like to validate with this amazing community my shopping list:

  • RPi3 B+ (including Power cable and Case) -> is it better to go for a “fancier” case with fans ?

  • microSD for RPi OS -> which size would you recommend ?

  • noceMCU 1 -> ** does it required a power cable/adapter ? **

Now the fun part :slight_smile: : what else do you think I need? my thoughts says:

  • Jumper Cables (Male/Male, Male/Female, Female/Female)

  • BreadBoard for testing… (any recommendation?)

  • BreadBoard Power Supply… (I have seem lots with a rca jack plug… I probably prefer a USB one :P)

  • Volt-meter… (what specs should it have?)

  • welder (which one) ?

does it make sense to get a “starter kit” something like this: https://www.amazon.it/Elegoo-Elettronico-Breadboard-Condensatori-Potenziometri/dp/B01JM2PUQU/ref=sr_1_2?ie=UTF8&qid=1532707932&sr=8-2&keywords=arduino+raspberry+pi+starter+kit

Many thanks all,

Regards


Newbie - Starting my DIY project: shopping list
Newbie: which version of Ubuntu for installing OpenHAB?
(SiHui) #18

If you live in a very hot climate zone: yes. Otherwise not really needed.

See above or

Not for the nodemcu. it is powered via usb power supply.

A simple one if it is really needed at all. Depends on a good or bad manual for your alarm central.

Around 50W, temperature controlled would be nice.

Depends on your budget. Sometimes there is useless stuff in there.


(Ivan Pironi) #19

@sihui, @rossko57, @rlkoshak, @Thedannymullen

Thanks Everyone!

Finalized my shopping list:

I have passed for now multimeter (I have an old one which it should still do the job) and the solder/welder (for test the breadboard should be good enough :slight_smile:

Sorry again to be so annoying :stuck_out_tongue: Am I missing Anything?

Thanks again!


(Rich Koshak) #20

In my experience, no project requires just one shopping trip. You will discover other stuff you need as you go.


(Ivan Pironi) #21

Thant is actually fair :blush:


(Ivan Pironi) #22

order in progress :slight_smile:

and while I am waiting for the stuff to be delivered I am doing researches…

I have found few wiring diagrams on how to use the I/O in my central alarm system… anyone would be able to suggest how to use them for my oH project?

The only example that make sense to me is EXAMPLE # 3, in order to “read” the system and detect if ti is ON or OFF… in this case I would connect somehow Output Reley 2 to the NodeMCU and the system woudl know the status of the alarm…

Anyone can help me understand what are the EXAMPLE #1 and #2 for?

Thank you so much to everyone :slight_smile:


(Ivan Pironi) #23

Doing more research… I have found an additional wiring map (not very useful, but I want to post it here)…

The problem is that the alarm system does not have anymore any support, therefore is impossible (for me) , to get any documentation…

I like this idea… how can I start? can I hook-up an adruino-like device and see what happen?? (not trying to make it simple… just trying to understand from a newbie point of view :wink:

alternative, can I capture the “remote” signal and duplicate it? I would just need to turn the alarm on/off…

Thanks all :slight_smile: