In this project a SmartThings outlet has been connected with a motion sensor via Octoblu. As it gets tripped, the Octoblu turns on a siren or speaks text or sends a SMS to the owner. The hardware used in this case is one SmartThings Samsung SmartThings Hub, a SmartThings Samsung SmartThings Motion Sensor, a Siren, and a SmartThings Samsung SmartThings Outlet. To begin with, you will have to download the SmartThings mobile app and follow all steps mentioned there. It will help in connecting your hub with the SmartThings account. The software apps needed for this purpose is just Octoblu Meshblu.
Figure 1: Home Security with SmartThings via Octoblu
Once you have your SmartThings sensor and outlet connected with your hub you will have to create one SmartApp that can connect sensor and SmartThings outlet with the Octoblu account. The two will come up as their own different equipment. The prime objective of custom app is to take you through an Oauth process and then add the selected equipment with your account. Remember, nothing else will add up all your devices other than the custom app.
You can start by going through the SmartThings developer page and make a new application. Then copy/paste the code retrieved from octoblu-smartapp in the app you created. Click the save button now and publish the new app. Now move back to the SmartThings app over your phone. Find the Maretplace tab on bottom end and go further down to My Apps. Click over your SmartApp and then go through the instructions given there to add the devices from your hub to the Octoblu account.
Now use the Setup Wizard and then click “Done” on the bottom corner. In case you had to add the SmartThings sensor and outlet before importing, these will appear with logos once importing is done. The flow goes like this – whenever the motion sensor finds any inactivity or activity, a message is sent. Then you decide whether to turn off the device in event of inactivity or turn on the outlet if it is active.
Filed Under: Reviews