Thanks! I reflashed. I accidentally had the SPI wrong. So now I have flashed and was able to login by connecting to the Sonoff Wifi, Added the correct access point, and add to Smartthings.
Now a new problem! When I click ON/OFF it doesn’t actually turn on or off. It Says “ON” and then when I press the button in ST, it says Turning Off but doesn’t turn off. I have it connected to a lamp.
Here is what I tried…
Once I added the wifi switch to my cord, it didnt work on ST so i reset the wifi. It looks like it reverted back to the old firmware (ie ITEAD_XXXXXXXX) when i searched on my wifi. I can then re-add via ewelink. Is it possible that the new flash I uploaded (and worked while connected to FTDI) would revert back?
Seems like the same problem as before and that it’s still not got the correct firmware installed.
Did you install the sonoff smartapp and device handler and do the auto discovery?
It won’t just revert back like that.
Double check the firmware file you are actually flashing you may have the wrong one.
I just received this WiFi Power Strip: https://www.amazon.com/dp/B0758D7VKP/ref=cm_sw_r_cp_apa_GwRxAbFRMVZAZ
I cracked it open to see if I could find an esp8622 chip in it. I don’t see it but I’m not sure what I’m looking for. Here are some pictures. As you can see one of the large chips is under metal shield. Interestingly, there is a header that could be potentially used for flashing the firmware. I am tempted to try to flash it with the sonoff 4 channel firmware but I don’t want to brick it. Perhaps Eric or someone can chime in and let me know if they think this might be possible.
Yes the smart app and device handler are installed and working. In fact while connected to the FTDI the smartapp on my phone recognized and added the Sonoff Wifi switch. It was when i closed it up and added it to my lamp it no longer found it and reverted back. Weird!
I’m skimming through the post (quite lengthy) and trying to understand if the 4ch pro is a candidate for flashing or is strictly for the 4ch SonOff? Thanks in advance.
Sorry everyone! So i was able to get the firmware to “stick” with a lower baud rate. The Wifi Switch was found in the SmartApp and I have added it. Now I can turn on and off but IT DOESN’T actually turn the lamp on or off. I have tried turning the external Switch type between Momentary and Toggle and that doesn’t help either.
I’m able to login to the switch via IP address also.
But it just seems like the sonoff wi-fi switch isn’t receiving on and off commands. The manual button works fine so I know the lamp and switch and getting electricity.
Is it showing in your list of discovered devices?
Show a screenshot of you can, you should be able to log onto the IP address of the device in a browser and turn it on and off from there.
Also are you sure you’ve wired the lamp the right way ? It can only be wired one way one side is the input one side is the output maybe you’ve got them the wrong way check the label.
Has anyone managed to get the standard ESPEasy firmware to work with these Device Handlers and SmartApp? If so, what settings and additional plugins were used? Reason for asking - I have a Sonoff TH16 that I have enabled Pin14 on for an additional sensor, and want it to work with my existing Sonoff / Smartthings ecosystem. - I’m aware that modifications will need to be made to the TH16 Device Handler in order for the additional functionality to work… Any tips / hints welcome!
Thanks Steve for all your help! I don’t know what I was doing but I gave it a valiant third try and got it and 4 other wi-fi switches working. I wasn’t putting the switch into programming mode and my ftdi (wi-fi version) was acting as the switch. Oh man! Thanks all!
The dimensions are a bit funky, but your third picture does appear to be of an ESP module (though with the details scratched off). It also looks like there might be a programming connector right next to it (labelled CON2). Without a multimeter it would be difficult to work out what connections go where and hence how to connect the FTDI to flash it.
I would suggest if you do want to try then you should read the firmware off the device before flashing, that way you can always put it back to how it is now. That said from the looks of things, I would expect it should be compatible with the Sonoff 4CH, the only problem is the pin connections might be different, hence you might need some small tweaks in the firmware from erocm1231
Thanks for this great project! I was hoping someone could help me with my slightly varied configuration.
I’ve successfully flashed the image to a Wemos D1 Mini (ESP8266). I installed the DH and SmartApp in ST and it discovered and can control the device. Even works with my Amazon Echo! The issue I have now is that I have relay shield on the Wemos and it uses pin D1 to communicate. So while I can tell the “Fauxnoff” to turn on and off (confirmed in the status page via a browser) the relay doesn’t actuate.
My guess is that the firmware is hard coded to the pin configuration of the ESP8266 on the Sonoff, but I have no idea how to go about changing that. Any help out there???
Since @erocm1231 has never released his source code, you may want to consider another alternative which provides total control of how you use every pin on your Wemos D1 Mini board.
Take a look at ST_Anything as an open source alternative
That’s what I was afraid of. I looked at ST_Anything recently. FauxmoESP worked with Alexa devices, but I could never get ST integration working. I guess the third project is the charm for me. Thanks for the recommendation.
Re: flashing Houzetek 4 outlet powerstrip
Thanks cjcharles for your input
I tried to flash it but it doesn’t take the firmware. The LEDs light up and flash on and off when I connect the FTDI’s VCC and ground but nothing happens when I try to flash it. Perhaps I’m not putting it into programing mode. I pressed and held the button when connecting the VCC and that does cause the LEDs it to start flashing on and off. I’m using NODEMCU flash programmer witht the same settings I used for the Sonoffs. Perhaps those settings should be different. I’m not very familiar with flashing firmware and I’m sure I’m doing something wrong. If anyone has any suggestions, I’d love to hear them.
Hi. Thanks For Your great work. I’m new here and quite confused. Could You pls clarify few questions for me pls.
I have sonoff basic switches, th16 and 4ch and before I proceed flashing Your firmware I’m wondering do I have to add device handler once or to every device?
And what to do with 4ch child handler.
Sorry I did try to find answers in this post but it’s lenghty and I might have missed it.
Thank You
You’ll need a device handler for every type of device.
So if you have 4 Sonoff TH’s and 4 Basic Sonoffs etc , you’ll only need the 2 matching device handlers