SmartThings Community

SmartApp / DeviceType :"From Code" and "From Template"

(Brian S. Lowrance) #1

I’m loving the new “From Code” and “From Template” options when creating a new SmartApp / DeviceType.
Users don’t have to be instructed to fill out bogus information and then replace the resulting code with code anymore.

The new instructions are:

  1. Login at
  2. Go to “My SmartApps” or “My DeviceTypes” and click on the “+ New SmartApp” or " + New SmartDevice" button on the right.
  3. On the “New SmartApp” or “New SmartDevice” page, Select the Tab “From Code” , Copy the xxxxx source code from GitHub and paste it into the IDE editor window.
  4. Click the “Create” button at the bottom.
  5. Click the blue “Save” button above the editor window.
  6. Click the “Publish” button next to it and select “For Me”. You have now self-published your SmartApp or SmartDevice.
  7. Open SmartThings mobile app and go to the Dashboard.

(For SmartApps):
8. Tap on the round “+” button and navigate to “My Apps” section by swiping the menu ribbon all the way to the left.
9. xxxxx app should be available in the list of SmartApps that appears below the menu ribbon. Tap it.

Thanks SmartThings!!

Trane Thermostat - tzemt400ab32maa
Link Cree LED bulbs
After Sunset Routine?
New to Smartthings and would like to know how to get echo to work with linear garage door opener
Is there a "How To" for creating a Device Handler?
Recurring notification when door is left open for XX minutes?
Cycle Timer
Current Device Deals & Best Prices (link to new thread at bottom of thread)
[Depricated] Lock Code Manager
New App: Thermostat Mode Director
240v 20+Amp Outlet or load controller
Disarm/arm alarm with Schlage lock code
Copy and pasting code into the IDE
D-Link DCS 932L intergration?
High temp Sensor fan control app..?
Everspring Indoor Siren SE812 Compatibility
FAQ Request: Installing custom device type/device handler/smartapp
(April Wong) #2


This is an awesome step-by-step! :slight_smile: Thanks! I’ve pinned this to share with people.



Time for a subcategory FAQ in this category? :blush:

(Nico) #5

I use “Light Turn On Motion” Smartapp, but I can’t find it from template at IDE.
Where is it ?

I thought when there’s a Smartapp by Smartthings, the code is available at IDE


I don’t have a Smart Apps section in my IDE. Is this something I enable somehow?

(Brian S. Lowrance) #7

It should be located in the banner at the top after logging into



Thanks. It wasn’t there and I contacted support today. They enabled it from their end.

(Get Me On Top) #9

I followed the directions and got the following error?

Groovy.lang.MissingMethodException: No signature of method: is applicable for argument types: (java.util.LinkedHashMap) values: [[name:pageSetup]] Possible solutions: path(java.lang.Object), wait(), any(), wait(long), main(java.lang.String), main(java.util.List)



(Brian S. Lowrance) #10

This is an error in the code of the SmartApp that you are trying to install. It appears to be calling a page() function which either does not exist or has errors and cannot be analyzed/executed.

(Martin Jersonsky) #11

Where sould I see the newly created device type?

(Lucas England) #12

how do i find the smart device and block it from the other smart device it thinks that it is

(Brian S. Lowrance) #13

I think what you are wanting to do is change the device type to something different than SmartThings detected it as when you installed it. To do this:

  1. Go to
  2. Login with your SmartThings account.
  3. Go to My Devices
  4. Locate and click on the device in question
  5. Scroll to the bottom and click Edit
  6. Go down to “Type *” and change it to the desired compatible type for the device.

I had a contact sensor that was detected as something else and this resolved it for me.
I hope this helps and sorry for the delayed response.

(Tarik Faik) #14

hello i dont see my apps or my device types on the banner pleas help i have the UK version


Contact support and ask them to enable it in your account. I believe it’s something they have to do in their end.

(Brian S. Lowrance) #16

Yea, it doesn’t look like your account has developer mode enabled.

(Tarik Faik) #17

Thanx i already contacted smartthings mustr wait til the enable it