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

So if I add sonoff 4ch I need to add matching handler and 1 child device handler?
Thank You for quick response :blush:
Do I add child handler like normal handler?

I’ve not got a 4 channel one so not even sure there is a handler lol
Presuming there is than yes just add the child ones the same way some times they don’t need publishing it should say at the top which ones do it can’t remember lol

Ok, I’ll try that. Thank You

1 Like

Hurray it is working… Thanks to you… It is possible to somehow change device type from switch to light? My Google Home seeing Sonoff as switch and could not react to “switch light on” command. I tried to add to definition in Device Handler this: capability “Light” but with no change in Google Home app :frowning:

Th16 works great, but refuses to work like thermostat, auto on/off. Is there any smart app that work? Thank You

No there’s no option like that.
I use WebCore to create automations for it.
Or there’s the standard Smartapps some of them might do it.

1 Like

Ok. Thank You for webcore. It works :blush:

1 Like

I flashed the 10 amp sonoff switch and flashing seems to be done correctly but I dont see any SSID broadcast. I have flashed multiple times not with no luck. I see that some people had this issue but then not clear what they did to fix. any help is appreciated.
thanks.

Reset the WiFi pal.
While it’s powered on hold the button for about 20 seconds three LEDs should flash then power off and back on and it should appear.

Hi Steve.

I tried that before and tried again now but the LED never blinks. Actually
after the flashing I never saw the led light up :frowning:

Anything else to look out for.

Thanks again.
Mohit

Strange you should get some led activity.
Have you double checked your wiring ?
Try unplugging from the mains and connect the 3.3v header again to power it and see if you can connect that way.

I had that when I flashed wrong firmware :hushed:

yes I verified the wiring and flashed again … The flashing seems to happen
just fine but then no activity after that. I tried powering through he 3.3V
from the FTDI and the mains but same result with both. there is no activity
at all on led.

below is the output for flashing.

C:\SonoffFlash\ESPEasy_R120>esptool.exe -vv -cd nodemcu -cb 115200 -cp COM3
-ca 0x00000 -cf Sonoff.ino.generic.bin
setting board to nodemcu
setting baudrate from 115200 to 115200
setting port from COM1 to COM3
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 349296 bytes from Sonoff.ino.generic.bin to flash at 0x00000000
erasing flash
size: 055470 address: 000000
first_sector_index: 0
total_sector_count: 86
head_sector_count: 16
adjusted_sector_count: 70
adjusted_size: 046000
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

I downloaded the firmware from the link top of this email discussion group. does this look the correct version.

https://github.com/erocm123/SmartThingsPublic/raw/master/devicetypes/erocm123/sonoff-wifi-switch.src/Sonoff.ino.generic.bin

Thanks

Hi Kevin.
I am having same problem where sonoff switch seems to be dead after flashing. No WIFI AP and no led activity.

I dont understand what it means to flash with NodeMCU. Some details on this will be helpful.

Below is the command I use to Flash. The has “nodemcu” in it. Is this what you are referring to?

esptool.exe -vv -cd nodemcu -cb 115200 -cp COM3 -ca 0x00000 -cf Sonoff.ino.generic.bin

Thanks.

I think there is link to this application in the first post NodeMCu. Thats how I flash all my sonoffs because after flashing with easyesp app my sonoff behive like yours.

Post by kaiser willi explain how to go about it. Just under the main pic in the first post.

i have this all flashed and ready to go but…it cant find the switch on the smart app??
anyone any ideas?

You’re using the wrong firmware that’s for the basic switch
Yours will be called
Here it is
SonoffTH.I.no.generic.bin
https://github.com/erocm123/SmartThingsPublic/raw/master/devicetypes/erocm123/sonoff-th-wifi-switch.src/SonoffTH.ino.generic.bin
EDIT…
I think I may be getting you confused with someone else further up.
Is yours the basic switch or the 10amp TH model?

mine is just a sonof basic

You need to install the device handler and smartapp and publish them.
Then go to the
SmartThings-
smartapps-
My smartapps-
Install the sonoff-
Do discovery