RBoy Apps
INSTALLING SMART APPS
NOTE: You need to use the SmartThings Classic mobile app for installation AFTER which you can access the installed SmartApps using the new SmartThings mobile app
  1. Click on the Smart App you want to install, it will open a new window with the code, select all (Ctrl+A) and copy the code (Ctrl+C)
  2. Login to your SmartThings IDE at https://graph.api.smartthings.com (create a login if you don't have one AND don't forget to opt-in for the developer account)
  3. Click on "My Locations" and then click on the name of the location where you want to install the SmartApp
  4. Click on "My SmartApps
  5. Click on "+New SmartApp" on the top right 
  6. Click "From Code
  7. Paste the code (Ctrl + V) into the editor and click "Create
  8. Click "Publish" and then "For me" on the top right (NOTE: see steps 7.1 to 7.6 below if you need to enable "OAuth" for your SmartApp)
  9. To install the SmartApp, open your SmartThings Classic App on your phone, click on the Automation icon at the bottom bar right corner of the main screen. Now click on the "SmartApps" tab on the top right of the screen. Scroll down to the bottom and click on "+Add a SmartApp". Then scroll down to the bottom and click on "My Apps". (NOTE: if you don't see "My Apps" contact SmartThings support, if you don't see the SmartApp in "My Apps", then you may have installed the code in the wrong location, check step 3 again)
  10. Scroll down the "My Apps" section until you see the new SmartApp you just created and click on it on install it. You're done! To open/configure the app in future follow step 11.
  11. After installing the SmartApp, configure/open it by clicking on the "Automations" icon and then click on "SmartApps" on your phone. NOTE: Clicking on the SmartApp in the "My Apps" section will install a NEW instance of the SmartApp instead of opening the existing installation.
NOTE: If your SmartApp requires OAuth enabled, follow these instructions to enable OAuth AFTER Step 7 above:
        7.1  After clicking "Publish", click on the "App Settings" button next to the Publish button
        7.2  Scroll down and click on "OAuth" to expand the section
        7.3  Click on "Enable OAuth in Smart App" (it will create it create a ID and Secret)
        7.4  Click on "Update" at the bottom of the page
        7.5  Scroll down back to OAuth, click on it and verify that the Client ID and Client Secret have been created/saved. If not repeat the process until it is saved (sometimes it takes a few tries)
        7.6  Complete the installation starting from Steps 8 above


FOR UPDATING EXISTING SMARTAPPS WITH A NEWER VERSION OF THE CODE:
  • Click on the Smart App you want to update, it will open a new window with the code, click on the browser refresh button (to flush the cache), select all (Ctrl+A) and copy the code (Ctrl+C)
  • Login to your SmartThings IDE at https://graph.api.smartthings.com
  • Click on "My Locations" and then click on the name of the location where had installed the SmartApp previously
  • Click on "My SmartApps"
  • Click on the SmartApp you want to update in the SmartThings IDE
  • Select all (Ctrl+A) and delete the old code, Paste (Ctrl+V) the new code
  • Click on "Save"
  • Click  on "Publish" and then "For Me", if you don't so this the update won't work
  • IMPORTANT, DON'T SKIP THIS STEP: Open the SmartApp on your phone by clicking on the "Automations" icon  and then click on "SmartApps" on on your phone. Open the SmartApp you just updated, check/update your settings and tap "Save"