Modify state of virtual contact (open/closed)?

Is there a python for dummies somewhere… I’m just trying to get the alarmserver part running first but can’t figure out where to start besides downloading the files…

@dbmet Rough steps below assuming some sort of Unix platform.

git clone git@github.com:juggie/AlarmServer.git
cd AlarmServer
git checkout smartthings   <-- You must be in this branch for this to work!

Assuming Python is installed (it should be on almost every Unix platform), you only need one additional Python module to make this work.

pip install requests

If pip is not installed on your platform you can also try this instead

easy_install requests

Next edit the alarmserver.cfg file, read through the options and change whatever you need to.
To start the AlarmServer program you have 2 options (both result in the same outcome).

In the directory with alarmserver.py

./alarmserver.py

Alternative option:

python alarmserver.py

Assuming it all goes well and you don’t see any error messages on the screen you can open a web browser to your local machine at port 8111 to see the web interface. At this point assuming you edited the config file properly you should see the server trying to send events to Smartthings.

If you need more specific help please provide platform and messages/info.
Thanks and good luck!

-Kent

@sanity I’m getting somewhere I think… Haha Shows connected to envisalink but I don’t see anything happening in the browser at port 8111 just get a failed to open page error…
Doing all this on a Macbook Pro

As a followup I don’t think the alarmserver is actually connecting to my envisalink even though it says connected. I can check the tpi status and it shows offline…

Hmmm finally got the alarmserver part connected to the envisalink and can see all the stuff going on however I can’t get anything to connect when I open the port 8111.

@dbmet make sure you are using https in your URL to connect to the web interface.
Did you generate the SSL cert per the AlarmServer docs?

https://localhost:8111

@sanity Got that working now. Now to figure out where I screwed up case smart things doesn’t appear to receiving anything yet…