April
(April Wong)
February 16, 2015, 5:55am
1
Our developer’s documentation has a lot of information to get you started. We’re continuing to build and beef up this portal, but you may find most of your answers here:
http://docs.smartthings.com/en/latest/getting-started.html
Other useful stuff.
ScottinPollock’s video tutorial on Creating SmartApps from External code
Terminology Is Important: Documentation Needs a Glossary?
OK… so here’s a rough summary of what @balkcivil and I discussed. I’m hoping @Jim takes note and will be able to tell us what is planned in the short term documentation, with the rest going into the Community FAQs that @April is encouraging us to write …
This is meant to be a rough draft overview and may have various degrees of inaccuracy or consistency.
Terminology Is Important: Documentation Needs a Glossary?
A SmartApp is not a mobile app (and certainly not THE SmartThings Mobile App). A SmartApp is often just a “rule” or “recipe” (if <open> then <turn on> <light>), where <x> are parameters – called Preferences in a SmartApp. A SmartApp, however, can be much more complex than basic rules, as developers write them with Groovy methods, access to some Java libraries, etc…; but they ru…
Listing all set parameters
Is there a way to list all the parameters set when a smartapp is installed from within the same smartapp?
I’ve tried everyway that I know how in groovy but none of them work.
2 Likes
April
(April Wong)
February 17, 2015, 5:35pm
2
@JDRoberts has a great explanation about Modes and Hello Home Actions in a coder’s POV and how it affects the end-user.
Welcome to the group! SmartThings can be great fun for people who enjoy coding, it’s a very flexible developer platform.
From a coder viewpoint:
Mode functions as a global mutable state variable. So you can change it from a lot of different places and then it’s available everywhere. And yes, if you’re not careful it will break your heart, because one process may have changed it before another one checks it. (And it can be very hard to debug because an error may depend on which process happened to complete first.) Mode can only have one value at a time, but you can add more values if needed.
And you can make mode one of the schedule controllers and change the mode at the end of the action, like changing mode from At Home to Away.
Hello Home Actions are limited option scenes with…
2 Likes
nico89s
(Nico)
April 4, 2015, 3:06pm
3
I use ‘Light Turn On Motion’ Smartapp, I want to edit that code but I can’t find it on IDE menu. Where is it ?