I want know if anyone comes into my apartment while I am gone. I could use a motion sensor but my doors are already wired (most likely yours are also).
I want to be notified via twitter although sms, phone calls, siren, etc. would also work.
I have a phidges interface 8/8/8 on hand (http://www.phidgets.com) but we could also do this with amx (http://www.amx.com) or netburner (http://www.netburner.com).
Lets get started...
Step 1: How Security Systems Work
Note: The trouble LED is light up because it doesn't have a phone line connected to it. There isn't anything I can about that.
Step 2: Door Contact (uninstalled)
Step 3: Door Contact Installed and Painted
Step 4: Look in the Closet
Step 5: Inside the Enclosure
Disconnect stuff and see what happens. If you only change one wire at a time you can always reconnect it.
Step 6: Connect to the Phidget
Step 7: The Python Part Is Easier
You'll also need to get the python phidgets library.
We are starting with the InterfaceKit-simple.py.
You'll need to:
twit = twitter.Api(username=, password=)
and replace def interfaceKitInputChanged(e): with this
#print "Input %i: %s" % (e.index, e.state)
#status = twit.PostUpdate('Door contact was open and now its closed')
if e.index == 4:
status = twit.PostUpdate('Front Door contact was open and now its closed')
status = twit.PostUpdate('Front Door contact was closed and now its open')
if e.index == 5:
status = twit.PostUpdate('Side Door contact was open and now its closed')
status = twit.PostUpdate('Side Door contact was closed and now its open')
Step 8: Test It and Enjoy
The computer you connect your phidget to needs to have an internet connection.
ENJOY and let me know on twitter (mcotton) if you have comments