SONOFF MINI

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
nietbelangrijk
Normal user
Posts: 6
Joined: 23 Sep 2017, 14:07

SONOFF MINI

#1 Post by nietbelangrijk » 30 Jun 2019, 11:19

Got this in the mail:
SONOFF MINI IS a mini and compact DIY smart switch used for different kinds of switch boxes, even the smallest EU standard switch box. Convenient to automate your home appliances with eWeLink app through your smartphone or tablet or your voice command. Support to connect an external rocker light switch unable to automatically spring back for easily managing connected devices in your home, both on your phone or directly from the wall.

It supports the DIY mode (designed for developers) which allows users to integrate MINI into worldwide third-party open source smart home control system to achieve LAN control without cloud service, such as Home Assistant, openHAB, ioBroker .etc.
For sale at: https://www.itead.cc/sonoff-mini.html

I wonder how to flash this with EspEasy 2.0x, anybody any experience already?

User avatar
ThomasB
Normal user
Posts: 406
Joined: 17 Jun 2018, 20:41
Location: USA

Re: SONOFF MINI

#2 Post by ThomasB » 01 Jul 2019, 02:28

No experience with it, but flashing ESPEasy appears to be possible. It has a ESP8265 (1MB) and four solder pads for the serial interface. See PCB photos here:
https://fccid.io/2APN5-MINI/Internal-Ph ... os-4291787

The bad news is that the photos show that most GPIO pins don't have convenient solder pads. So plan on precise soldering to tiny naked ESP8265 pins.

And be very careful: It does not look like AC mains is electrically isolated from the low voltage DC circuitry. Until this is confirmed, treat all external connections with high voltage safety in mind.

- Thomas

kimot
Normal user
Posts: 165
Joined: 12 Oct 2017, 20:46

Re: SONOFF MINI

#3 Post by kimot » 02 Jul 2019, 20:46

Look for Shelly1 or Shelly2 ( Shelly2.5 ).
The same function, the same size, but TX, RX and others on connestors - no soldering.
And ESP with 4M memory on board.

http://shelly.cloud

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: SONOFF MINI

#4 Post by LisaM » 17 Aug 2019, 22:47

The Sonoff Mini (and R3) also has an REST API, using the REST API you can also replace the firmware using OTA!
https://github.com/itead/Sonoff_Devices ... %20Doc.pdf

vobo70
Normal user
Posts: 11
Joined: 10 Oct 2016, 09:53

Re: SONOFF MINI

#5 Post by vobo70 » 22 Sep 2019, 13:01

did anyone successfully flashed ESPEasy to sonoff mini diy?
I want just Home Assistant to control light switches at home.
So maybe to use different firmware? (eg. Tasmota)

Shardan
Normal user
Posts: 1120
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: SONOFF MINI

#6 Post by Shardan » 22 Sep 2019, 13:15

ThomasB wrote:
01 Jul 2019, 02:28
No experience with it, but flashing ESPEasy appears to be possible. It has a ESP8265 (1MB) and four solder pads for the serial interface. See PCB photos here:
https://fccid.io/2APN5-MINI/Internal-Ph ... os-4291787

The bad news is that the photos show that most GPIO pins don't have convenient solder pads. So plan on precise soldering to tiny naked ESP8265 pins.

And be very careful: It does not look like AC mains is electrically isolated from the low voltage DC circuitry. Until this is confirmed, treat all external connections with high voltage safety in mind.

- Thomas
Most likely the ESP is connected to mains voltage... following the given pictures
it is a widespread capacitor-resistor- bridge rectifier circuit without transformer.

The notes on the website says:
1.The antenna has strong electricity inside, do not break the wire jacket.
so this might be another hint to no separation between ESP and mains.

This says clearly:
Use a 3,3V Power Supply for flashing!
Never ever connect the circuit to mains while connected to your PC.
Regards
Shardan

vobo70
Normal user
Posts: 11
Joined: 10 Oct 2016, 09:53

Re: SONOFF MINI

#7 Post by vobo70 » 23 Sep 2019, 07:44

but which firmware file use to flash sonoff mini?
ESP_Easy_mega-20190903_minimal_core_242_ESP8285_1M_OTA.bin
ESP_Easy_mega-20190903_hard_core_252_other_POW_ESP8285_1M.bin
ESP_Easy_mega-20190903_hard_other_POW_ESP8285_1M.bin

TD-er
Core team member
Posts: 1636
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SONOFF MINI

#8 Post by TD-er » 23 Sep 2019, 11:03

I think the "minimal" build is the most practical, since it has the option for OTA updates (in 2 steps)
Just make sure you have the ESP8266/8285 right.

User avatar
M*I*B
Normal user
Posts: 78
Joined: 22 Jan 2018, 15:47
Location: Germany
Contact:

Re: SONOFF MINI

#9 Post by M*I*B » 02 Oct 2019, 14:57

