does sonoff work with smartthings

Does Sonoff Work with SmartThings?

By Sarah Rodriguez
AD

If you're considering integrating your Sonoff devices into a broader smart home ecosystem, you might be wondering, "Does Sonoff work with SmartThings?" The short answer is yes, but with a bit of setup. Let's delve into how to connect these two powerful platforms.

SmartThings is a comprehensive smart home hub that offers automated control and monitoring of a wide range of devices. Sonoff, on the other hand, specializes in affordable, Wi-Fi-enabled smart switches and sensors. By combining these, you can create a more robust and feature-rich smart home system.

Setting Up Sonoff with SmartThings

To connect Sonoff devices with SmartThings, you'll need to use the SmartThings mobile app and create a custom device handler. This process involves a bit of technical know-how, but we'll guide you through it.

AD
Hacking a Sonoff to Work With Home-Assistant and MQTT
Hacking a Sonoff to Work With Home-Assistant and MQTT
An introduction to SONOFF smart devices
An introduction to SONOFF smart devices
Best SONOFF Products to Build a DIY Smart Home - Maker Advisor
Best SONOFF Products to Build a DIY Smart Home - Maker Advisor

The first step is to add your Sonoff device to the SmartThings app. Since SmartThings doesn't recognize Sonoff devices by default, you'll need to create a custom device type. Here's how:

Creating a Custom Device Type

Before creating a custom device type, ensure you have the latest version of the SmartThings mobile app installed. Then, follow these steps:

Sonoff: $5 Smart Switch! Works with Smartthings!
Sonoff: $5 Smart Switch! Works with Smartthings!
SONOFF SMART HOME DEVICES NOW INTEROPERATE MORE EASILY WITH SAMSUNG SMARTTHINGS
SONOFF SMART HOME DEVICES NOW INTEROPERATE MORE EASILY WITH SAMSUNG SMARTTHINGS
the sonoff - $ 5 wifi wireless smart switch is shown
the sonoff - $ 5 wifi wireless smart switch is shown

1. Open the SmartThings app and tap on the three lines in the top-left corner.

2. Tap on "Devices" and then the "+" icon in the top-right corner.

AD

3. Tap on "Custom device", name it (e.g., "Sonoff Device"), and select "Switch" as the device type.

SonOff Switch - Reprogramming to use with Home Assistant
SonOff Switch - Reprogramming to use with Home Assistant
SONOFF Tutorial: A Wi-Fi Room Temperature Controller for $10
SONOFF Tutorial: A Wi-Fi Room Temperature Controller for $10
Sonoff Basic Wi-Fi Smart Switch — Untangling the Ropes - EDN
Sonoff Basic Wi-Fi Smart Switch — Untangling the Ropes - EDN
SuperHouse #31: Sonoff Tasmota installation and configuration
SuperHouse #31: Sonoff Tasmota installation and configuration
How to turn anything with an on/off switch into a connected device?
How to turn anything with an on/off switch into a connected device?
two electronic devices sitting on top of a wooden table
two electronic devices sitting on top of a wooden table

4. Tap on "Done" and then "OK".

Creating a Custom Device Handler

Next, you'll need to create a custom device handler for SmartThings to recognize your Sonoff device:

AD

1. Visit the SmartThings developer website (https://smartthings.developer.samsung.com/) and sign in or create an account.

Flash Tasmota on the Sonoff Basic
Flash Tasmota on the Sonoff Basic
[OBSOLETE] Sonoff, Sonoff TH, S20, Dual, 4CH, POW, & Touch Device Handler & SmartApp ($5 & $10 Smart Switches)
[OBSOLETE] Sonoff, Sonoff TH, S20, Dual, 4CH, POW, & Touch Device Handler & SmartApp ($5 & $10 Smart Switches)
Flashing SONOFF Tasmota Firmware on NodeMCU
Flashing SONOFF Tasmota Firmware on NodeMCU
SONOFF Matter devices work with Apple Home, Google Home, Alexa
SONOFF Matter devices work with Apple Home, Google Home, Alexa
SuperHouse #21: Six Sonoff Secrets: Storage, Safety, Switches, Sensors, Software, and Sites
SuperHouse #21: Six Sonoff Secrets: Storage, Safety, Switches, Sensors, Software, and Sites
someone is working on an electronic device with wires
someone is working on an electronic device with wires
DIY Hybrid Sonoff Smart Switch for $10
DIY Hybrid Sonoff Smart Switch for $10
Sonoff install
Sonoff install
Using Sonoff mini R2 without neutral wire #sonoffmini #noneutral #electronicscreators
Using Sonoff mini R2 without neutral wire #sonoffmini #noneutral #electronicscreators
The 10 SMARTEST Smart Plug Uses
The 10 SMARTEST Smart Plug Uses
7 Smart Home Ideas to Make Your Life Easier in 2021 - Penny Modern
7 Smart Home Ideas to Make Your Life Easier in 2021 - Penny Modern
Reprogram Sonoff Smart Switch Web Server | Random Nerd Tutorials
Reprogram Sonoff Smart Switch Web Server | Random Nerd Tutorials

2. Click on "Device handlers" and then "Create new".

3. Name your device handler (e.g., "sonoff") and select "Public" if you want to share your work.

AD

4. Choose "SmartApp" as the handler type and click on "Create".

5. In the "main" function, add the following code to establish a connection with your Sonoff device:

var ipAddress = 'xxx.xxx.xxx.xxx'; // Replace with your Sonoff device's IP address
var port = 80;
var maxConsecutiveErrors = 3;
var consecutiveErrors = 0;

6. Click on "Test" to ensure your device handler works correctly, then click on "Publish" to make it available in your SmartThings app.

With these steps, you've successfully integrated your Sonoff device with your SmartThings hub. Now you can control your Sonoff devices using your SmartThings app, and even create automated routines and scenes.

Expanding Functionality with SmartThings

By connecting Sonoff devices to SmartThings, you open up a world of possibilities for automating your home. Here are some examples:

Automatic Lighting

Create a routine to turn on your Sonoff lights at sunset or when you arrive home. For example, you could set up a routine to turn on your outdoor lights when the motion sensor detects activity at night.

Temperature Control

If you have a Sonoff TH device with temperature and humidity sensors, you can use this data to trigger smart actions. For instance, you could set up a routine to turn on a fan when the temperature in a room reaches a certain threshold.

Integrating Sonoff devices with SmartThings offers immense potential for creating a seamless, automated smart home experience. Explore these platforms' features to unlock the full power of your connected devices. Happy smart home building!

AD