Closed freaktech closed 5 years ago
Please, address this to the Tasmota Support Chat. The chat is a better and more dynamic channel for helping you. Github issues are meant for Tasmota Software Bug Reporting.
Please check the Contributing Guideline and Policy and the Support Guide.
Thanks.
See Wiki for more information. See Chat for more user experience. See Community for forum. See Code of Conduct
Have one and working on it.
The mini makes a DIY mode available which might be used to OTA update Tasmota one day but it currently won't work.
So the good old serial flashing is needed.
As the mini does NOT contain a transformer AND the documentation alerts about high voltage on the Antenna I expect the whole unit to be on AC voltage so do not make a serial connection when AC is connected too; YOU WILL BLOW YOUR COMPUTER, like the Pow.
Luckily you can power the unit from the USB port during flashing. I used small wires connected to the testpoints as shown
Once flashed the below template makes the switch input available on GPIO04.
{"NAME":"Sonoff Mini","GPIO":[17,0,0,0,9,0,0,0,21,56,0,0,255],"FLAG":0,"BASE":1}
Edit1: Update template to make GPIO16 user configurable although it's use is questionable.
Closing this issue as support for this device has been added to Tasmota by Theo. Thanks
@arendst
From 16 days ago The mini makes a DIY mode available which might be used to OTA update Tasmota one day but it currently won't work.
DIY OTA now works; yes? https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-DIY
Yes. DIY OTA now works
https://github.com/arendst/Sonoff-Tasmota/wiki/Templates#importing-templates
On Wed, Jul 31, 2019 at 2:37 PM tifrei wrote:
Sorry for the dumb question but how do i use the template theo provided? Paste it in to the console?
@mattcony,
Getting to the GPIO pins on the Sonoff mini is pretty difficult. You will have to solder into very tight quarters. Having said that, if you can do so successfully, you just assign a component to the second (01) and fourth (03) GPIO fields in the template.
I just successfully OTA flashed sonoff-basic.bin to Sonoff Mini and everything seems to work.
Trick is to first upgrade OTA the firmware to 3.3.0 with the standard ewelink software.
This enables you to use the DIY tools, which can flash OTA any firmware. https://github.com/itead/Sonoff_Devices_DIY_Tools
I can't find Sonoff Mini in the Configuration->Module->"Module type" dropdown of Tasmota. Which of the existing module types listed would be the most appropriate?
Cool, this works. Thanks.
btw, Mini has 2 input ports, one is the physical pushbutton (it by defaults works like power toggle
command) and the last two connectors (s1 & s2) next to power terminals, which can be connected together.
I assume GPIO16 is the s1-s2 connection. Is there a way to access the pushbutton gpio?
Open the Template menu. This will show what GPIO does what. Your assumptions are wrong.
Just for addition, this is my shocky wire soldering on the mini because DIY did not work But succeeded flashing with USB TTY and NodeMCU PyFlasher
My shaky old hands just did the same thing. It really helps if you have some solder paste and can apply extremely tiny amounts. Dam those pads are very close together, as is the resistor, so be careful.
Using 30 AWG "wire wrapping wire" thats copper cored and pre-tinned (avail on amazon for sub $10) is the way to go.
You can pop off the super thin insulation with your teeth. or just melt it with the iron as you go, and you get this super thin and stiff wire that will go right where you want it.
Pretty much like the first image, but thats probably 24-26 AWG
https://www.amazon.com/gp/product/B07WCTKKZL/ref=ppx_yo_dt_b_asin_title_o03_s01?ie=UTF8&psc=1
https://www.amazon.com/gp/product/B006C4A9TA/ref=ppx_yo_dt_b_asin_title_o03_s00?ie=UTF8&psc=1
Guys, which pin is GPIO16 on the board? Is it the jumper?
Yes
Is one of the available GPIO pins can do one wire? Is GPIO 16 or 02 could handle one wire ?
Edit... no respond so... I'll start to try 16...
I learned that wireless flashing of the mini workst best if the hotspot has internet access too (mobile data=on). Only managed to flash from eWeLink software to Tasmota v6.6 by using my normal internetrouter and temporarily switch to the bizar network of Sonoff Mini. Anyways, I added the template as mentioned above in the 'configure other' menu, and the external switch came alive BUT then I upgraded to v8.1.0 and now I can't get the external switch to work. Am I confused? Yes, but can't find any other reason why else the external switch suddenly doesn't seem to work anymore. Tried 'reset config' and only put in wifi/template settings. Nothing. HELP
I flashed mini with 8.1.0 and the issue is that physical switch does not work. Tested with multimeter. Template imported but still no go.
" I flashed mini with 8.1.0 and the issue is that physical switch does not work. Tested with multimeter. Template imported but still no go."
==> just to make sure, did you 'Activate' the template, I forgot that once and took a day to find...
What a shame ... that was the issue.
It happened to me too, and I guess lots of others also, cause that little marker is made nearly invisible being on or off. Bad design, I hope next version will do something about it. I gave the Mini a nickname "Sonoffaswitch" but what I'm hinting at is a better name if things like this happen!
Just a quick observation: In case you connect long wires to the physical switch connectors (like for example to establish a 2-way switchning circuit) it may happen that Sonoff Mini won't detect the physical switching. On Sonoff forum ITEAD support suggested to add a 100nF capacitor to the switch input connectors like this: I can confirm that this fixes the issue.
TLDR: Too long wires behave like an antenna gathering noise - and again bad design - the switch input switches only 3.3V - which makes the unit sensitive to such noise. The capacitor cancels the noise gathered by the wires. I really don't get it how come that the manufacturer doesn't think about this in the first place. Apart from this, the unit is perfect...
Hi @nagyrobi Could you please let me know the specs of that cap?
It's a capacitor of 100nF, 40V (or more) rated. Usually it has marked "104" on. I had a couple of 100nF 100V rated but those were too big to fit in the casing, I applied them outside to the screws. But 40V is more than enough (the voltage at those pins is only 3.3V).
@nagyrobi Thanks!
Hi, I measured the voltage between Earth and S1/S2 and it results as 120V. There's some schematic diagram of the Mini? (I have the inverse problem. When I switch on the light it works for a while and then turn off like the switch was switched again. The switch was already replaced with a new one. I'm testing with 100nF 100V cap) Thanks
Hi, S1 is 0v esp8285 S2 has a 1k resistor between it & GPIO4 GPIO4 has a 10k pullup to 3v OTA is directly connected to GPIO16 GPIO16 has a 10k pullup to 3v Onboard Button is directly connected to GPIO0 GPIO0 has a 10k pullup to 3v the 0.1uF cap is not needed if the switch wires are only a few inches long. The BIG confusion here is that the default configuration of GPIO0 is Button1 (17) . This makes NO sense ! It should be Button1i because it is Pulled low when Pressed. is someone trying to reinvent the meaning of "inverted" or "not" ?
Marveillous gig for flashing with acupuncture needle!
I bought a 3 pack from Amazon - my first one worked without a hitch on a 2way switch. Due to the wiring of the switch I had to re-wire a few things and released the magic smoke on two of them...
Now the 2nd/3rd won't work with the switch at all.
I've installed the 104 cap at the beginning of the week, this didn't help so I've just installed a new switch. Still no joy!
Anyone got any more suggestions at all? (It's the downstairs light so shorter cable run)
I had to put capacitors on both switches too, for my 2way setup, so that made 3 capacitors required to make it work stable. It all depends on how dense is your RF environment, if you have many electronics in the house, LED bulbs etc these all produce interference which can be picked up by the wires behaving like an antenna.
@nagyrobi Can you please post a pic of the cap on the switches?
The picture shows 104-> 100nF
What I meant is where in the switch did he connect them.
The 4th capacitor between 1 and 2 is optional.
Thanks @nagyrobi
Marveillous gig for flashing with acupuncture needle!
Hi, Where do you bought this?
I guess he printed it. Still, I don't have a 3d printer, and would like to buy a jig like that
On thingiverse for .stl Here the new version that I didn't tried...
I guess he printed it. Still, I don't have a 3d printer, and would like to buy a jig like that
In that time I didn't had a 3d printer but this worth all the effort for finding a friend who had and would 3dprint it! I will NEVER regret to get this tool of mine! And Chinese have super cheap 200 pack of copper acupuncture needles for sell on aliexpress or banggood!
Marveillous gig for flashing with acupuncture needle!
Hi, Where do you bought this?
I think you could still buy it from the original designer: https://www.thingiverse.com/thing:3615910
is the new mini compatible with tasmota? I ordered it 4 weeks ago and it was shipped 2 weeks ago should be here every day and i need a pulse function
so anyone already tested it and provide a info how to flash?
https://www.banggood.com/de/SONOFF-Mini-Two-Way-Smart-Switch-For-Smart-Home-Can-Work-With-An-External-Switch-p-1484758.html?gmcCountry=AT¤cy=EUR&cur_warehouse=CN&createTmp=1&ID=49554&utm_source=googleshopping&utm_medium=cpc_union&utm_content=2zou&utm_campaign=ssc-at-all-0701&ad_id=359090513510&gclid=CjwKCAjwx_boBRA9EiwA4kIELmrr7yDSKTk-fLEe5Oi9TisqSvpBDqbkE9v75IkQp-p6khvkgfhnfRoCOfsQAvD_BwE