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

Is that the picture of yours?
You can see what them ones are…
Second from the left is RX,TX,VCc then the far right is ground.

1 Like

This should help.

2

2 Likes

My eye site isn’t that great. I can see it the photo but looking at it I can’t see it.

1 Like

Is that a TH 16 ? I have the 10 and the only thing I can see using a magnifier is the bottom left of this picture showing vcc j3 ground.

Here’s a close up. Reading from top to bottom.
Grnd
Not used
Vcc (power)
Tx
Rx
Not used

1 Like

Thank you Scott !!!

does this work with sonoff 4ch pro?
do I have to solder headers to the device?
thanks

1 Like

HI all, to connect the FTDI adapter to the Sonoff, do you need to solder on a 5 way GPIO pin to the Sonoff, then connect the FTDI to the Sonoff’s new pins via Female to female dupont wires?

Hey guys, just bought 8 POW units which arrived today.
I followed instructions from https://www.youtube.com/watch?v=FxV_zWvxbSE and replaced the firmware.
I have connected the device to my wireless network and into smart things.

Problem i’ve enchanted is every 13 seconds it turns on then 13 seconds later off, and continues over and over.
Have i used an incorrect firmware for the 16A POW version, or do they all share the same firmware?

Has anyone else experienced this before?

Cheers

I uploaded the TH firmware now it seems stable and not on/off every 13 seconds; I still have no energy monitoring capability so suspect there must be a POW firmware somewhere but i can’t find it in this thread?

Mmmm, i managed to find the POW version in https://github.com/erocm123/SmartThingsPublic/tree/master/devicetypes/erocm123/sonoff-pow-wifi-switch.src however after doing the firmware upgrade via the web interface it rebooted but i can’t load the WEB interface anymore though i can ping the device.

I tried doing another flash of the device directly with the POW software which appeared to be successful
in the windows CLI, however on plugging it in it appears to have saved the wifi details etc and just reconnected to my wifi; so the flash didn’t wipe the old settings?

Any help would be appreciated

Sorry for all the spam; incase anyone else needs to know (hoping it helps someone), hold down the button for 15+ seconds and resets wifi, all fixed :slight_smile:

@erocm1231

Please add support for the iTead SI7021 temperature sensor for the TH.

1 Like

I flashed the s20 successfully, but not s20 wont even start/blink when i connect to main. Any solution for this?

`C:\Users\ravi_\Desktop\Smartthings\ESPEasy_R120>esptool.exe -vv -cd nodemcu -cd 115200 -cp COM8 -ca 0x00000 -cf SonoffS20.ino.generic.bin
esptool v0.4.6 - © 2014 Ch. Klippel ck@atelier-klippel.de
setting board to nodemcu
setting board to 115200
error: unknown board: 115200
known boards are: none ck wifio nodemcu
setting port from COM1 to COM8
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat SonoffS20.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
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
read 0, requested 1
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
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
read 0, requested 1
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
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
read 0, requested 1
warning: espcomm_sync failed
error: espcomm_open failed

C:\Users\ravi_\Desktop\Smartthings\ESPEasy_R120>esptool.exe -vv -cd nodemcu -cd 115200 -cp COM8 -ca 0x00000 -cf SonoffS20.ino.generic.bin
esptool v0.4.6 - © 2014 Ch. Klippel ck@atelier-klippel.de
setting board to nodemcu
setting board to 115200
error: unknown board: 115200
known boards are: none ck wifio nodemcu
setting port from COM1 to COM8
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat SonoffS20.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 345760 bytes from SonoffS20.ino.generic.bin to flash at 0x00000000
erasing flash
size: 0546a0 address: 000000
first_sector_index: 0
total_sector_count: 85
head_sector_count: 16
adjusted_sector_count: 69
adjusted_size: 045000
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

Hi,
I’m having the same issues as you. I would like to use CoRE as well to issue a refresh like you are doing, but unsure on what your settings are like. Can you let me know what your if / then settings are?

Thanks!

I have attempted to flash the Sonoff Basic but have encountered an issue.

I flashed via the ESPEasy method as outlined in the first post. I connected my Adaptor to my Board and put the board in pairing mode and the flashing took place successfully based on the screen results. But I don’t ever get a Sonoff wifi broadcast.

I’ve attempt the flashing about 5 times and it flashes ok, but same result. I can confirm my cable were good as I tried loose ones during different tests and as expected the flash did not connect.

One thing I have noticed is that the led no longer flashes on the device (it never flashed since the first initial flash!!!)

Anything else I can try?

Thanks

Update - just found this post Are there one or two types of Sonoff Basic? , I have the updated model, therefore it seems i should flash the alternative method.

Yeah try using NodeMcu the instructions are now pinned to the first post.
And then if still no WiFi after flashing reset the WiFi and it should show then.

is there a way to put it in developer mode if you’ve broken the button?

@Steveuk23 - yep that did the trick. Thank you for confirming. I wasn’t sure if/when that approach was the right one to take and I wasn’t sure if I had thrashed the device by mistake.

Is there any recommended settings to set configure in the admin part?

1 Like

Not really leave most default.
You can select the boot option so what to do after a power cut wether you want the switch to turn straight on or off.

1 Like