ethayer
(Erik Thayer)
June 7, 2015, 2:02pm
219
You must be talking about the custom device type.
You can use that code to make the app work more reliably. At every poll event, the app will make sure the correct codes are set, and if not, set the correct codes.
It isn’t needed to function, but it sure works better if you use it.
This might help:
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:
Login at http://graph.api.smartthings.com
Go to “My SmartApps” or “My DeviceTypes” and click on the “+ New SmartApp” or " + New SmartDevice" button on the right.
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.
Click the “Create” button at the bottom.
Click the blue “Save” button above the editor window.
Click the “Publish” button next to it and select “For Me”. You have now self-published your SmartApp or SmartDevice.
Open SmartThing…