Samsung SmartThings

One simple home system. A world of possibilities.

Integrate the Samsung SmartThings API with the Node API

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

Run Node Code with the Node API

Write custom Node.js code and use any of the 400k+ npm packages available. Refer to the Pipedream Node 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 Node

1
2
3
4
5
6
7
// To use previous step data, pass the `steps` object to the run() function
export default defineComponent({
  async run({ steps, $ }) {
    // Return data to use it in future steps
    return steps.trigger.event
  },
})

Community Posts

Automate checking a ticket system's availability with Node.js and Pipedream
Automate checking a ticket system's availability with Node.js and Pipedream
How I used Node.js and Pipedream to automatically scrape a ticket booking site and notify me if availability had changed.