oreomaps.blogg.se

Smartthings install my own smartapp
Smartthings install my own smartapp










Make sure that the Raspberry Pi is on and the python script is running. Test the script by typing python ssdpcamera.py you should see something like this:įrom the SmartThings mobile app we should go to Marketplace in the bottom right corner, click on the "SmartApps" tab and finally look in "+ My Apps" for " Computer Vision (Connect) " Paste the attached code " Camera Python Script" and s ave by pressing "control + x" and then "y" and enter. Now that everything is ready go to /home/pi and create a directory to store the script mkdir cameraĬreate the script file: sudo nano ssdpcamera.py

#SMARTTHINGS INSTALL MY OWN SMARTAPP INSTALL#

If you don’t already have imutils package installed, you’ll want to grab that from GitHub or install it via: pip install imutilsįor twisted: sudo apt-get install python-twisted-web Now we have to add the python script that will get images from the camera, detecting faces and reporting to SmartThings.įirst d ownload and install imutils and twisted Click on the second tab "From Code", paste the attached code " SmartApp" and click “Create”. Similar to the Device Handler we will go to the “My SmartApps” section, click “+ Create New SmartApps ” on the top right corner. In the next page click “Publish” to make the device available to you. Click on the second tab "From Code", paste the attached code "Device Handler" and click the “Create”. In this case we will create it from code. Go to the “My Device Handler” section, click “+ Create New Device Handler ” on the top right corner. In the SmartThings IDE, we create a new device handler for our Computer Vision Motion sensor. If you don't I recommend this tutorial :)Ĭreating a Custom SmartThings Device Handler I will start by assuming that you have a Raspberry Pi 3 with a working camera and Open CV installed on it.

smartthings install my own smartapp

SDC 2016 Session: SmartThings Device Onboarding - Part 2










Smartthings install my own smartapp