Control sonoff mini with smartthings?

I have multiple sonoff minis working with ewelink. I have just purchased a smartthings hub to have a single location to control all my different devices in one location. When setting up smartthings without the hub, I noticed the sonoff option so expected it would work when I bought the hub. I use the following apps at the moment controlling various types of devices.

Ewelink for sonoff mini switches
Brilliant smart for bulbs I have
Harmony hub & Companion remote
Going to purchase hue bridge for my hue bulbs
IHC for broadlink switches
Google assistant for voice control

I am only a novice at this so not very confident with the idea of flashing and programming tasmoto unless it’s absolutely needed and I’ll have to work it out.

Can someone help point me in the right direction as I believe that it will help a lot of others in similar situations.

Hey there!

I bought a couple of these as well and integrated without flashing. I use IFTTT to connect to the Ewelink, then created virtual switches in SmartThings to connect to IFTTT and control the Ewelink (I also use WebCore for more advanced features). All the directions can be found here in the forums. :slight_smile:

1 Like

Thank you for the reply. With a bit more searching I was able to find how to use ifttt and set it up as you’ve described.

I love the sonoff minis as I can turn my lights into smart lights & still have it so my technophobic wife can use the switches as normal while I can still automate control of the switches in the background. She is just having issues with the switches being in either position for circuits where she can’t see an change like a ducted ceiling fan I installed where the motor is out of audible range for her hearing.

Do they come with good wiring diagrams? Looking for better info on wire connections from standard switch box to the mini itself and whether all that will fit in my box.

I flashed some similar devices with Tasmoto just so I could control them locally without IFTTT or their cloud stuff. I just installed a simple URI switch device handler that I found here and I use that to have the hub make a call on my local network. The OTA flashing was straightforward, although I did brick one of them in the process. This wifi plug was cheap enough that it didn’t bother me much to lose one.

So far I have a successful OTA flash tasmota to a sonoff mini. Working on the proper codes for a device handler that I can incorporate to my SmartThings to switch them on and off.
Where I am stuck is the URL to the IP address. I have the example in place but obviously that doesn’t work because it’s not specific to my network. If you aren’t using a Raspberry Pi 3 or node red I’d be very interested in finding out how you are successfully able to switch on and off the sonoff mini having flash tasmota to it.

You can try using Brett Sheleski’s device handler with tasmota firmware. his github page has detailed instructions. Use the mini template to configure tasmota and this dth . No need for a computer or rpi.

I have tried this, it isn’t Sonoff Mini specific. I get as far as it being recognized in ST, I’m able to assign it to a room, but there is no function of on off.

1 Like

That sounds like the parent device which only has a refresh function. This parent device needs to be assigned the ip address of the sonof f then it will Create a child device which you use for on and off. This dth will Create two devices in ST, the parent which you don’t interact with and the child on/off switch. See the example in the github page above. It works very reliably for my mini’s

Even though I have flashed it with Tasmota? I get that I could use the mini in ST with the original eWelink Firmware, the hassle of created for myself is being able to use the mini with Tasmota on it in ST, If I have been able to use a Tasmota flashed mini in ST from the dth, I have missed something pretty major this whole time.

O posted this on anOther thread but it is the readMe from the author.

Example installation for Sonoff Basic

In addition to the Tasmota device handler, the Tasmota-Power device handler will also need to be installed.

(This process is likely the same for many module types, but is not yet tested.)

Install the Tasmota Device Handler.

This device handler is necessary for all module types. This device handler will make an HTTP call to the Tasmota device to determine the module type. Depending on the module type defined, it will create child devices.

  1. Log in to the SmartThings IDE (
  2. Go to My Device Handlers
  3. Click Create New Device Handler
  4. In the From Code tab paste in the code from
  5. Click Create
  6. Click Publish --> For Me

Install the Tasmota-Power Device Handler

For Sonoff-Basic, Sonoff-4CH, and Sonoff Dual devices this is required

  1. Log in to the SmartThings IDE (
  2. Go to My Device Handlers
  3. Click Create New Device Handler
  4. In the From Code tab paste in the code from
  5. Click Create
  6. Click Publish --> For Me

Add your Device

  1. Log in to the SmartThings IDE (
  2. Go to My Devices
  3. Click New Device
  4. Give your device a Name
  5. Enter a unique Device Network ID for your device
  6. In the Type dropdown, scroll to the bottom and select the Tasmota device.
  7. Choose your Location
  8. Choose your Hub
  9. Click Create
  10. In the Edit Device page, click the Edit link in the Preferences area
  11. Enter the IP Address of your Tasmota device (Required)
  12. Enter the Username your device uses (Optional)
  13. Enter the Password for your device (Optional)
  14. Click save

After adding and configuring the Tasmota device to your SmartThings account, you should be able to open the SmartThings app and you will see the device you created, as well as a device with the same name followed by the Switch suffix. The Switch device will be the device you would normally interact with.


Since Tasmota devices may also be triggered via external sources (not using the SmartThings app) the SmartThings device will need to know of device state-changes.

To accomplish this a SmartThings SmartApp is in development to expose an HTTP endpoint which can be called to update the state of the Tasmota device(s).

See here:

@Hawks_nest Can you edit your post and replace the url with Otherwise some users may experience issues.

“May” experience issues!! When I first logged in lazily following the link, there was zilch device handlers or devices. I figured it out after I read jkp’s post. Funnier now.

It works now. To say I appreciate your last post is an understatement. Though I have sifted through this world of OTA flashing, Tasmota, FTDI, IP addresses, DTH, smartthings, hubs, scads of youtube, home assistant, mqtt and freakin ifttt, was all started 4 weeks ago for me.
I wouldn’t have gotten this far without asking a lot of questions and have kept going despite the crash course and it has led me to this…a lot more people need the last email of instructions you sent me so they can use their tasmotized sonoff mini for light switches in the smartthings app.
As I mentioned having earlier having missed something major this whole time was true. Of all the device handlers I had from Brett, for some reason I didn’t have “Tasmota” DTH. I had the Tasmota Sonoff DTH.
Having followed what you wrote, editing the preferences to include the ip address gave me two icons in smartthings, as you mentioned would happened, so of course the first one I selected was the parent that does nothing. My next selection took me to a toggle that I was immediately able to select on as my Tasmota Sonoff Mini relay could be heard clicking on and off. mod

Congrats moody. Glad you got it working

Ha ha ha, I had a good laugh reading it as moody. I’ve gone by moddy for about the last 8 years and it’s kind of funny over my process of hammering through all this stuff coming from a non background of all this stuff and seeing the word moody, it was just that.
What is your opinion on running home assistant using a Raspberry Pi 3 for controlling devices. I am seriously leaning that way because of so many different devices you can use from other vendors that are not necessarily SmartThings compatible.
I already have wyze cameras placed along with SmartThings outlets now the Sonoff switches with Tasmota on and thought it might be better for where I’m going in my own growth, to use home assistant as a platform for more as a personal challenge and userability.

Thank you so very much <3

Don’t know why it took me so long to find this. I tried i think about 10 different methods, but none worked. Saw this and tried just once more, even though I had given up. Works rigt away :grin:

so ive had the mini for months kept reading and watching youtube was going round in circles
dr zzs got me halfway along with a german fellas channel ,
but was still flapping ,
found this and it got me over the line,

advanced ip scanner had the manufacturer as Espressif ,tried a few ip’s before i found it
on the new app though it shows 2 devices
only discovered it was the same device when i deleted one of the them
one with settings the other not

I use this And it work great. Flashed about 15 minis. I made fixture with push pins instead of using DIY.