Continuing the discussion from ADT Integration:
I created a new thread so as to keep the discussion separate from the ad2pi integration. While there is a lot of commonality and I used that code as a starting point, I figured it would be easier to tell which project people were asking about if they had their own threads.
I wanted to use an existing Mac Mini that was used for home theater that was already located near the alarm panel. All I needed to add was the alarm panel interface (AD2USB). Since I was unfamiliar with arduino this seemed the fastest way forward for me.
I also wanted the Mac side to be standalone and not require any other components to run and I wanted a chance to do something in swift.
What I have at this point is definitely a prototype quality, particularly on the mac side where the code was largely stream of consciousness. It currently requires you to build your sensor configuration into the code which won’t help those who aren’t comfortable in xocode very much. I’m hoping to get some time to work on the UI for it eventually but realistically that won’t be until early next year. I didn’t want to wait that long to post something. The code does seem to work though it almost certainly has bugs but it should be useful to anyone else who wants to pursue a similar path.
What I did would not have been possible without the prior work of @craig. The tireless support of folks like @geko and @tslagle13 and others made getting to this point much quicker than it otherwise would have been.
- The Mac code requires OS X 10.10 Yosemite and you’ll need to download xcode from the app store to build it. My code is written in swift which should be pretty straightforward for anyone comfortable in groovy. It depends on several Objective C libraries to do the serial port and web server and those libraries seem to generate lots of warnings in xcode 6.1. I didn’t try to clean them up yet so those warnings are harmless though annoying.
- Before I started this project I knew nothing about Vista alarm panels. My knowledge is still fairly rudimentary so there may be better ways to do things. If anyone has ideas, let me know!
- For those with PC’s or linux, you should be able to model a similar server on this code.
The code is located at: https://bitbucket.org/ac4lt/vistathing
I hope this can help others trying something similar!