I have seven flashed Sonoff basic switches running on my Home network. I set this up using the Home Automation course. Is there a way to flash the new Sonoff mini switch to use it on the the same network?
Hello Kent, I haven’t used the SONOFF mini, but you can definitely flash it with custom code (you just need to assign and control the right GPIO).
I’ve found this detailed guide that covers exactly how to flash it:
I hope that helps,
Rui, thanks for the reply. I will keep you posted. These little guys are really handy as they can easily be installed in a standard (US) switch enclosure.
Rui, I read over this procedure and it appears to be wrong for me for several reasons. First of all, they are using it to flash the device with Tasmota firmware. I do not use Tasmota for anything. I decided that your simpler method in the Home Automation course was best for me and I have stayed with it since. I am just too old to start over with a new system now!!! The reddit procedure seems to have a lot of pitfalls that are unexplained or blamed on Win10/pc issues and never really fully resolved. I find it ridiculous that a person would be expected to keep trying another computer until you find one that works!!! And in trying all these different things, you have to face the fact that one of these trials may render the MINI useless. In addition, I want to stay with code that I can use within the Arduino IDE.
I have found this about the sonoff r3 security issues..
Witch sonoff model do you have in your models? Witch one do you recommend to start a project?
Than you in advance.
Rui, I tried the same sketch that I used to make the Sonoff basic work. It turned out that all I had to do was add the following statement with the relay and LED statements . This was required to operate with the external switch. I have already added a couple of them in 2way lighting setups. The nice thing about that is that there is no mains voltage on the wires between the switches.
“const int gpio4Switch = 4”
Yes, Everything working well now. I also built a programming fixture that I found on Thingsverse. The mini pins are very difficult to solder to. The files that I used are here https://www.thingiverse.com/thing:3767667