I know these can be integrated by flashing firmware etc. I am not up to doing all this. One my hands aren’t as steady as they once were , so soldering is out. Plus I don’t own a Windows machine. So since these work with Alexa, and IFFFT, I have to come up with a way to get these to work in SmartThings. I was thinking that a simulated switch with IFFT might work.
Create Simulated switch? (Not sure if it needs to be momentary or regular)
Open SmartThings app builder in IFFT
Create (if) In SmartThings IFFT
Crate (This) with eWiz on IFFFT
Now the questions do I need a momentary os standard simulated switch?
Just setting up my own home automation system and I am not sure why you would want to integrate the Sonoff switch into SmartThings. I am using the Google Home and a sonoff switch and IFTT app.
Other than being able to control the switch using the SmartThings app on my phone what is the advantage? Just curious if I am missing something?
I was thinking of doing something very similar and it sounds like what you want would work too. Here’s my plan once I buy a few. I could either go with webcore or stringify. As what I want to do isn’t too complicated, I’ll go the stringify route.
Create a virtual on off switch
Add the virtual switch as a thing in Stringify.
Create a flow in Stringify. When my Arlo camera’s detect motion, trigger virtual switch/switches on then when the virtual switch is triggered on, IFTTT will then close the SONOFF(turning lights on) for x amount of time, then turn off virtual switch/switches which will then trigger another IFTTT rule to open the SONOFF turning my lights back off.
I will also create another virtual switch and tie it to another IFTTT rule to just turn on and off these lights without using my camera’s as a trigger.
This should satisfy my outside flood light I hope. I have 6 bases with 3 bulbs each controlled by relays, so I plan on putting these SONOFF’s on the other side of the relays, hopefully I wont need 6 of them, but we shall see, I am going to dig into it this weekend to see what I need to do.
edit: Follow these directions to create the virtual switch.
Because the Sonoff server is completely crappy, and having to route switch commands through China (or whatever) is bad enough when it WORKS. It’s horrible when it doesn’t, which is over half the time for me.
Instead of sending these back, I’m going to flash them to ST and have them controlled LOCALLY and reliably. No more IFTTT.
I got my 8 in the mail tonight. I decided since I had 8 if them to give it a shot in flashing one, it wasn’t too bad. I wish someone would update the directions and make it more clear. It’s a pain trying to read through a crap ton of posts and piece together the newest correct way. Anyways, I’ve decided to go ahead and finish flashing the rest probably this weekend. The fun part is going to be figuring it how to incorporate them into this mess that control my food lights
I use it with ifttt with satisfaction, the delay is 1 or 2 seconds.
I created 4 recipes for each switch:
above all I created a simulated smartthings switch
and on ifttt:
1 if switch simulated smartthings on, then eweelink switch 1 on
2 if switch simulated smartthings off, then eweelink switch 1 off
3 if eweelink switch 1 on, then smartthings switch simulated on
4 if eweelink switch 1 off, then smartthings switch simulated off.
In this way when I act on smartthings I command the switch, and if I had to suspend it from the ewelink application I can see the status change to that on smartthings.
Took me a bit to figure this mess out, but I’ve successfully made my flood lights smart, total of 18 bulbs (reg led bulbs) surrounding my house for about 20 bucks. My Arlo cameras can now trigger my flood lights. Loving it!
I did not use ESPeasy, I used nodemcu go to post 1130 and read the next few posts.
This video below has a list in the comments of all the tools and stuff you will need if you plan on soldering, which I would recommend. Along with the link to the sonoff.ino.generic.bin file you will need.
This video below I found to be the best as far as doing the wireing, soldering and putting the sonoff into programming mode.
This was actually a fun project. After I did the first sonoff, I let my 15 yr old son do the rest of the soldering, he was a natural.
Stringify lets you do some cool timer related stuff. For instance:
You can drag the switch to a new flow and use it as the trigger (when the device turns on), followed by a x minute timer followed by the switch again (set to turn off). This way the switch will automatically turn off after x minutes (or seconds, etc) after it is turned on.
You can drag a trigger (motion sensor, etc) to the flow followed by the switch turning on AND a timer (see above) followed by the switch turning off. This makes a timed switch.
Iam having samsung smartthings and it will trigger alert on intrusion when in Armed condition to IFTTT ,then from to eWeLink Sonoff 4 channel switch and it should activate one switch,this is what I needed .How I can make it.
Just been playing with Sonoff Touch and Tasmota firmware and there is a device handler which directly integrates with smartthings. No delay like when using IFTTT.
Works perfectly but is is on the intermediate to advance in building… fiddly as hell!
Works a treat. if you can read the wiki (read carefully for your device as there are potential problems) and are confident with electronics, it’s the cheapest Wi-Fi switch solution I’ve used.