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

Hi Eric. I’m having trouble controlling my Sonoff Touch 2 gang after migrating to the new smartthings App. I have try updating the device handlers and I have deleted all the child devices. Change something in the device settings and change it back again. All the child devices are created again, but still I can’t manage to add this devices in Sonoff Connect or control the devices. But they appear in Smartthings as a device. Question: where can I find the latest update? Is it here: https://github.com/erocm123/SmartThingsPublic/tree/master/devicetypes/erocm123 and if this still don’t work for my will it help if I try to re-flash the switches?

Thanks in advance for any help I can get.

Jomeg0

Hello Eric,
I am trying to configure Sonoff Mini R2 device with your version of ESP Easy firmware and looks like it needs some modifications. With Tasmota it works well, but I just wanted to use the same firmware for all my devices.
What is good in Mini R2 that you can do everything over the air, due to DIY mode and DIY utility. You just need to activate ota using rest API and then flash using utility.

MIni has contacts for external button and when you flash with fimware for sonoff basic it’s only possible to use internal switch which is GPIO 0 to toggle device state. Contacts for external switch are GPIO 4.
I have no experience in arduino, but probably changing KEY_PIN1 to 4 should fix the problem
image
But it will disable internal button.
Not sure what EXT_PIN is, may be it’s what we need to keep internal and add external switch.

Tried to compile sketch, but getting errors from dependencies

Can you elaborate on how you access the config menu for the device? I can’t get the auto off to work either.

Edit: ignore this. There was something in the fan device handler that was edited but not published. Publishing the handler fixed this.

I’m having trouble with the Ifan02 child device
I created the Fan device using sonoff connect. It created by default as a Sonoff Wifi Switch. As a sonoff switch I can turn the light off by pressing the power on the device. I then changed the device type to Sonoff IFan02 Wifi Controller. This creates a child device too. After that the main device lets me control the fan speed, but the child device just shows the offline cloud symbol.

1 Like

I have a few Sonoff devices (switch) which I use with Tasmota firmware.
But I don’T like the behaviour of Tasmota firmware (by default keep power off) and I have some performance issues on Wifi 2.4ghz mesh. (Asus AiMesh)

is it possible to change firmware to @erocm1231 's firmware through Tasmota web UI ?

I haven’t been keeping up with other project so I am not sure. I have been able to do that in the past, but I’m not sure on the state right now. Make sure you can flash with the serial cable as a backup option.

1 Like

thanks for your reply.
actually I upgraded from Tasmota 8.1.0 to 9.5.0 and the problems were gone.
I’ll stay with Tasmota for now.

1 Like

Will Sonoff flashed with your firmware need to be flashed to say Tasmota to work with Edge drivers?

1 Like

I think so. I did. It was pretty easy because you can do it OTA. See [OBSOLETE] SmartLife (H801) RGBW LED Strip Wifi Controller & Bulb - #2234 by BartschLabs

1 Like

Yeah, I did just that and hit the 5 free mark with the Tasmota Edge Driver. I have a couple of others flashed with Tasmota as well and added them direct to HA.

I assume you mean Home Assistant. Are you using some sort of integration between SmartThings and Home Assistant?

I have a Sonoff Basic R2 that I flashed several years ago with the old smartlife firmware, and use the DTH and Sonoff (Connect) smart app to get working with SmartThings as a relay to operate my garage door opener.

To ensure that this continues to work after this year, I’d like to convert it to the edge drivers, and the only way I see to do this is to flash Tasmota onto it and run the Tasmota Edge Driver. How do I do this? I tried flashing the latest tasmota.bin using the firmware update function. It rebooted, but nothing changed. The device is still running the old firmware.

Is it a file size limitation? I think I read elsewhere that someone did it by first OTA flashing a lite version of Tasmota, then upgrading to the full Tasmota using the bin.gz file. Therefore, I’m thinking that mayabe the .bin file (without .gz) was too big.

I think you have to flash using a cable and serial FTDI adapter. I tried to flash by uploading the tasmota bin file and didn’t work for me.

I have 6 of these (Sonoff Basic R2) and several of the H-801 RGBW controllers, all flashed with Tasmota from the webpage using a cable. I installed headers when I flashed them previously so it was a quick process and as a bonus, they are much more responsive now. I do have another H-801 to flash, due to it’s location I tried the OTA method, including the tiny version that only allows you to upload another firmware but nothing worked.

I successfully OTA-flashed all dozen or so of my Smartlife-flashed Sonoffs to Tasmota.

IIRC, the trick was starting at Tasmota 8.5.1 and upgrading from there.

Update: I was able to OTA flash to Tasmota just now by first flashing the lite bin file, then the full gz file. Now, I have no idea what to do in the Tasmota configuration to get it to working again as a relay for the garage door opener. I’m lost.

1 Like

The first step is to install the Tasmota Edge driver.

Thanks. I got it set up. I just wish I knew how to get Tasmota to turn the relay off after a half second or one second, so I don’t have to rely exclusively on a SmartThings routine to do that.

I expect the rboy virtual garage door smartapp to not work after SmartThings shuts down the groovy platform on Dec 31st. So, Im now using the virtual garage door device from the vEdge edge driver along with a few routines.

There is a rule engine built into the Tasmota firmware, but I haven’t yet experimented with it. I would think that the rule you’ve described would be pretty short and easy to create and test.

You can also set the relay to momentary.

1 Like