Today we are going to focus on setting up a Sonoff Basic switch. You have seen our article on this little device in the previous Alexians tests.
Its use is very varied and we will detail one of them: the installation of the Sonoff in a ceiling light.
We will be interested in both the connections and its pairing with the EWilink application of the brand (with its subtleties).
The installation of Sonoff
You will find in the small box of the Sonoff Bassic switch the device as such as well as 4 screws and a manual in English / Chinese.
The first step will be to disassemble your ceiling light because you will have to get your hands dirty. Of course, turn off the light and switch it off for added security. Take a good look at your wires and their connections so as not to make a mistake later. Then prepare two wires of sufficient length. Indeed, these two wires will go from Sonoff to your ceiling light. It is therefore necessary to come screw these at the level of the output part of Sonoff (N and L).
Then insert and screw in the input part the two incoming wires (those coming from the ceiling). Turn on the power and there, a green light should light up. If so, everything is well connected. Do not reassemble your ceiling light immediately because you will need to have access to the Sonoff for commissioning.
Pairing with EWelink
The logic of the installation is the same as for most connected devices: download the associated application on the store of your smartphone and then the Skill on the application Alexa.
Regarding the EWelink application, the first step will be to register by entering your email and a password. Then select the + at the bottom middle.
From there, there are two possibilities to pair the Sonoff. The fast or normal mode, which hardly ever works, and the "forced" mode. We will directly use the forced mode. To do this, turn on the Sonoff by pressing the small black button once. Your ceiling light should come on. Then keep this button pressed for 5 seconds until the green LED flashes twice quickly and once for a long time, in a loop. Keep the button pressed again for 2 seconds until the green LED flashes continuously. Then select "next" and enter your Wi-Fi credentials (you will also need to activate your GPS).
After authorizing access to the application, the search for our Sonoff Basic switch begins.
Once detected, the application asks you to rename the switch and confirms its addition. Your Sonoff will then connect to your Wi-Fi for the first time to converse with the EWelink servers. It may take a minute or two.
The time that your device connects, the Wi-Fi icon is yellow and blue thereafter. If it lasts too long, look at the way the LED flashes and by referring to the instructions you will find out the problem. Most of the time, it's an error in the Wi-Fi code (a space at the end for example). No other choice in this case than to start over from the beginning ...
When everything is connected, then go to the application settings through the configuration of the device (the 3 small dots at the top right when you are on the page of your device, then settings). This will allow you to update the version of the Sonoff program, which takes a few minutes. From there, a new option is available: Power on state. The interest is real. In the event that you turn off your ceiling light with your wall switch, you can choose, when you turn it back on, whether your Sonoff turns on, remains off or resumes its last setting. And therefore to use your ceiling light in the event of a Wi-Fi problem, for example.
The next step will be to activate the skill under the application Alexa and search for new connected devices (see the tutorials on connected bulbs if you want to know how). By entering the settings of your connected device, you can make it consider a light by Alexa and no longer as a switch.
And There you go ! You can now reassemble your ceiling light, it is finally connected thanks to a Sonoff Basic switch !! It's not very complicated, but you still have to know how to do it. This tutorial concerns a ceiling light, but you can order household appliances or even garage doors. But that's another story !
Thank you for this well explained tutorial. How many equipment (the Sonoff switch) can the ewelink application connect at a time and how many android can control one equipment?
Thank you for your return. Like wifi and no "storage", there is no real limit if it is not the wifi which can tire out.
Hello,
A priori, the only equipment limit will be that supported by your router / Wi-Fi box… And you can install the application on as many Android / iOS devices as you want. 🙂
Yes, there you go… But things are going quite quickly with all these connected objects that we add "thanks" to Alexa,
Hello, I have installed this module on my external electrical outlet which controls my Christmas garlands. I have a concern. When the module is off my garlands flash. In on mode, no worries everything works. An idea ? Thank you
Hello …
just one question… is it possible instead of connecting it to the ceiling light, to connect it for example to a switch which makes it work a dozen recessed led sports… .. which would make it possible to make them all work at the same time?
Thank you for your reply .
Best regards.
Yes, it seems possible, but I advise you instead to orient yourself towards the Meross switch, more reliable, and that you can get out of its plastic case without any worries. However, check that you have the necessary space to house it in the box. 🙂
For faster answers to all your questions, do not hesitate to join our friendly and responsive community!
Les Alexiens Facebook Group - Community Amazon Alexa / echo
Hello,
I bought a Sonoff Basic, to automate a garage door. The problems: it is not a dry contact, and it does not manage (by default), a simple impulse, it simply changes state (powered or not powered), which does not work for the majority. my knowledge, garage doors. To correct all this, relatively simple:
Hack on the CM to have a dry contact (there are a lot of tutorials on the web), and flash firmware to switch to Tasmota, nickel, everything works… almost 🙁
Indeed, the Tasmota firmware is configured so as not to be accessible from the outside, for security reasons (the web interface apparently allows a lot, a lot too much).
Suddenly, back to square one. My best solution would be a Sonoff compatible firmware, which can handle a single pulse, and configurable to be accessible from the outside. But does it exist?
Olive.
No idea, but there is a solution: the MH COZY. Several members of our Facebook community have experimented with it successfully.
Thanks for your answer, but the link doesn't work, and Google can only find chat baskets with MH COZY, not sure that is 😀
Weird, it redirects me to Amazon yet ... 🙂 https://amzn.to/2GtrtbK
Sure enough, I see cat baskets on Google as well, but if you type that on Amazon.fr, you should be fine!
Thanks for this article!
Is it possible to deactivate the little green lights that are on all day long?
No, unfortunately, but you can do this on the Sonoffs which, by the way, are also much more reliable. We tested them here.
Hello !
Thank you for this tutorial, on the other hand, how to control this over 3G from your phone when you are away from home? 🙂
You need to go to your application Alexa where you will find your Sonoff Basic in Devices> Switches, or use the eWeLink application. You can also use Alexa in voice from your smartphone.
Hi
If I installed sonoff in a ceiling light, I still know how to use my existing switch? thank you
You can, but you will lose power to the module and therefore voice control.
Hello can I connect a wi-fi switch to the basic Sonoff because I would like to be able to use it at home other than with Alexa
The Sonoff Basic is a switch… You can place it behind an “old-fashioned” switch, but it will then be cut off depending on this power supply. There is a very recent solution which consists in placing a Sonoff switch in RF433 which allows you to have a voice or physical command. 🙂
Sonoff T1 EU switch
on version 2.6.1 of ewlink you have the possibility in "settings" of the conserne sonoff to switch to "inching" mode, to adjust the pulse time and thereby open your garage u gate
Thank you for this info, it's a very interesting option that will delight more than one! 😉
Hello,
Little question is what I could plug the box into a power strip in order to drive it with alexa ? As I could see with a meros switch? I'm just starting out and I tried to connect the sonoff to my Ceiling Light in the living room but no place unless everything to enlarge a real hassle if someone has any ideas I'm interested
Hello,
Yes, no worries about plugging that into a power strip. Be careful, however, to respect the maximum power when using the devices above.
Indeed, most ceiling lights do not have enough space. It is better, in this case, to turn to connected bulbs. Or, that's what I did in a particular case: get rid of the box and only integrate the circuit. Beware of the risk of false contacts all the same /
hello and thank you for your tutorial.
my question is .. this switch only works if I am within range of my box (wifi reception) with my samrt phone ..
Remotely I cannot control my inter. ???.
with thanks
Thanks for your help….
Hello,
If of course all you need is an Internet connection. You can completely control this equipment in 4G if you have installed the eWeLink application. Everything happens in the cloud in reality. 😉
cordially
Hi
I had the same problem with outdoor spots. The phase and neutral were reversed.
Now everything is working wonderfully.
I'm a little late, but unless I'm mistaken ... no, if you use the switch (by putting it to OFF) you effectively cut the power to the Sonoff module and therefore any possibility of controlling the bulb . By turning the switch back to ON, you re-power the Sonoff module which will only turn on the bulb after reconnecting and having received the order to do so.alexa to your request.
On the other hand, the Sonoff Baisc modules, by configuring the Inching function (set to the minimum value, i.e. 0,5s), can be inserted like a push button in a circuit controlling a remote control switch, on condition that the installation is done with buttons. push buttons to phase. In the case of installations with pushbuttons in neutral, it is necessary to modify the Sonoff basic electronic board to transform it into a dry contact. An operation which requires good knowledge of electricity to be carried out in complete safety.
This type of installation then makes it possible to control the lighting concerned both with the push buttons and by voice. The only downside is the inability to alexa to know the real status of the lamp.
Indeed, with remote control switches, it's different… 🙂
Hello,
great this tutorial !! but I have a concern. I succeeded in pairing the Sonoff basic module but on the application it says that the device is offline; What is the problem ? thank you
cdt
Hello,
It's weird, if you paired it right it should be online. Check its Wi-Fi connection and proper functioning via the app.
Have a good day
Hello,
Thanks for the tutorial !
I have two switches like this one, no problem to connect the first one which is recognized as "second generation device".
However, impossible to connect the second ... The application via my phone recognizes the switch as a "first generation device", but it did not offer me to rename the switch. The search continues and after 3 minutes, the application indicates a connection error.
A solution ?
Thank you !
Hello,
Are you talking about the eWeLink app?
It is possible, it has happened to me, that the application crashes after a first installation. In this case, just restart your smartphone and relaunch the app. Make sure you are always on 2.4 GHz.
Good luck!
Hi,
Yes I am talking about this application.
I have already restarted the phone, cut the power to the switch but nothing changes ..
Of course yes I am using 2,4 GHz wifi.
An opinion, a solution?
Thank you
Hello,
I installed a sonoff on a heater however I have a problem. When I disconnect my wifi box I completely lose control of the heating because the sonoff acts like an off button, so I can't even turn on the heating conventionally. Is there a way for the sonoff to switch to the on option when it does not pick up the wifi (but the power is still on).
Thank you in advance!
Hello,
Normally, you can choose its default status in the eWeLink application, either "on" or "off". These settings are found at the level of each device.
Have a good day!
Hello,
I installed the sonoff basic in my ceiling light as indicated in the tutorial.
My first goal before any configuration is to be able to control it (turn it on and off) with two 433mhz battery switches stuck next to my bed.
So far everything is ok, but when I turn off the light to which the sonoff is connected from my central switch in the room, the sonoff goes out and it is impossible for me to turn the light on again.
Do you have any ideas where the problem is coming from?
Thank you to all
Julien
Hello,
It's normal. By installing a Sonoff, you obviously lose the use of your classic switch which must remain closed permanently (on "on" therefore). When you open your circuit and turn off using the switch, you cut off the power supply to the Sonoff which therefore loses its connection to the Internet and becomes inoperative. You must therefore reuse this same switch to turn on the light again and choose the default behavior to "on" in the eWeLink application. Note, moreover, that this behavior will be the same in the event of a power failure.
Have a good day
Bonjour,
I have no possibility of being able to continue using my classic switch?
thank you in advance
Julien
Hello everybody
I bought a SonOff Mini module in order to control my electric roller shutters with my smartphone.
The problem I am having is with the connection of the electric wires. I have three wires coming from the shutter (phase, neutral and earth), and three wires coming from the electrical panel (phase, neutral and earth).
I managed to connect my SonOff mini but I only have the On or Off solution. So basically I can cut off the electricity coming to the shutter or leave it. But I can't seem to have an up and down action.
This is where I will need your help please 🙂
The thank you box
Hello,
Normally you should have rise and fall wires at the original switch, this is where you should plug in your Sonoff Mini.
Note that this will not prevent you from using it normally in addition.
Have a good day
Hello,
I discovered your forum. I am having problems with my installation which was stable for a very long time.
My concern is the following: connected to a Freebox V6, 2 switches no longer know how to reconnect to the network. No matter how much I remove them from ewelink and put them back (when it works, sometimes I don't know how to re-synchronize them), they remain unconnected. I had a problem once with my address range which was not large enough, and the problem was returned to order after extension, but this time I do not know what to do.
I'm fine in 2,4 Ghz, my password is correct… in short, I'm stuck…
If this problem has happened to you before and you have found the solution ...
Thank you
Have a good day,
Fred
Hello,
Unfortunately we cannot help you too much with the Freebox… We invite you to ask the question on our Facebook community: https://www.facebook.com/groups/lesalexiens/
Some of our members with the same material should be able to respond quickly. 🙂
Have a good day
Bjr, it is possible to put the basic sonoff in parallel with a switch. On IN put the neutral and line and on OUT only output the line. I have tested and it works well. For an aesthetic point of view I just did this in the garage. There is the sonoff mini now.
Thank you for the feedback, it's good to know but, indeed, the Sonoff Mini is more suitable for this use. 🙂
Hello, I am coming a little late, but it may be useful for others. I have just performed the test in the app: the "power on stat" function initializes the state of the module when it is re-supplied by the current and not by the network! (practical for blinds which close if the power returns after a power cut. So put this function "off" if you don't want them to open automatically after a power cut # security)
for your heating. without wifi you can do nothing, except put it in an internal network (I don't know dsl)
On the other hand, I still wanted to warn you. pay attention to the heating power you use The basic sonoff module is designed for 230 V 10 A therefore no heating greater than 2300 W (it is marked on the label of your convector!)
Big thank you and bravo to the editorial staff who respond to all posts !!!!
Thank you for this very nice feedback! 🙂
We try to respond to everyone, but not all - or most - of the devices we personally use. Your details are therefore valuable and should be useful to more than one, I am sure.
Good weekend
Hello everyone. I also have a few problems. I installed basic sonoffs in an old house to avoid bleeding and everything went well: wifi connections and updating. The system works fine via the app but I cannot pair 433mhz RF intercepts. The instructions indicate to press the button 3s and that a red led must flash but in my case and on all my sonoff basic nothing happens and impossible to appease even by pretending. Do you have an idea ? Are there any requirements for programming such as being in the on or off position? Thank you
Patch
Hello,
Unfortunately, we are not familiar with this model, but it seems to work like the others and it can happen that the application crashes. Start by restarting your router and smartphone, then try the experiment again, sometimes that is enough. 🙂
Good luck
Hello,
Is it possible to use Sonoff RFR3 in DIY (for use from Jeedom) but that they are also functional with Alexa ?
Thank you
Hello,
Actually, no idea, we prefer Home Assistant. 🙂 For whom it is possible, so a priori it should be for Jeedom as well.
Hello,
Do you think I can connect a sonoff just before a ceiling light including 4 of its bulbs (https://amzn.to/2YvApU6)?
thank you in advance
Hello,
Is it possible to connect a sonoff just before a bar including 4 Led spots? Or is it too much for the sonoff?
Thank you
Hello,
Regarding LEDs, that should not be a problem as long as you do not exceed 2200 Watts, which seems unlikely. 🙂
Hello,
Sorry, your message landed in spam ...
Yes, it is quite possible, but of course they will not be controllable individually.
Have a good day
Hello,
I have 2 basic sonoffs which control my heating.
I just noticed that the latest version of eWeLink on Android no longer allows them to be scheduled for a specific date.
It is I who cannot find this command or this one really disappeared?
Sincerely
Hi,
I would like to know if I can keep my 2-wire wall switch by plugging in my SONOFF BASIC R3.
I wouldn't want to remove my wall switch so my kids can turn it on or off.
thanks in advance
cordially
Hello,
You can do this, however you will lose home automation control, and therefore the benefit of the device, if the switch is operated by hand. It is better to use ZigBee micro modules or a Sonoff Mini in that case.
Have a good day
Hello everyone ! I just installed the latest generation Sonoff mini DIY MINI! I just wanted to make it work with siri on iphone! To light up and turn off my garage! Everything works fine in manual this to say by pressing the iphone app buttons! But with siri only the function to turn on the garage seems to be ok! You cannot switch off other than by pressing the switch off in the ewelink app! Does anyone have the same problem? And maybe the solution..thank you in advance!
I cannot connect the box with the ewelink application! I tried everything but I can't find any solutions, my iphone found the box but not with the ewelink application.
You must connect your smartphone in 2.4 GHz. 🙂
How to do
The easiest way, if you have two networks combined, is to temporarily deactivate 5GHz in the management interface of your box ...
Hello, I wanted to reuse two sonos s20 sockets that I had unplugged a while ago and no way to pair them with ewelink. we must reset the sockets and if so how should we practice please. Thank you.
Good evening, I have just started home automation, and to do this, buy a basic sonoff for testing and already a problem. I am in 2.4Gh on my smartandroid phone, deactivate the 5Gh of my LiveBox5. When the power is turned on, the led is blue and not green, normal? and a long press, the led flashes quickly 3 times, pause then again 3 times ect .. eWeLink does not recognize the Sonoff. I think the problem comes from my home, because I bought 1 shutter switch working with Smart Life and ditto, not recognized either. I tried everything, reboot of the box and the smartphone x times. A tip, an idea would be welcome. Congratulations to this forum that I have just discovered.
Hello, how do you pair a sonoff basic fax machine?
Hello,
Sorry, but I don't quite understand your question ...
Hello,
I'm trying to install a basic sonoff but the light is either red or blue. Can you help me?
Thank you
Hello,
I recently purchased a sonoff R2 module, I want to connect it to a power strip or this one has an earth connection. Can I leave the earth cable uninterrupted and integrate my sound off only on the N and L wires of the multiple sockets without risking any problems?
cordially
Hello,
We are not electricians, but a priori yes, that should not be a problem as long as your earth remains well connected.
Have a good weekend 🙂