SmartThings Community

[RELEASE] Sonoff, Sonoff TH, S20, Dual, 4CH, POW, & Touch Device Handler & SmartApp ($5 & $10 Smart Switches)

dth_lighting

(Tuicemen) #350

Just flashed a SV (low voltage) the firmware works for it for those wondering.
I however don’t have a SmartThings hub so the app will not detect it.
I can control on/off from its web page and I’ve added it to the BWS Systems HA-Bridge which gives me Alexa control.


(michael w) #351

I flashed the sonoff , sonoffTH and the sonoff s20 all works perfectly with my smart hub thanks to Eric .I was wondering if there are any plans for other devices to be hacked such as the sonoff dual and the sonoff 4 channel device as these would be ever so useful for many application .If not then I’ll have to look for other ways to flash these devices say through arduino and a bridge or anything link up possibly or am I just missing something


(michael w) #352

Thanks for the response ?


(Cmin Tang) #353

Hi, Does anyone working flashing with Sonoff Touch before?
Any photos to share?

Just wonder how to link the FTDI module to the switch because i do have any physical Sonoff Touch on hand.
Cheers


(Cmin Tang) #354

Hi, do you manage to get the sonoff pow working?


(Eric M) #355

I do plan on doing the dual channel Sonoff and the Sonoff POW. I have not considered adding the 4-channel version yet.

@tangcmin The headers for the Sonoff Touch are clearly marked inside. The only exception is GPIO0 which is needed to get it into flash mode. If you ground GPIO0 as shown in the below picture and then power the board via the FTDI adapters 3.3v, you will be able to flash the touch.


#356

Hi

This is awesome work :slight_smile:

I already have 3 Sonoff SV , and wonder if it`s possible to flash those and use them like the other switch ?
I dont need or want a 220v switch.

I wonder about buying the flash USB, but need to know if it`s possible :sunglasses:

I have 4 speaker in my house I would like to control using a low power relay, and the sonoff relay is perfect.
And if it would be possible to use this into ST it would be even more awesome :smiley:

I wonder if nobody soon can make a relay board with 4 or more relay output that can be integrated with ST and work on 12v, if not, I would love to hear some option how to control some 5-12v relay from ST .

Cheers


(Eric M) #357

I believe the Sonoff SV works with the default Sonoff firmware and handler, but I can’t confirm. Has anyone tried flashing one?


#358

I will try to FLASH my Sonoff SV when I receive my flasher USB tool :slight_smile:

I also have a Sonof Dual switch, but I think somebody did mention it would not work in ST ?

Cheers, making this 5v relay switch working in ST would be AWESOME for future smaller projects that dont involve 220v power.


( Cosmo) #359

Anyone have a sonoff touch that had this issue:
I flashed the touch. flash completed. disconnected it from ftdi.
took it to switch location. installed it. no brain surgery.
Nin-Neutral
LIn-Hot
LOut-load

Sonoff doesnt appear to have ANY power.
Tested on board terminal. 120v present on board LIn terminal
Tried it with an electrical cord to an outlet.
Tested again, 120v present on board contact.
Sonoff does absolutely nothing. Not a single light, doesn’t broadcast a wifi hotspot.

Am I missing something? Or did I get a bum switch?


(Jason) #360

Hi Eric, I’m sorry to keep asking but any chance you could give some time to getting the DS18B20 sensor working with the sonoff TH?

I know you’re busy because I follow some of your other threads as well, but I’m sure the temp sensor would make the sonoff TH perfect for many applications.


(Gary F) #361