... may can I steal this thread a moment? :roll:

I find this thread due searching for information if possible to flash the MINI... The Q is answered now. But in this thread I read also about the SHELLY (kimot talk about it) and I have take a look at it...
The SHELLY1 looks very nice and I believe that the SHELLY1 is a little bit smaller as the MINI... I'm right?

So what you all can say about the SHELLY1 with ESPEasy? Work that well like the SONOFF? Where are the diffences? What do you mean? SONOFF-MINI or SHELLY1? Let me know ...

(Background: For a friend I am trying to find a solution for his extensive outdoor lighting. There are PIR motion detectors and switches. In addition, a RaspBerry with FEHM is to be used in order to be able to implement comfort functions (time, brightness, links). A classic wiring is due to the structural conditions out of the question)
DLzG
Micha

TD-er
Core team member
Posts: 1636
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SONOFF MINI

#10 Post by TD-er » 02 Oct 2019, 22:50

The Shelly1 is supported and may be a more practical choice compared to the Sonoff's, since it has 2 MB flash.
That's a lot easier to perform OTA updates.

I believe it is smaller than the smallest Sonoff.

Just be very careful when installing the Shelly.
It has a low/high voltage jumper which must be set correct or else the magic smoke escapes.

Also there are pins for triggering the input, but those are not isolated. So they are connected to mains.

Even though the print suggests to use 10 or 16 Amp, I would advice not to run so much current through those very tiny relais (also not with the Sonoffs)

And since the unit is positioned in the wall, surrounded by concrete, you may experience worse WiFi reception.
It may help sometimes to rotate the module a bit, but that's easier said then done when connected with a number of very stiff 1.5 or 2.5 mm^2 copper cables.

User avatar
M*I*B
Normal user
Posts: 78
Joined: 22 Jan 2018, 15:47
Location: Germany
Contact:

Re: SONOFF MINI

#11 Post by M*I*B » 03 Oct 2019, 00:04

... thankz for the detailed information on the part. That sounds pretty good!
I think I'll give it a try and order a few ...

As for the WLAN: Has anyone fumbled the thing apart? Perhaps you could connect a PigTail to it with a board antenna, which you, for example, can stick directly behind the rocker switch...
DLzG
Micha

TD-er
Core team member
Posts: 1636
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SONOFF MINI

#12 Post by TD-er » 03 Oct 2019, 10:26

The whole board is connected to mains, so if you make an external antenna to it, this will also be connected to mains.
That's quite a safety issue.

User avatar
M*I*B
Normal user
Posts: 78
Joined: 22 Jan 2018, 15:47
Location: Germany
Contact:

Re: SONOFF MINI

#13 Post by M*I*B » 03 Oct 2019, 10:39

... hmmm ... maybe ...
It is a pity that there is probably no potential separation, but this is probably due to the small footprint.
But ... If the ground potential of the electronics is internally "N", you have at the antenna a maximum of 3.3V against ground. Of course, this requires, that you have to make sure that you connect the neutral conductor to "N" of the Shelly ...
In that case, you will trigger the FI if you touch the antenna (if at all). And since the antenna is glued / clamped behind the rocker switch during operation, there is no risk of contact for the user.

... or am I just missing something?
DLzG
Micha

TD-er
Core team member
Posts: 1636
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SONOFF MINI

#14 Post by TD-er » 03 Oct 2019, 12:39

There is no guarantee either that the "ground" on the ESP side has a direct connection to neutral.
It could very well be at some potential half way.
The only guarantee you have is that there is no galvanic isolation.

User avatar
M*I*B
Normal user
Posts: 78
Joined: 22 Jan 2018, 15:47
Location: Germany
Contact:

Re: SONOFF MINI

#15 Post by M*I*B » 03 Oct 2019, 12:44

The only guarantee you have is that there is no galvanic isolation.
:D :D :D that is of course true!

But the rest is ultimately just a matter of measurements, if I have such a part here.
I had read that things are open source? Then the circuit diagram would have to get somewhere, right?
DLzG
Micha

TD-er
Core team member
Posts: 1636
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: SONOFF MINI

#16 Post by TD-er » 03 Oct 2019, 13:16

"Open Source" can also indicate the firmware.
Or maybe they just want to support "Open Source" firmware versions.
They have made the flash pins easy available.

User avatar
M*I*B
Normal user
Posts: 78
Joined: 22 Jan 2018, 15:47
Location: Germany
Contact:

Re: SONOFF MINI

#17 Post by M*I*B » 03 Oct 2019, 14:20

... that can be true; I can't find a schematic right now in the web...

ABout schematic... Do you / someone use Altium Circutmaker? I'm comming from the "real" Altium-Designer but since I lost my job on DEZ'18 I'm not able to use it; much to expensive for private use. So now I will give CM a try...
DLzG
Micha

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests