Samsung SmartThings

One simple home system. A world of possibilities.

Integrate the Samsung SmartThings API with the Go API

Setup the Samsung SmartThings API trigger to run a workflow which integrates with the Go API. Pipedream's integration platform allows you to integrate Samsung SmartThings and Go remarkably fast. Free for developers.

Run Go Code with the Go API

Run any Go code and use any Go package available with a simple import. Refer to the Pipedream Go docs to learn more.

 
Try it

Overview of Samsung SmartThings

The Samsung SmartThings API is an open platform that enables developers to
quickly and securely connect a wide range of devices, services, and
applications to the SmartThings smart home and connected environment. With the
API, you can integrate your SmartThings-compatible products with a range of
third-party services and applications for enhanced convenience, automation, and
control.

Using the SmartThings API, you can create custom automations and routines,
helpful notifications, unique user experiences, and otherwise extend the
functionality of your SmartThings-enabled devices. You can also control your
devices with voice commands or control remotely over the internet, adding an
extra layer of convenience to your home or business.

Examples of What You Can Build with the SmartThings API

  • Automatically adjust the temperature of your thermostat when motion is
    detected in a certain room
  • Set up lights to turn off when you leave the room
  • Display your garden’s temperature and weather conditions on a mobile app
  • Set connected appliances to run at certain times and even synchronize them
    with a calendar
  • Control the lighting around your home from your smartphone
  • Receive notifications when doors and windows are opened
  • Create a security system by connecting detectors and cameras
  • Automate the lock on your doors based on the location of your smartphone
  • Track your energy usage and set energy-saving schedules for connected
    appliances
  • Receive personalized alerts about air quality based on changes in the
    environment.

Connect Samsung SmartThings

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    smartthings: {
      type: "app",
      app: "smartthings",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.smartthings.com/v1/devices`,
      headers: {
        Authorization: `Bearer ${this.smartthings.$auth.token}`,
      },
    })
  },
})

Connect Go

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main

import (
	"fmt"

	pd "github.com/PipedreamHQ/pipedream-go"
)

func main() {
	// Access previous step data using pd.Steps
	fmt.Println(pd.Steps)

	// Export data using pd.Export
	data := make(map[string]interface{})
	data["name"] = "Luke"
	pd.Export("data", data)
}