SDC 2014: A Guide for Developers

Thanks for taking the time to learn more about the SmartThings developer program at this year’s Samsung Developer Conference. We’re building and championing a totally open smart home platform that brings together third-party developers, device makers, and consumers. We hope you’ll build this with us.

To get started, check out the SmartThings developer’s portal.

All of the demos that you’ve seen at this year’s SDC and inside the Samsung Smart Home were created using SmartThings’ family of sensors and our growing ecosystem of compatible devices, and code that is available to you today. Here’s an example of the code used to turn on a light in response to a SmartSense Open/Closed sensor:

wp_content(/**
* Let There Be Light!
* Turn your lights on when an open/close sensor opens and off when the sensor closes.
*
* Author: SmartThings
*/
definition(
name: "Let There Be Light!",
namespace: "smartthings",
author: "SmartThings",
description: "Turn your lights on when a SmartSense Multi is opened and turn them off when it is closed.",
category: "Convenience",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Meta/light_contact-outlet.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Meta/light_contact-outlet@2x.png"
)

preferences {
section("When the door opens/closes...") {
input "contact1", "capability.contactSensor", title: "Where?"
}
section("Turn on/off a light...") {
input "switch1", "capability.switch"
}
}

def installed() {
subscribe(contact1, "contact", contactHandler)
})

All of our code is open source. This means that you’re able to browse the code, learn, and use as much of it as you’d like to create your own custom use cases. We call these new use cases created by third-party developers “SmartApps.”

Aside from the SmartThings developer’s portal, our Community site is a great place to chat with other developers, ask questions, and get inspired by some pretty cool SmartApps that people have built.

Thanks, and here’s to building the future of smart homes–together.

Category:
Roundups