Allows a DSC security panel with Envisalink to integrate into SmartThings. Requires the use of Alarmserver running on any server, Envisalink module connected to a DSC security panel, and the SmartThings App.
This integration is mostly complete and working, but some items do not work as SmartThings still has issues with custom capabilities and switches.
- Install Python and AlarmServer on your server, and all required dependencies.
- Install SmartThings device handlers and smartapp in Groovy IDE, and turn on OAuth for DSC-Envisalink smartapp.
- From mobile device, install DSC-Envisalink SmartApp in SmartThings app, and retrieve the app id, access token and url base from the SmartApp.
- Edit alarmserver.cfg on server.
- Edit DSC-Envisalink preferences on mobile device.
- Start AlarmServer on the server.
-
Install and setup python 3.x on your server. (see https://www.python.org/) If using Windows, you can also install Python from the Microsoft Store (https://www.microsoft.com/store/productId/9MSSZTT1N39L)
-
Copy the contents of the alarmsever folder from github to your system. Make sure to install the python dependencies required for AlarmServer.
-
Edit the alarmserver.cfg file and add in the OAuth/Access Code information to the callback_url_app_id and callbackurl_access_token values (see SmartThings and SmartApp Setup) Also adjust your zones/partitions at the bottom of the file, and all other information in the configuration file.
-
Start AlarmServer. Your devices should get created in SmartThings, and you should start seeing events pushed to them within a few moments on your mobile device. Don't forget to open port 8111 on the server's firewall!
-
From the SmartThings Grovvy IDE setup github integration, using your GitHub credentials.
-
Add a new github repository from the settings, with rtorchia as owner, DSC-Envisalink as name, and master as branch.
-
Once you have setup this repo, you can easily add all the devices handlers and the smartapp from the Update from repo button for each section. Be sure to check the publish checkbox at the bottom right.
-
After the DSC-Envisalink SmartApp is installed in the IDE, find it in the list and select Edit Properties.
-
Click Enable OAuth in SmartApp and save the changes.
-
On your mobile device, open the SmartThings app, go to the SmartApps section, and add/install DSC-Envisalink.
-
In the SmartApp preferences screen, scroll to the Show SmartApp Token Info. Copy this information and save it (You can email it to yourself). You will need this information for the alarmserver.cfg file.
-
In your alarmserver.cfg file, locate the following lines the app ID and access token: callbackurl_app_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx callbackurl_access_token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Additionally, you might want to set the callbackurl_base line in the cfg file to whatever URL is output in the SmartApp Token info if the regular https://graph.api.smartthings.com URL does not apply for you.
-
Edit the settings for the DSC-Envisalink SmartApp on your mobile, and fill in the IP address and Port number with the correct information for your system running alarmserver.
Thanks goes out to the following people, without their previous work none of this would have been possible:
- juggie
- Ethomasii
- blacktirion
- Rob Fisher [email protected]
- Carlos Santiago [email protected]
- JTT [email protected]
- Donny K [email protected]
- Leaberry [email protected]
- Kent Holloway [email protected]
- Matt Martz [email protected]
- Jordan [email protected]