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

Ok, that looks like the wrong firmware. The good news is that I believe you can go to http://ip_address/update , choose my firmware “Sonoff.ino.generic.bin” and hit the update button.

I think I may have found a fix for the iOS device renaming issue. If you get a chance, check it out.

Ah, thank you Eric, a simple answer! I’ve now uploaded the correct firmware. Do you have the link for the firmware download as I used the link in your first post originally and it would seem it points to the incorrect firmware.

Thank you for this project and helping me out with it. Great work!

Edit: No hang on, I did download the correct firmware and put it in the folder where I unpacked the firmware flashing tool. But by using the flashing tool it seems to choose the wrong firmware. I think my lack of understanding at using these tools is probably to blame here!

Eric, thanks for trying. Tested but it didn’t help, can change it on my android but not on my iPhone.

Glad you got it working. We need someone with extra time to put together a really nice “how-to” with an outline, pictures, etc. (as was mentioned above). :wink:

Ha ha ok Eric it’s a deal. I have this first experimental Sonoff working with ST and therefore it is also voice controlled via my Amazon Echo Dot. I’m going to order some more so I’ll have a go at doing a how to. It’ll be a while but I’ll post the first draft here for review and then take suggestions for amendments!

Am having some issues with flashing the Sonoff am looking for any guidance please.

Have previously flashed H801’s all ok.

So have purchased the 10a version, shown below. Image varies to others i have seen on here so is this a compatible version?

When connected with jump cables and plugging in usb cable as per instructions, the green led on the Sonoff starts flashing slowly, is this correct or should it be solid?

SET AT 3.3V) connected to the switch (square pin = VCC, then TX, RX, GROUND - that order), plug the FTDI adapter into the USB port of your computer while holding down the button on the switch. This puts it into programming mode.

When typing in the flashing command am getting these issues constantly

Any help or advice will be greatly appreciated.

That error implies the flash utility isn’t seeing the actual flash file. Rename it to flash.bin and change the command line to match, make sure it’s in the same directory, and as a precaution launch the command window as administrator.

Eric,
Do you have any plans to develop the code for the Sonoff SV or the motor/pump smart switch?
Possibly even the Sonoff SC sensor?

The SV would be useful in a lot of applications, but none that’d I’d point out upfront.

The motor pump switch might be the ultimate smart blind controller. You have a controller with capability of driving motors or servos that would require very little adaptation of code of the Sonoff switches likely combined with a dimmer profile for multi position setting. Or have a few preset positions. 0, 25, 50, 75, 100% 0 and 100 being closed.
It would be a drop in solution that the user could use for blinds, or full curtains as this can deal with voltage loads for motors.

The SC sensor platform would be the best multi sensor with wide capabilities for a very low cost of acuisition. It would be the perfect compliment for the motor control used with a smart blind handler where lux rating or temperature reporting to ST could be used to trigger blinds.
As well, the mic could be a trigger much coded to function as an occupancy sensor, and the dust sensor can be used as a trigger for HVAC and fan operation.

The motor module and SC have the promise of being the go to smart blind system.

Thoughts?

Good internal on the SC

2 Likes

Was just looking at the SC myself, interesting, depending on how accurate it is.

These ‘hacks’ look great for the SC! Especially that LED ring!

1 Like

Hi, I have 1 original Sonoff that has been in and working daily controlling power to my subwoofer via harmony hub to smartthings hub and 2 Sonoff copies made from esp8266 modules and power supplies that I had laying around. All have been in and working fine for about 9 months. I have just received a TH10 with temp probe I have flashed it and installed to smartthings but I can not get a temp reading, even from the web browser the temp just shows NAN. The probe test ok with a multimeter (same as a DS18B20) and I have tried several DS18B20’s soldered directly to the Sonoff board, and the socket pin on the board is OK (0 ohms) to GPIO14 on the esp chip. +ve and Gnd are also Ok to the probe as well as the 2 10k pull up resistors (in parallel). I have run out of ideas.

Did you plug it in while powered? I did that and mine didnt work and I think I killed it, the other one that I didnt do that to is working fine. Not keen on messing about swapping incase I kill more stuff so am waiting on more to arrive.

Same problem with nan temperature readings. I could not find a solution and gave up…

Hello guys In the forum it tells you that this sensor(DS18B20) doesn’t work with the flashed firmware on the sonoff TH, but the non waterproof temp and hue sensor (AM2301) does as I had the same problem with my sensor

I have read through this forum many times and had not seen this. Thanks for bringing it to my attention. Unfortunately I want to drop the sensor in my swimming pool so that doesn’t help. I have had a DS18B20 working on an esp8266 (but using UDP, not connected to smartthings) so it can’t be too difficult. If ERIC sees this, would it be possible to include code for the DS18B20.

Ok, I found it now and it appears to be on Eric’s to do list. Smartthings home automation would be a lot slower and more expensive without Eric and Sonoff !

2 Likes

I wouldnt put something in a pool connected to a power supply like on the sonoffs just in case. Not sure I really trust them to maintain isolation from the mains side.

I actually have an SC but have not had a chance to play around with it yet. Looks like it will require a lot of work, but I would love to get it going. Especially with @Benji’s Pixel hack shown below.

The SV would be a lot easier to tackle. I will order one to check out. I have been wanting a simple blinds solution. One thing regarding this is how would power be delivered? I know that the esp8266 has a sleep mode for battery efficiency, but I believe that is more for devices like contact or motion sensors that can be woken up by an external trigger. This device, if battery powered, would always have to be on to receive commands.

@Flash the DS18B20 is on my to-do list and is not currently supported.

2 Likes

I mentioned the SV as it would have a lot of potential uses for different DIY’d integrations.

The one I was mentioning for smart blinds was the Motor/Pump smart switch.
It has 2 relays, one to rotate a motor clockwise, one to rotate counter clockwise. As you said though, the power solution would be the end user must figure out, but either way a handler for it that the user sets seconds of operation for ), 25, 50, 75, 100% (for 180 degrees of smart blind rotation. All the user has to do is run a test mode to see the time length to rotate the motor and stop and input that in their settings. It might be pretty cool if the module could work out.