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

Hi,

I am thinking to get the Sonoff POW for testing
Does anyone could share the Sonoff POW report example?

thanks

Rookie mistake
 I didn’t catch the part about the FTDI adapter, now I have to wait two more days
 argh :rage:

The main part didn’t take long to arrive
 approx 8 days.

Yay! Looking forward.

I uploaded a firmware today that should have the external switch working for either the momentary or toggle configuration. Try it out and let me know. I tested it pretty thouroughly and I didn’t have any problems.

I made a tutorial aiming to help the general public who doesn’t have a lot of experience in this field. (from experience) I hope this helps some people make the plunge or lessen the intimidation factor. @erocm1231

@jakclark if only I uploaded this a few days sooner

@eibyer hopefully this will help :hugs:

7 Likes

Eric, thanks again and again. It works like a charm.

does it support wink hub 2?

No.this is a custom device handler for ST. You can’t make custom device handlers for wink. Also, these use http to communicate. Wink can’t do that

1 Like

Hi, on your video when you open the ESPeasy_R120 file there is a bin file for arduino that is not present when downloading from Eric Github.
Where is that bin file from?
I have tried to flash just with file downloaded from Eric github and your instructions and it always says failed.
Thanks

What are you trying to flash onto? A Sonoff? (standard one?)

The files you see in the folder of the video are the standard ESPEasy files which are included when downloading ESPTool. They dont contain any hardware relevant to this but would include the basic WiFi router tools for creations of an access point and then being able to update it via a webpage.

Hi thank you for your reply
yes i am trying to flash a standard sonoff wifi switch
always get this message
Using a windows 10 computer
with one this

I have tried several times to put the switch in flashing mode
are rx and tx conexion crossing?
I have tried noth ways anyway and always same resut.

That error implies you are not able to talk to the Sonoff at all. I think there are a few things to check in this situation (these are the main problem areas):

  1. You have got the correct COM port and you can see the COM port in device manager with associated number.
  2. The cable is dodgy between FTDI and Sonoff - can apply to any of the pins.
  3. You are not pressing the button when booting, hence it doesnt enter flash mode
  4. You have RX and TX the wrong way around. Sometimes they are labelled badly on the device so first try RX-RX and TX-TX and then try RX-TX and TX-RX.

The only way to tell if you think you have checked the above is using the LED in my experience - you should see the LED respond differently if you turn on while pressing the switch compared to not pressing the switch. Once the device has booted, if you press the switch and the LED changes then you have also missed the flash mode. Hope that helps as a first check.

1 Like

Thank you for your anwser. will check the connections again.
When i try the flash mode on the sonoff the led doesn’t turn on at all.
is that normal?

yes, by default out of the box, i believe the led blinks every second or so. When it’s put into flash mode, it shouldn’t blink at all.

Fyi for those of you who have recently bought a high current device, Itead are recalling them due to not dealing with high current very well.

https://www.itead.cc/blog/sonoff-th16-and-pow-recall-notice

@erocm1231 all your help and work has been greatly appreciated. Sonoff works with my ST and toggle switch works too👍

Something I noticed however


Has anyone else experianced an issue whilst using the 10amp switch on a lighting circuit?

I’m in the UK ( using 240vac) and I used a small project Box to contain my switch and secure the wiring. I wired my switch into my lounge lights and placed it in a plasterboard wall. I have 2 toggle switches wired in series wired to GPIO 14 and ground.

Here’s the weird bit- when I turn off other lights off which share the same breaker ( kitchen or wc) it turns off the lights connected to my switch


Any ideas? I’m thinking a slight current surge on the line

The sonoff and both switches work fine in all senses until I turn off a different light ( not connected to a sonoff)

Also has anyone in the UK using these in their walls or Cellings?

Many thanks

That connection goes straight into a GPIO pin of the chip with no signal conditioning at all, so it is very possible that the long open wire will get enough voltage induced to cause the pin to trigger when something else opens the circuit. If you are powering a reactive load then those can put out quite a nasty spike when turning off.

HI Eric
I have update the firmware of my both sonoff ,when i try to update the device handler i got this error

startup failed:
script14907528655111381319010.groovy: 447: expecting ‘’’, found ‘’ @ line 447, column 41.
label=“Momentary” value=“0” />
^

1 error

That is very strange. Do you notice any other effects - e.g. Does the Sonoff drop off the WiFi network and restart? If you set the Sonoff to return back to on when turning on you should see the light turn off and then back on once it has restarted. If this is the case then a surge is possible and you should probably add a capacitor onto the Sonoff to solve it.

However
 I would be surprised if this is the case and would expect there is something else going on in the wiring
 Is there any chance the wiring is connected in any way more than just sharing a live and neutral (+earth) from the breaker? If the light never turns back on then it seems you have found a switched live from another circuit instead of the true live


As mentioned by @richms it could be a long circuit getting voltage induced in it, though would be a bit strange since it is working as a false grounding (rather than false live). First step to try is disconnecting the switch and seeing if it still turns off. If that solves the problem then perhaps try adding a 5k/10k resistor between pin GPIO14 and 3V3 to see if the increased pullup helps prevent false grounding.