I have not posted the source anywhere. At this time I do not plan to. I did discuss working on a SmartThings Arduino library, but have not had time to complete it. I spend a lot of time troubleshooting people’s basic usage problems.
[OBSOLETE] Sonoff, Sonoff TH, S20, Dual, 4CH, POW, & Touch Device Handler & SmartApp ($5 & $10 Smart Switches)
Hi all, have anyone tried if the existing DH for Touch works for the new T1 range
Hi Eric and folks, I’ve been having this idea for the TH series that it might be possible to use more than one of the waterproof sensors. What I mean is to be able to sense temps from two (or more) places. My original thought was to use a SPDT relay powered by the unit itself to swap between the data lines of two sensors. I know that’s very crude. And it concerns me that I might smoke something by disconnecting the data line.
Then I was chatting with tinkerman (Xose) who has a blog about sonoff and he said that these waterproof sensors have built in unique addresses and how that may be used to make two or more of them visible. I’m really new at all this but this seems interesting, do you have any thoughts?
A lot of us in the US are very upset with these touch wall switches, I suggest you look at the itead posts regarding the issues. IMO, not well thought out for the US market.
go to the bottom for comments, many pages!!!
Steveuk23 / kaiser_will - there is something going on. I have at least 10 of these devices purchased a few months ago - all worked IMMEDIATELY after flashing them. I recently purchased 4, flashed them and NONE of the 4 new ones boot up after flashing. I too tried all the methods listed (holding down, resetting etc). I can re-flash as holding down the button and restarting puts me in flash mode, but no matter how many times I reflash, I get the same results.
Something is not working, and since I KNOW this process worked previously, I am inclined to believe that something has changed with the devices.
Thanks for all your input! I wish I knew more about troubleshooting this type of stuff. All I can really do is look for other peoples recommendations, and try them out.
Bobby_Boucher, that gives me some hope that someone with more skill than me will figure this out! I was about ready to trash them.
Hope so, or looking forward to it as I’ve got a few places I could use the triple and double gangs.
That’s not good
Did you buy them from the same place ?
If so is there any marking on the board maybe a different version
I have purchased all of mine from ITEAD directly. I’m going to compare the devices tonight.
I got mine from banggood. Someone mentioned on the ESPEasy forum that the flash memory is different, and the flash mode has to be DOUT. it’s label on mine is PN25F08B. I tried to use this command, but mine is still not booting after programming.
esptool.exe -vv -cd nodemcu -cb 115200 -cp COM3 -ca 0x00000 -bm dout -cf Sonoff.ino.generic.bin
I got it working. I don’t know exactly why or how, but I read through a lot of the ESPEasy forums and pieced together information.
Flash it using NodeMCU flasher here: https://github.com/nodemcu/nodemcu-flasher
In Config set the first box to the path of the sonoff firmware:
Then under advanced set Baudrate to 115200, Flash Size to 1MByte, Flash speed to 40MHZ and SPI Mode to DOUT.
Then press flash under operation. Wait until its complete. Then disconnect the programmer, disconnect TX/RX, plug the programmer back in with only VCC and Ground, wait for it to boot, reset the wifi by holding the button for 10+ seconds, then connect to the wifi and configure it as usual.
Bravo, Bravo. Just flashed one using your process and its booting like normal. Thank you for figuring this out, made my life a LOT easier.
Awesome! I’m glad that worked for yours. My “educated” guess now is that it will work with any that have the flash memory module labeled PN25F08B
Hmm… how do we know you aren’t just creating your own personal botnet then? Surely you understand the importance of peer review in software security. There are many other firmwares to choose from that are open source. You started with one yourself. What’s your goal here? You do spend a lot of time troubleshooting people’s basic usage problems. You seem so helpful. Why not with the source of the firmware? I don’t understand your decision. You’ve said you are done with development for these in your blog documentation. Let somebody else take it up. You even said you would release the source for the first Sonoff device in this thread but I can’t find the post anymore.
I guess I’ll be moving onto some other firmware and I would recommend that the people on this thread that have installed this firmware do the same. There is no guarantee that these things won’t at some point turn against you or somebody else. Dramatic, right? But totally possible. NTP server to fake a real-time clock to call home at some later point… get a target connection and then loop requests at it. Bam. We just aided and abetted.
This seemed like such a good starting point too.
Have to say I agree with codahq here…does seem a bit odd…I have my own firmware for esp8266 would have liked to have added the smartthings stuff to it…unless the author plans to try and monetise the firmware in the future I can’t imagine any benign reason for not sharing.
after trying and testing some Sonoff Devices I have some issues:
Sonoff 10A, flash ok, WLAN config o.k., access via Webbrowser possible, Intergration in ST success, works fine
Sonoff POW, flash ok, WLAN config o.k., access via Webbrowser possible, Intergration in ST success (need some tries, I dont know why), works fine
Sonoff TH16, flash ok, WLAN config o.k., access via Webbrowser possible, Intergration in ST NOT success, I got an error: Ther is a tempöate error
After some tries, sonoff(Connect) says: successfully intergrated, but under things thers is no TH16. At the device himself the HA Controller IP is 0.0.0.0
And now, roundabout 30min later, the TH16 is integrated!!! I do nothing. And the HA Controller IP is now correct.???
Sonoff Touch, flash ok, WLAN config doesnt work. I see for a moment the SSID, but then never. I try to flah again. No SSID from the Touch.
Any ideas what happend here?
Hi all, and thanks to Erocm1231 and all for the fantastic work.
I have all my house lights automated for pennies thanks to this switches…
I live in Spain, and here all houses have roller shutters, I am trying to include them in the smartthings hub, but none of the standard solutions (FIBARO Roller Shutter 2) convinces me.
I was thinking how easy it would be to use a Sonoff Dual to control it.
It would only be, setting up an auto-off time for each switch (just for security, as the motors have endpoints) and a rule that will only allow one relay to be closed, let me explain:
You push down, and while the shutter is going down, you push up. Then the down relay will open and the up will close…
It might be just a matter of having a “roller shutter mode” tick box in the config menu…
What do you thing of this Erocm1231? Do you think it is easy to implement?
I would open a world of possibilities…
Sorry all to hijack the post…
I bought a th16 ,try to flash with espeasy and it did not want to flash ,i got this error: stat SonoffTH.ino.generic failed, so i have flash it with nodemcu, i can now acces to a web browser and control it. When i try to add it to smartthing ,sonoff connect see it ,i hit next and got a blank page,hit done and got an error(error-bad state.Unable to complete page configuration)
Do you know what im doing wrong?
I Have try to reflash and samething
@Sylvain Thats the same state by me with the TH16.
I hope this is the solution: I upload the deviceHandler for the TH16 again. After the first upload and missed integration the devicehandler fot the TH16 was not in the list, don’t know why. After upload again the integration works.(dont forget to publish to yourself)
Hope this helps.