This repository provides support for the AlarmDecoder webapp inside of the SmartThings home automation platform.
- AlarmDecoder webapp 0.7.6+
- SmartThings Hub
- Arm, disarm, or panic your alarm system from within SmartThings.
- Provides virtual sensors that can be married to zones on your panel to allow automation based on zones faulting and restoring.
- Smart Home Monitor integration ** One-way - Arm or disarm your panel when the Smart Home Monitor status is changed. ** Two-way - Change Smart Home Monitor's status when your panel is armed or disarmed.
- Switch - Used to represent the panel in an ARMED STAY state. Triggering switch.on() will arm the panel using the stored user code. switch.off() will disarm the panel. This is input only at the moment.
- Lock - Used to represent the panel in an ARMED AWAY state. Triggering lock.lock() will arm the panel and lock.unlock() will disarm the panel. This is the primary capability for watching for armed/disarmed events.
- Alarm - Used to indicate an alarming state and also may trigger a panic on the panel with alarm.both().
- SmokeDetector - Used to indicate if a FIRE was detected on the panel.
- Virtual Zone Sensors - The service manager smartapp creates 8 virtual contact sensors which are used to provide triggers when configured zones are tripped on the alarm panel.
- Navigate to https://graph.api.smartthings.com in your browser and login to your account.
- Click on My Device Handlers
- Click on Create New Device Handler
- Click the From Code tab
- Paste the contents of virtual_contact_sensor.groovy into the box and press Create.
- Click Publish -> For Me
- Repeat the process with device_type.groovy.
- Click on My SmartApps
- Click New SmartApp
- Click the From Code tab
- Paste the contents of service_manager.groovy into the box and press Create.
- Click the 'App Settings' button at the top.
- Scroll to the bottom of the page and click 'OAuth'
- Click 'Enable OAuth in Smart App'
- Click Publish -> For Me
- Select your Location on the right and press Set Location. (Click the Simulator button if you don't see these options)
- Click the Discover button. You'll probably have to hit refresh a couple of times to get your device to show up. If it doesn't show up make sure you're running an up-to-date version of the webapp.
- Click Select Devices and select your AlarmDecoder.
- Change other options on this screen if needed.
- Click Install
- After install there will be two boxes at the bottom titled 'API Token' and 'API Endpoint'. Record these so you can input them into the webapp for full integration.
- Open up the SmartThings app on your phone
- Click My Home and select the Things tab
- Select the AlarmDecoder
- Click the gear icon and select Edit Device
- Input the API key you generated from https://alarmdecoder.local/api/
- Input the alarm code you'd like to use to arm/disarm your panel.
- Select your panel type.
- Zone sensors may be configured to open and close themselves when a zone is faulted. For example, specifying zone 7 for Zonetracker Sensor #1 would trip that sensor whenever zone 7 is faulted.
- Log into your AlarmDecoder webapp.
- Click Settings
- Click Notifications
- Click the New Notification button
- Set the Notification Type to 'SmartThings Integration'
- Enter a description
- Click SmartThings settings
- Enter the 'API Endpoint' you recorded during install into the 'URL' box.
- Enter the 'API Token' you recorded during install into the 'Token' box.
- Press Next
- Press Save
- DSC: Extra zones will show up in the zone list.
- ADEMCO: Disarming the panel after an ALARM may be difficult due to requiring a double-disarm and the button states don't quite work that way. Current workaround is to try to arm, which will let you disarm again.