๐ฃ This is the
version 3
of this application. If you are looking for older version, visit https://github.com/asishrs/smartthings-ringalarm
This repository contains device handler and smart-app for Ring Alarm integration with SmartThings. In order to use this, you need to deploy the API part as described here.
- Alarm Base
- Keypad
- Motion Sensor
- Contact Sensor
- Z-Wave Range Extender
- Flood Freeze
- Smoke/CO Listener
It is highly recommended that you use the GitHub Integration that SmartThings offers with their IDE. This will make it much easier for you to keep up to date with changes over time. For the general steps needed for setting up GitHub IDE integration, please visit this and follow the steps for performing the setup.
If this is your first time installing this, first follow these steps to link your IDE with the code repository.
- Login to the IDE at ide.smartthings.com
- Click on My Locations at the top of the page
- Click on the name of the location that you want to install to
- Click on the My Device Handlers tab
- Click Settings
- Click Add new repository and use the following parameters:
- Owner: asishrs
- Name: smartthings
- Branch: master
- Click Save
Once the repository is connected to your IDE, use the GitHub integration to install the current version into your workspace. In the IDE:
- Click Update from Repo and select the
smartthings
repository you just added - Find and Select below device handlers Select Publish(bottom right of screen near the Cancel button)
ring-alarm-contact-sensor.groovy
ring-alarm-floodfreeze-sensor.groovy
ring-alarm-motion-sensor.groovy
ring-alarm.groovy
- Click Execute Update
Note the response at the top of the My Devices Handlers page. It should be something like "Updated 0 devices and created 4 new devices, 4 published" Verify that the four devices show up in the list and are marked with Status Published (NOTE: You may have to reload the My Device Handlers screen for the devices to show up properly.)
Once you have the Device Handlers added and published in your IDE, it is time to add the SmartApps.
- Click on the My SmartApps tab
- Click Update from Repo and select the
smartthings
repository you added earlier - Select the check boxes next to
ring-alarm-manager.groovy
- Select Publish(bottom right of screen near the Cancel button)
- Click Execute Update
Again, note the response at the top of the My SmartApps page. It should be something like "Updated 0 and created 1 SmartApps, 1 published"
- Login at http://graph.api.smartthings.com
- Select My Locations, select the location you want to use.
- Select My Device Handlers
- Click on the + New Device Handler button on the right.
- On the New Device Handler page, Select the Tab From Code
- Copy the ring-alarm-contact-sensor.groovy source code and paste it into the IDE editor window.
- Click the Create button at the bottom.
- Click the blue Save button above the editor window.
- Click the Publish button next to it and select For Me. You have now self-published your Device Handler
- Repeat step 1 to 9 for below devices as well.
- (optional) Login at http://graph.api.smartthings.com
- (optional) Select My Locations, select the location you want to use.
- Select My SmartApps
- Click on the + New SmartApp button on the right.
- On the New SmartApp page, Select the Tab From Code
- Copy the ring-alarm-manager.groovy source code and paste it into the IDE editor window
- Click the Create button at the bottom.
- Click the blue Save button above the editor window.
- Click the Publish button next to it and select For Me. You have now self-published your SmartApp
- (optional) Login at http://graph.api.smartthings.com
- (optional) Select My Locations, select the location you want to use.
- Select My Devices
- Click on the + New Device button on the right.
- Fill the Name and Network ID Field (can be anything you like)
- Under Type, select Ring Alarm
- Select appropriate options under Location and Hub
- Click Create
This is based on SmartThing Classic App.
- Open your SmartThings app and go to Marketplace
- Tap on the SmartApps and then scroll to the bottom of the page and tap on My Apps
- Tap on Ring Alarm Manager
- Configuration
-
AWS API for SmartThings Integration
- Pause AWS Ring Integration - Choose that only of you want to temporarily disable the integration.
- API Url - AWS API URL for Ring Alarm Lambda
- API Key - AWS API Key for Ring Alarm Lambda
- Polling Interval - Choose the desired interval, default 5 minutes
-
Ring Account
- Ring Two Factor Enabled - Select this if you have enabled Two factor Authentication in Ring Account.
- Do you have an existing Refresh Key - If you already have a refresh key for Ring Two Enabled Account, you can select this. You will be asked to provide that in the next step.
- Ring user name - Ring user email address
- Ring password - Ring account password.
If you said
YES
to step 2.1, proceed as below.- Tap on Finalize the Ring Account Setup.
- If you have selected yes to step 2.1, you will be receiving a Text message from Ring on your registered mobile. Enter the text message on 2FA Code
- Tap on Account Status to see the Ring Account Connection Status. If the connection is successful, you can see the ZID and Location.
If you said
NO
to step 2.1, proceed as below.- Tap on Account Status to see the Ring Account Connection Status. If the connection is successful, you can see the ZID and Location.
-
SmartThings Alarm Device
- Select the Alarm Device you installed. This is mandatory information otherwise the SmartApp cannot refresh the Alarm and Sensor status.
- You choose the next three options based on how do you want the alarm to behave for SmartThings mode changes. This is not same as SHM mode.
-
SmartThings Notifications
- You can choose the notification options as well as a custom name on this.
-
Read the release notes
Do you have more devices?
Either open an issue with the device type, or you can make a PR with the required changes.
Other issues? Please open an issue.
SmartThings - Ring Alarm Device & Smart-App is released under the MIT License.