ADT Alarm with ST Hub Integration - Help Please!

I am a noob and just getting started with HA. I have this existing ADT home security systems with sensors already attached at doors/windows. I will be figuring out how to get the alarm system to run w/o ADT Monitoring (locally), but want to be able to have the ST hub know when the alarm is armed and when its tripped it does certain actions i.e. turn all the HUE bulbs on, round the z-wave siren, email me, etc. I assume I need to figure out a way to connect a “out” from the board into ST via a ST sensor of some sort…?

The issue is I cannot figure out what model of the alarm I have, can someone help me understand how I would go about integrating the alarm system into ST?

Any help and guidance will be appreciated!!!

How many wired sensors does the alarm have?

@Todd_Whitehead 3 door sensors and 2 motion sensors

@ashutosh1982 might be able to help as he has some experience and development in this area…

Thanks!

@ashutosh1982 - any insight would be very helpful!!

@haideramn Can you PM me so we can talk about this in detail? Perhaps a phone conversation will be lot easier to talk about this. Let me know.

1 Like

@ashutosh1982 Just PM’ed you

You can do this with an Arduino if you are okay with electronics.

@Todd_Whitehead I am ok with electronics, but never played with Arduino, any instructions available that you can point me to?

Thank You

Arduino is a micro controller that can be coded on a computer and programmed via USB.
https://www.arduino.cc

You can hook things like sensors to it and Smart Things makes what is called a Thing Shield that allows them to talk to Smart Things natively.

@ogiewon wrote an amazing library to make using the thing shield easier.

He also wrote device types, and smart apps to facilitate converting physical wired contacts to show up in Smart Things via this hardware.

If you want to keep your existing alarm system working, you could add additional Arduino logic to drive relays that trigger when the contacts close and that would allow you to have the functionality of your alarm system and have everything reflected in Smart Things.

Getting the ADT Alarm mode to show in ST is not something I have tried to do. I’m not sure how I would do that. But everything else is doable.

I gutted my old alarm and only used the sensors with ST. I am working with a friend’s alarm system to implement it with Relays to keep the alarm intact.

At my house, I replaced the keypad that controls my alarm (that had 4 wires running to it) with an LCD display that I use to display the status of all of the wired sensors.

This all works really well.

If you decide to go this route, I suggest starting with an Arduino Mega and a Thing Shield and then looking at the sample code in @ogiewon’s Github repository.

-Todd

2 Likes

@Todd_Whitehead this is great! Thanks so much. A few questions:

  1. What kind of LCD are you using that shows all the status of sensors? Thats a neat idea? any instructions on your wiring that I can reference?

  2. You mention using your existing sensors of your existing alarm system with ST - how did you do that…with Arduino??

  3. I do not care about my existing alarm, I do not have any monitoring for it nor do I wish to pay for such service, I want to use ST to turn on lights/alert me when the sensors trip/alarm is tripped.

Okay. Your #3 makes this much easier! (Kind of).

Yes. You use the Arduino to read the state of the door sensors and @ogiewon’s library and sample code to communicate with the thing shield, which communicates with ST.

For the door sensors, there should be two wires for each one attached to the alarm panel. Pull those three pairs of wires out of the panel and run one side of each one to a digital pin on the Arduino Mega. Tie the others together and then run a pigtail from there to a ground pin on the Arduino.

The ST Anything libraries will monitor the state of those digital pins and when they change, ST will know it and you can use that to trigger things like any other door sensor.

The motion detectors are a little harder. They need power to operate and the Arduino probably cannot provide that power. So you will need to use an additional power supply. if the motion sensor has four wires, then there are probably 2 for power and 2 that would get wired in just like the door sensors. If it only has 3 wires, it gets even more complicated.

I am using this LCD display:

It takes 4 wires and I used code here to learn how to write to it:
http://arduino-info.wikispaces.com/LCD-Blue-I2C

The ST Anything libraries don’t handle the display. I added my own code for that. I actually had to replicate some of the sensor tracking code that the libraries handle so I could tell when to update the LCD. It’s not ready for public consumption yet. I’ll try to clean it up over the weekend and post it on github.

But, really, that should be the last thing you would want. I’d focus on getting the other stuff working first.

If you prefer to keep the panel in place and your existing keypads working there are other options discussed in this forum like alarm server and this one that I implemented:

The device you hook up to ur panel acts as another keypad.

Todd - I believe you should be able to access the values of the various ST_Anything sensors from within you’re code within the loop() portion of the Arduino Sketch. This would lessen the load on the Arduino if you’re currently polling pins a second time just for the LCD display. Let me know if you’re interested and I can probably whip up a simple example.

@ogiwwon,

That would be useful.

What would be awesome would be if your code could call an Arduino function that passes the sensor number and state if the state changes! (During initialization, it would call the function for every sensor…)

Maybe the Arduino function name could be an optional parameter? Can you call Arduino functions from your C code?

It doesn’t seem to be a terrible drain. I did have to lower the counts that delay reporting of my garage door sensors… :stuck_out_tongue_winking_eye:

Thanks.

@Todd_Whitehead

I like this idea. I am going to see what it will take to make it happen. I am thinking to keep it simple and generic, the “Everything” engine of the ST_Anything library will simply call a function in the user’s sketch, returning the exact same information that is sent to the ThingShield/ST. The user will then have the option to do whatever they’d like with that information (e.g. update a LCD screen, trigger another device, etc…) May take me a day or two to implement as my schedule is busy this weekend.

Dan

@ogiewon Dan,

Calling the function with the same information passed to the ST cloud should allow people to write functions for any thing they have set up. Since the function would be on the “thing” definition, they can create different functions for different types (or even different groups of the same type) of sensors.

Would be especially helpful for people using an Uno or Yun with limited memory. (The Yun would be a really good candidate so you could send messages to the Linux side with those functions, allowing even cooler things to happen there!)

Todd

@Todd_Whitehead

My son and I have added the callback function as we discussed earlier. Please see my full post regarding these new features and the example sketch in the main ST_Anything thread. Give it a try and let me know what you think!

Dan

1 Like

Folks, Need help … I have been working on integrating my Vista20P (ADT managed) that has a fixed display keypad integrated with Smartthings. I have enjoyed the whole process till I hit a brick wall yesterday and cannot move any further. Below is my status:

  • Thingshield, Arduino and AD2i are all hooked up as mentioned in the instructions above. I did publish the code, my app on iphone can see all the tiles. I enabled extra keypad on my Vista20P, tried both 17 and 18, using installer code +8+0+0 , *190 or *191, then 1+0 and then *99 .

  • When I try to do AD2I config after setting the address, I get a message 2008-2015 Copyright!>ADDRESS=17! and then I try config tile again, it shows !Sending …done …

  • Now when I try to press Arm Stay or Arm Away or Disarm … all i see is !Sending …done … nothing happens to the panel … Checked ll the connections … Switch on thigshield is on D1/D2 …

I am going nuts right before weekend … any tips from smart ones there will be highly appreciated …

What a ride it has been this week :smile:

@sahabjee you may want to repost your question in this thread that discusses your specific setup:
AD2SmartThings

Folks following that thread should be able to help you.