SmartThings CoreSDK Javascript

Getting Started With CoreSDK JS

The SmartThings Core SDK is a wrapper designed to simplify the use of the SmartThings REST API from JavaScript and TypeScript applications. This is the very first release of this SDK and should be considered a work in progress. Changes may still be made that are not backwardly compatible.

Prerequisites

  • Samsung Account
  • SmartThings Account with at least one device
  • Github Account or Glitch Account

Guide

In this tutorial we will use Glitch but you should be able to follow along with any express enabled node environment.

Links

Github: https://github.com/SmartThingsCommunity/smartthings-core-sdk
Glitch to Remix: https://glitch.com/~coresdk-demo
PAT Token Page https://account.smartthings.com/tokens

YouTube Video

Now Try This:
https://community.smartthings.com/t/simple-smartapp-tutorial-smartapp-sdk/194664

10 Likes

Will be working on a part two for this over the weekend to actuate devices. Anything else you would like to see?

2 Likes

Your Glitch page doesn’t show the devices, just says “loading devices…”?

You need to watch the video above. It will only show loading devices until you add your own PAT token.

  1. Remix the project
  2. Put you own PAT token in the .env file
1 Like

Another note:

This project is for learning how to create an application using the CoreSDK. The token is tied to your personal ST account so keep things private.

1 Like

Understood and thanks!

1 Like