[RELEASE] Sonoff (Connect)

You can try my fork of the Tasmota firmware. It has support for the bridge, but the Hubitat bridge driver needs a lot of work.

1 Like

hi, just flashed my switch with the firmware and i can't access it anymore, is there anyway to reset it or is it bricked?

Search for the new WIFI ssid?

What method did you use to flash the new firmware? If you erased the whole flash, then you have to go back to step 1 in the setup and search for the device and add it to your wifi again. Remember, all that is stored in flash too.

The real indicator if it is bricked or not is the on-board button. If you can turn it on or off with the button then it isn't bricked. Also, it is possible that it did not flash correctly. Some models of sonoff respond well to one mehod of flashing and others do not. For example, the ones that I have had to be flashed using the ESP8266Flasher tool. Other methods would not work at all.

i flashed using the tasmota web gui ... onboard button has no reaction, weird though after the switch is plugged in it turns on after about 20 seconds on it's own

Which firmware were you trying to flash? Eric's custom firmware to use the Sonoff Connect app or the Tasmota firmware to use Eric's Tasmota Driver. If the latter, you might want to post over on that thread as that will be more likely to keep things straight.

It said it installed correctly but did come back after reboot

Yes, I ran into the same thing too. I had to use the ESP8266 flasher tool to get it to install correctly.

You will probably need to flash through the UART headers. These things are nearly impossible to brick, but depending on how the previous firmware was compiled and flashed, there may be some OTA issues.

I just uploaded the firmware again with it compiled using the same settings as Tasmota which should make it more compatible in the future.

I'm not sure where to post this on the various sonoff / tuya threads, but I'm looking to get some sockets/outlets in Australia, where sockets/outlets are sadly lacking in number.

I can get some that are easily flashed with this: GitHub - ct-Open-Source/tuya-convert: A collection of scripts to flash Tuya IoT devices to alternative firmwares
Can these be added to Hubitat?

Thank you for this screenshot of how you RM to periodically refresh. I have a dozen teckin SP10’s converted to sonoff-basic and have played around a couple times with getting them to refresh - one guy has it built into his sonoff driver and it didn't go well with me - and this was just what I was looking for.

I have seen post with people saying to use RM and I was looking for a periodic trigger and came up empty. Of course this make sense - always true condition and time it in the loop itself. I guess I have trouble thinking outside the box.

Now that I see you are doing further dev with a Hubitat specific FW for the ESP, I guess I will need to start playing again. Well I need to read more first. :wink:

Steve

I was looking to buy a few SONOFF iFan02 and found they are discontinued. They have been replaced with the iFan03 SONOFF ifan03 - Wireless Wi-Fi Smart Ceiling Fan & Light Controller
Does anyone know if the firmware is the same?

They also have the SONOFF Mini SONOFF MINI - Two way DIY Smart Switch to control lights remotely and manually that looks very similar to the Aeotec nano but on wifi.

Trying to flash my sonoff 4ch pro. it never connects. using nodemcu DOUT and every baud. I’m using a mac book pro 2017 and one of these guys https://www.amazon.com/JANSANE-PL2303TA-Serial-Console-Raspberry/dp/B07D9R5JFK/ref=sr_1_37?crid=19XJZZWZKZJA6&keywords=usb+serial+adapter&qid=1562447387&s=gateway&sprefix=usb+ser%2Caps%2C220&sr=8-37

grounding pin while powering up. no lights come on.

does anyone have words of wisdom?

I don't understand what you mean by this. Grounding which pin? Are you connecting TX to RX and RX to TX? They have to cross as one is the receiver and one is the sender...the receiver on one has to talk to the transmitter on the other.Are you applying 3.3v power or 5v power to the VCC pin?

Well. I think I figured out out. The usb2serial I bought is 5v on the power pin not 3.3. So I probably burned out the chip from what I read. Amazon will have me one Tuesday.

I ment Grounding the pin to put into firmware update mode. That no lights turn on.

Sounds like I can just use rx tx and gnd and power up with normal power. Not using the power supplied by the usb2serial.

NO!!! Do not use AC power while connect to your USB2serial adapter. That will totally fry your computer!!!

1 Like

Do you know of a 3.3 volt usb2serial that is known to work well? Was going to use the DC power input. But if not good idea I'll buy the right usb2serial

I thought you meant you were going to connect the AC. PHEW!!!
I was going to type this all out but I actually found the write-up on this on the Tasmota forum. They have it all summarized with pictures much better than I ever could.

If you are going to connect to VCC, then I would recommend getting a 5 to 3.3v buck converter like this:

I've used this exact one and they perform well and you don't have to do much other than connect header wires to them. No soldering or adjustment required. But for the 4ch pro, you should be fine powering from DC. Just have to make sure the GPIO0 is grounded when you apply power, however you do it.

OK I made a lot of progress last night and I'm stumped now.

last night i figured out not to set a password, line 360 throws an error if you attempt to use passwords.

Hubitat now receives updates of change and status updates from the sonoff 4ch, the parent device is always needs_update=yes, pressing on/off in a child produces a log entry but nothing in logs of sonoff.

I notice that the log of reports from sonoff refer to the devices as POWER1-POWER4 do i need to configure something on hubitat side?

Which driver are you trying to use? You will need to have a new driver as I don't think one already exists for the 4 channel.