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

Great! If you can resolve the 4CH on the interference, do share the solution. I tried with both capacitors and resistors on the 4CH but couldn’t get it to work.

I flashed (with Sonoff 4ch) it using esp and nodemcu, both baudrate 78880, entering flash mode with press on Touch button and hitting reset immediately.

I could control 4 individual channels ok via web, but smarthings integration seem broken since I cannot see the child devices even though I’ve installed the most current DH and child devices.

Did a lot of reading and others are able to see the 4 child devices using the 4ch firmware but no go for me. Hope hope erocm123 sees this.

Hope it helps a little.

Thanks.

Hi, I have a US T1 US and it flashes (sonoff 4ch) good with Nodemcu and esp but couldn’t get smarthings to see the child devices, main device is there but no childs, the 3 touch controls ok via web and could turn on and off in harmony via smarthings but not individually. can you share how you’re able to see your child devices?.

Thanks.
dk

digiblue, what firmware did you use to flash the s31 for Smarthings?

thanks.

I use Tasmota since it works well and has MQTT ready to go.

UPDATE: Fixed: (Sonoff T1 US 2 and 3 gang)
Looks like i have 2 edit in “my Devices” and assign and mod the type to be “Sonoff 4ch wifi switch”. it doesn’t do it automatically.

now have 4 devices (1 parent, 4 Childs, deleted the last unused child) and can now control each relay individually as well as master control

Also, odd that flashing the 2 and 3 requires 2 different procedure (though no more soldering, just use your dexterity talent). (esp or nodemcu at 74880 is fine)
2 port - let it boot, hold touch button 1 (left most, then press momentary switch briefly and release both, wifi indicator will stop blinking)
3 port - let it boot, hold touch button 3 (Right most, then press momentary switch briefly and release both, wifi indicator will stop blinking)

hope this helps.

Yes! Please do! Have you had any success adding the “Toggle/Momentary” option? That would work great for garage/gate openers… Thanks loads great work!

Hi,
how to flash sonoff T1 US 2 or 3 gang? please share device handle.

Thanks to erocm123, use his 4ch dh and child dh

2 Likes

Experimented with S31, looks like the basic Sonoff bin works but no pow monitoring. Its a pain to flash, since the pads don’t have holes (I used tape and get to practice my dexterity abilities), flashes the same way as the basic too. Looks like a more finished product than the s20 and should be better when the pow mon works.

1 Like

I’ve already modified Sonoff Basic with wired magnetic sensor connected to GPIO14.
I would like to be able to use it as momentary switch with door open/close status, something similar like Mimolite

Device Handler for Mimolite is here: https://github.com/fortrezz/smartthings
Documentation: http://www.homecontrols.com/homecontrols/products/pdfs/FZ-FortrezZ/FZMIMO2US-Guide-with-SmartThings.pdf

sonoff%20DH

or even to controll two garage doors

is there any firmware of DeviceHandler or SmartApp available with that feature ?

1 Like

What do you use? Sonoff4CH.ino.generic.bin or SonoffTouch.ino.generic.bin

on top of this page, there is a link provided by erocm1231. use the dh, smartapp and child handler.

2017_05_10 Update: Sonoff Dual - Firmware 769 and device handler 553 and child device handler 333. Flashing info here. Sonoff 4CH - Firmware 300 and device handler 236 and child device handler 333. delete unused relay in the smartapp, i flashed 8 without soldering and they work well.

use esptool (change your com port)

esptool.exe -vv -cd nodemcu -cb 74880 -cp COM4 -ca 0x00000 -cf Sonoff4CH.ino.generic.bin

or use nodemcu (instructions) are on top of this page also, change the 74480 speed.

hope it helps

1 Like

Hello, now for some month i play with the TH, TO, Basic & Dual. When my WLAN is off, the TO,TH & Basic try to connect to another WLAN (ist it open, they connect to them :frowning_face:). Only Power/off-on let they connect to the configured WLAN. Is there a workaround for this issue? Or is it an old FW. Where can i check the versions?
THX
MikeXXl

Hi, any chance that you could do a device handler for iFan02? https://www.itead.cc/sonoff-ifan02-wifi-smart-ceiling-fan-with-light.html

I’m pretty sure that has been in there for a while. :wink:

Hi, I’ve been trying to flash a Sonoff TH10 with the firmware in the original post (SonoffTH). The flashing appears to be successful but the Sonoff then becomes unresponsive. No flashing from the lights and no wifi hotspot appears.

I can reflash the original firmware and it seems to become responsive again, other firmware for other smart integrations also appear to flash successfully.

Any idea what’s going wrong? I’ve attempted the flash 10-20 times now. Exact same response each time.

Firstly thank you all for being such a supporting community. I have successfully accomplished all of my sonoff automation tasks and it’s been stable.
Now you all know there are always more projects that come up randomly…
So I need some help with a certain project involving a skylight window with a idle, up and down wall switch.
This is similar to shutter control but it uses mains power and not 12/24v.
After having some thoughts I think I can accomplish this using a sonoff dual with auto switch off by adjusting the timing in the configuration.
However there is one big issue. I don’t want the state of both relays to be switched on at the same time.
Both can be idle and if one is on the other must always remain off and visa versa.
This should be something like an interlocking mode which should make it impossible to have both buttons “on” in the same time
Any thoughts or suggestions around this.

Try it with a virtual switch. In Smarthings make a virtual switch with the different states of the sonoff. When virt.Switch on, Sonoff sw1 goes on and sonoffsw2 off, if virt.Switch off, Sonoff vise versa

Greeting
MikeXXL

Hello, flashed the sonoff switches with the aktual FW, sometimes the sonoff give no response, but they are via IP-Adress reachable and i can controll them. Any Ideas? Befor i update the FW, the TH works fine, after update, i have the issues.

THX
MikeXXL