• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Flashing Sonoff Mini to work with server setup in Home Automation course

Q&A Forum › Category: Home Automation › Flashing Sonoff Mini to work with server setup in Home Automation course
0 Vote Up Vote Down
merkelck asked 5 years ago

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?
Kent

8 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 5 years ago

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:

  • https://www.reddit.com/r/homeassistant/comments/di4mrk/guide_howto_flash_the_sonoff_mini_with_tasmota/

I hope that helps,
Rui

0 Vote Up Vote Down
merkelck answered 5 years ago

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. 
Kent

0 Vote Up Vote Down
merkelck answered 5 years ago

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.
Kent

0 Vote Up Vote Down
Bruno Santos answered 5 years ago

Hello Kent!
 
I have found this about the sonoff r3 security issues..

Sonoff Basic WiFi


 
Witch sonoff model do you have in your models? Witch one do you recommend to start a project? 
 
Than you in advance.
Bruno.
 

0 Vote Up Vote Down
merkelck answered 5 years ago

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”
Kent
 

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Kent.
So, that means that everything is working smoothly now?
Regards,
Sara

0 Vote Up Vote Down
merkelck answered 5 years ago

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
Kent

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Great!
Thank you for sharing 😀

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.