RBoy Apps
INSTALLING SMART APPS
For installing a Smart App follow these instructions:
  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). To verify that you're logged into the correct location, after logging into the above link, click on "My Locations" and then click on the name of the location where you want to install the SmartApp. Note: You may be asked to log into your account again when you click on your location, if so login again.
  3. Click on "My SmartApps
  4. Click on "+New SmartApp" on the top right 
  5. Click "From Code
  6. Paste the code (Ctrl + V) into the editor and click "Create
  7. 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)
  8. To install the SmartApp, open your SmartThings App on your phone (iPhone, Android or Windows Mobile), click on the Star (Marketplace) 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 "My Apps" section and click on it. (NOTE: if you don't see "My Apps" please contact SmartThings support, if you don't see the SmartApp in "My Apps", then you may have installed the code on the wrong 'Shard', please check step 2 again)
  9. 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 10.
  10. 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 again will install a NEW instance of the SmartApp instead of opening the existing installation.
NOTE: Some SmartApps (e.g. Foscam Motion Alarm Monitor) required OAuth enabled for them to work. 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. To verify that you're logged into the correct location, after logging into the above link, click on "My Locations" and then click on the name of the location where you want to install the SmartApp. Note: You may be asked to log into your account again when you click on your location, if so login again.
  • 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 by clicking on the "Automations" icon  and then click on "SmartApps" on on your phone, check/update your settings and hit "Done". If you don't do this last step the SmartApp may not work.