
- #Smartthing smartapp environment install
- #Smartthing smartapp environment manual
- #Smartthing smartapp environment full
- #Smartthing smartapp environment registration
- #Smartthing smartapp environment code
#Smartthing smartapp environment code
Complete and Accurate (hopefully, I tried!) SmartThings setup documentation with images and code snippets.Strict ESLint configuration and adherance (NOTE: should integrate ESLint into git commit hooks).Configured to run with new, experimental ESM support coming standard in pending Node minor release.
#Smartthing smartapp environment full
#Smartthing smartapp environment registration
If you do so, you will need to follow steps above to re-verify your App Registration with the new URL after NGrok restarts. You do not want or need to restart the yarn tunnel task.
#Smartthing smartapp environment install
client & yarn (to install client-level npm dependencies) server & yarn (to install server-level npm dependencies)
#Smartthing smartapp environment manual
(TODO: Find a better way to deal with this manual coupling)Ĭontinue to the 'Everyday development instructions' below.

Modify package.json edit the yarn tunnel script set YOURPORTFROMENVCONFHERE to the value you set above in Step #3 for PORT.

This is required assuming your development environment does not have a public-facing internet address.Latest version of NodeJS installed on your computer (must be version 14+)ĭownload NGrok and put the ngrok.exe program in the /server subdirectory and set up a FREE account, then configure NGrok according to the basic setup instructions on the download page.This example cannot be hosted on automated web hosting platforms like other SmartThings Community examples. I attempt to layout the explicit steps necessary to get a local development environment up and running.

These steps are intentionally different than may of the example SmartApp Community examples. However, none of those apps really put things together in a real world use-case which is what this example intends to do. For developers just wandering into the Samsung SmartThings developer space it may come across as overly-complicated and you may find better resources at the SmartThings Community GitHub for introductary purposes. This is targeted at hobbiest SmartApp developers who may be interested in a full-scale working application example. This code is a static long-running branch that has been pruned down to illustrate a working SmartApp that interfaces with the Rules API and creates a practical rule-set that I use for my needs. I attempted to branch this while the Rules SmartApp was still fairly isolated before I really move forward mixing it with the FrontEnd and other SmartApp in the main branch. This code is branched off my working main repository which contains a much more complex dual SmartApp setup with a React client Front-End that integrates with another SmartApp that was removed from this branch. SmartThings SmartApp Rules API Example DESCRIPTION