I had exactly the same problem with my touch.
It took me ages to get it working.
It appears to flash ok but it doesn’t seem to stay.
If i flashed with espeasy firmware then did the upgrade via web it worked till i rebooted the switch then it died.
In the end i had to flash the firmware with NODEMCUFlasher. (https://github.com/nodemcu/nodemcu-flasher)
It’s now working fine.
My Touch is a eu version, i’m not sure if is slightly differnet from eric’s us version.


( Cosmo) #362

Gary, The flash was successful via NODEMCU flasher, just as the CMD prompt method.
Yet the switch is just dead. No hotspot. No manual touch. Lo leds light up. nothing.
I’m guessing I got a bum switch


(Gary F) #363

The settings i used in NODEMCU were, 115200 baud, 1Mbyte Flash, 40Mhz Flash speed and SPI Mode DOUT. I thought my switch was dead unitl i flashed it with espeasy firmware then did the upgrade and the switch started working it just wouldn’t stay working.


(Vineet) #364

I got my sonoffs delivered, and I’m trying to flash, it is flashing the firmware successfully (I think), but I do not see any new SSID, tried 3 of them, same thing. After flashing the button does not turn on the load, nor do I see any LED response on the sonoff. Below is the output of the flash (even flashed thrice):

D:\NodeMCU_ESP8266\Sonoff\ESPEasy flasher>esptool.exe -vv -cd nodemcu -cb 115200 -cp COM6 -ca 0x00000 -cf Sonoff.ino.generic.bin
esptool v0.4.6 - © 2014 Ch. Klippel ck@atelier-klippel.de
setting board to nodemcu
setting baudrate from 115200 to 115200
setting port from COM1 to COM6
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat Sonoff.ino.generic.bin success
setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
read 0, requested 1
trying to connect
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_send_command: receiving 2 bytes of data
espcomm_open
Uploading 337760 bytes from Sonoff.ino.generic.bin to flash at 0x00000000
erasing flash
size: 052760 address: 000000
first_sector_index: 0
total_sector_count: 83
head_sector_count: 16
adjusted_sector_count: 67
adjusted_size: 043000
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
setting serial port timeouts to 10000 ms
setting serial port timeouts to 1000 ms
espcomm_send_command: receiving 2 bytes of data
writing flash

starting app without reboot
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
espcomm_send_command: receiving 2 bytes of data
closing bootloader
flush start
setting serial port timeouts to 1 ms
setting serial port timeouts to 1000 ms
flush complete

EDIT: I should see SSID reboot after flashing, power the sonoff using the mains input or either using the 3.3v + GND, tried both power methods, still no go. I’m pulling my hair with this.


(Eric M) #365

It should show the SSID on 3.3v or on wall power. I will test the posted binary tonight to make sure I didn’t upload something incorrectly.


(Derek Scritchfield) #366

I may have possible been doing the same thing yesterday… double check your port… I thought I flashed the sonoff 10 times until I realized I had a nodemcu plugged in on another port and kept relaxing it instead of the sonoff


( Cosmo) #367

@vbhoj74 thats exactly what’s happening to me

@derek_scritchfield mine was correct. and if it isnt hooked up right, it doesnt continue, it keeps retrying the connection.


(Vineet) #369

Thanks, I tried for 3 hrs, it seems simple for others, should not be so impossible for me to do. :slight_smile:

I’ve nothing else connected to the PC at the time.

EDIT: Another clue, I tried the flash.cmd to flash the generic firmware in the zip to the link given by you, flashed successfully, but still no SSID.

EDIT: Downloaded R100 from below link and using the instructions there flashed the same, still no go.
https://smartlifeautomated.wordpress.com/2016/04/21/sonoff-wifi-switch-smartthings/

I guess, either I’m doing something wrong, or the new sonoff has changed something.

EDIT: Flashed the generic one from below, still no SSID.
http://www.letscontrolit.com/downloads/ESPEasy_R120.zip


(Peter M H) #370

Same issue here with SONOFF TH10, runs through flash with no problems but that’s it, no AP created, no LED indications. If button press both led come up and relay flips.

[UPDATED] - erocm123 - Your ESPEasy_R100 took ok and broadcasted SSID

[Updated AGAIN] – Flashed after getting R100 to take it then took SonoffTH.ino.generic.bin just nulls for temp / humity