Is this a new Sonoff device? Sonoff Mini

4 Likes

So i’ve managed to solder some wires just like you but i can’t flash my Mini. The flasher doesnt connect to it. You just soldered the wires and connected to the FTDI? Nothing else?

Yes, i only soldered the wires to it, and connected those to the FTDIlike shown in the pictures.

You have to press the B button while powering up to get the board in programming mode. Did you do that?

After update the firmaware with tasmota the 3-function still working? Thanks

That is a very nice jig!

Haven’t read it all, but this seems to be the same thing?
https://nl.aliexpress.com/item/33000423688.html

Thats a zigbee one. I have 2 of those and they work really well with Conbee/Phoscon

Hi All,

i have one Sonoff Mini Switch flashed without problems with ESPHome and using the pads and FTDI device. The only trick that is needed when powering up, is to press the button to enter in boot mode.

But now, I’m trying to set it up using ESPHome and I’m struggling to get the GPIO numbers of the relays and external switch.

Anyone has figure out what are the GPIO numbers for the different components in the board?
Status LED, Relay and external switch?

Many thanks!

Regards,

Hi All,

i will reply myself.

The pinout of the Sonoff Mini is the following:
GPIO0 = Button
GPIO4 = External Switch
GPIO12 = Relay

Regards,

5 Likes
1 Like

I can confirm that it doesn’t need cloud setup in DIY mode.

The setup is not very easy, you need to create the sonoffDiy network which the device then attaches to. So you create a hotspot either using a phone, PC or wireless router.

If anyone is interested in using an HA custom component that connected to the stock firmware (no flashing), I have one here https://github.com/mattsaxon/sonoff-lan-mode-homeassistant

2 Likes

DrZzs made a video about this device, showing how to flash it OTA as well.

Full review in italian:

Sonoff Mini DIY | Guida in italiano con schema di collegamento

Home Assistant automatic discovery is not working for this device, right?

I typed in the console "SetOption19 1 " but nothing appears on the system,

I had mine autodiscovered with setoption19 1

Apologies if this was answered - I read through the replies, but didn’t see it.

Has it been confirmed that the external switch (GPIO4-Ground) is separated from mains?
So if you put ESPHome or Tasmota on it you can use the external switch without concern of high voltage?

I believe the answer is yes - it is separate (not on main voltage) but wanted to make sure I didn’t miss something.
Again, if this was already answered I missed it :man_shrugging:.
And if this was implied by some of the discussion, I’m still learning and probably didn’t understand :smile:

Thanks!
DeadEnd

Follow up question - I found a posting about two “extra pads”. They appear to be labeled “KEY_IN” and “LOG”. Following the traces (just learning so I could be wrong) they appear to be connected to pins 14 and 15 - and if I am reading correctly the description correctly, this should be GPIO2 and GPIO0 respectively.

Are these usable - or reserved? I understand both are typically not used because they is used for boot mode selection - so is there a reason they would be broke out on the board? Consider this a learning moment for someone who is still new - thanks!

Last question - in ESPHome for the Sonoff Mini they have a GPIO17 listed as an optional sensor. Reading more I understand this is an Analog to Digital Converter. From the pictures of the board though this is not broken out correct? So you would have to solder directly to the pin on the ESP board?

With that in mind, would you also be able to use GPIO 5, 9, 10, and 14 if you were willing to solder directly to the ESP chip? If I am seeing the traces correctly, all of these are not broken out but could be solder to directly. (GPIO 9 and 10 are available on ESP8285 from what I understand).

Apologies for the wall of questions - I am still learning and wanting to see if I understand this correctly.

Thanks all!
DeadEnd

NETRUAL ? I’ve never ever seen a light switch that has a netrual connection in it.

Domestic switches simply switch live to the bulb. Why do all these switches require netrual? Dimmer switches dont require it, and they have electronics in them.