Sonoff and eWeLink Setup: Account, LAN Control, Scenes
🏠 Renovation🏢 Office Fit-Out🛍 Shop Fit-Out💦 Waterproofing❄ Aircon⚡ Electrical & Plumbing🔨 Carpentry🧹 Deep CleaningGuidesDesign IdeasToolsAbout🔍 SearchFree Quote
🔌 Sonoff Setup

Sonoff and eWeLink Setup Guide
Who Fits What, Pairing, LAN Control and Scenes

Sonoff gear is cheap and capable, and the modules are mains work. Here is how to split the job and get the eWeLink side right.

📍 We serve KL, Selangor & Putrajaya.

Smart plug, wireless buttons and a small gateway on a worktop beside a phone with toggles

Sonoff makes the hardware and eWeLink is the app that runs it, and the first question with any Sonoff device is who fits it. Plugs, Zigbee sensors and remotes you can set up yourself. The small modules sold as DIY smart switches go behind a wall switch or inside a fitting, which is mains electrical work, whatever the box says. Get the fitting done properly, then the eWeLink side is a set-up job: account, pairing, LAN Control and scenes. For the wider picture, see smart home installation.

Sonoff is the brand on the device; eWeLink is the app and cloud service it reports to. eWeLink describes its app as the place for pairing, setting and managing every supported device in one app, with scenes built on an if-this-then-that pattern. Other brands also run on eWeLink, so a household can end up with a Sonoff plug and a different brand's sensor in the same app.

If you are still choosing between eWeLink and the other big app platform sold in Malaysia, the Tuya vs eWeLink comparison covers that decision. This page assumes the Sonoff gear is already chosen or already on the wall, and walks through getting it running well.

Which Sonoff device does which job

Sonoff's range is wide, and the set-up path depends far more on the kind of device than on the model number. Sort what you have into these groups before you open the app.

Kind of deviceWhere it livesWho fits it
Smart plugsIn an existing socketYou plug it in
Zigbee sensors and buttonsStuck on a door, wall or table, on batteriesYou place it
Gateways and bridgesNear the router, on a plug-in adapterYou place it
Small relay modules (sold under DIY Smart Switches)Behind a wall switch or inside a light fittingAn electrical contractor registered with Suruhanjaya Tenaga
Smart wall switches and wall panelsIn place of a switch plateAn electrical contractor registered with Suruhanjaya Tenaga
Ceiling-fan and appliance controllersInside the fan canopy or the appliance supplyAn electrical contractor registered with Suruhanjaya Tenaga

Sonoff's own navigation shows how varied the modules are: a WiFi relay with Matter support, a Zigbee relay sold as needing no neutral wire, and others. Which one suits a given switch box is a question for the person opening the box, together with the no-neutral smart switch guide.

Why a DIY module is not a DIY job

Sonoff files its relay modules under DIY Smart Switches, and plenty of online videos show people wiring them in an evening. In Malaysia, anything that connects into the fixed wiring behind a switch, in a ceiling rose or at an appliance supply is electrical work on the installation. Any mains electrical work, such as a new power point, a change at the distribution board or a hardwired switch that needs new wiring, must be done by an electrical contractor registered with Suruhanjaya Tenaga.

This is why the page you are reading has no wiring steps. The set-up that follows starts from a module that has already been fitted and tested, with the power back on and the cover closed. For smart switches and anything wired into the mains, we supply the devices and set up the app, and the switch or wiring work is done by an electrical contractor registered with Suruhanjaya Tenaga that we coordinate.

The eWeLink account comes first

Create the eWeLink account in the name of the person who owns the home, with an email address the family will still have in five years' time. Devices are tied to the account that added them, so an account created on an installer's phone or a relative's email becomes a problem the day you need to change a setting.

  • Use one owner account per home, and share devices with family members from the app rather than sharing the password.
  • Turn on any login protection the app offers, and keep the recovery email current.
  • Keep a simple list of each device, its room and the switch or socket it is on.
  • When you sell or let the house, remove the devices from your account before handing over.

Adding a device once it is fitted

  1. Make sure the phone is on the home WiFi network the device will use every day.
  2. Open eWeLink, tap the add button and choose the device type or scan the code on the device or box.
  3. Put the device into pairing mode as its manual describes, usually by a long press until a light blinks.
  4. Enter the WiFi password when asked, wait for the device to appear, then name it and assign a room.
  5. Test it from the app, then test the wall switch or button still works the way the household expects.

When pairing stalls at the last step, the cause is usually the router, not Sonoff. The WiFi pairing guide walks through band steering, router settings and the app's alternative pairing mode, so it is not repeated here.

Zigbee gear and gateways

Sonoff's Zigbee sensors, buttons and Zigbee relays do not join your WiFi at all. They pair to a gateway, and only the gateway talks to the router. Add the gateway to eWeLink first, then add each Zigbee device to that gateway from the app. Battery sensors sleep most of the time, so press their button during pairing to wake them.

Zigbee devices that run on mains power pass messages along for the others, so a house with a few Zigbee relays upstairs will usually reach the upstairs sensors better than one with only battery devices. If a sensor keeps dropping off, move the gateway out of the TV cabinet before buying anything new.

LAN Control: working when the internet drops

By default an eWeLink command goes out to the cloud and back. eWeLink's guide to LAN Control explains that, with it switched on, the app can send supported commands straight to compatible devices over your home network, so they can still be switched from the phone during an internet outage as long as the router is running. It is turned on per device: open the device, tap the settings icon, enable LAN Control, then look for the LAN icon in the device list.

Cloud controlLAN Control
Path of the commandThrough eWeLink's serversDirectly over the home network
Needs the internetYesNot for supported local commands
Control away from homeYesNo
Which devicesAny supported deviceOnly models and firmware that offer it
Common blockerInternet or service outageGuest-network isolation on the router

eWeLink is clear that LAN Control does not make every feature work offline, and that support varies device by device, so check each one rather than assuming the whole brand family has it. Test it by unplugging the internet line with the router still on. The guide to smart homes without internet looks at local control across brands.

Sonoff has its own remote system called eWeLink-Remote. A device with the gateway function receives signals from small eWeLink-Remote buttons and switches, and Sonoff says this local control works even with no internet. Sonoff's page sets two limits worth knowing before you buy: one gateway takes up to 8 sub-devices, and a sub-device can belong to only one gateway.

Not every Sonoff device acts as an eWeLink-Remote gateway, and older models may not support it at all; check the device page before you buy a remote to control it. For a family member who will never open an app, a stick-on button beside the bed is often the feature that gets used most.

Scenes, schedules and load limits

Scenes are where eWeLink becomes useful: porch lights on at sunset, the water-heater plug off at midnight, a button that turns off everything downstairs. Keep them simple and name them in plain words. Give every automated device a manual fallback that works without the app.

eWeLink's own LAN Control guide adds two sensible cautions: use smart plugs only with electrical loads they are rated to handle, and do not rely on LAN Control as the only way to monitor or control devices with safety-critical functions. Check the rating printed on any plug before putting a heater, kettle or portable aircon on it.

Linking eWeLink to other apps

eWeLink devices are commonly linked to Google Home and Alexa from inside those apps, and some newer Sonoff models are listed as Matter-enabled, which lets them join a Matter controller directly. Homes that outgrow one app often move control into Home Assistant while keeping eWeLink for set-up and firmware. Whichever route you take, keep one app in charge of scenes so two systems do not fight over the same light.

Buying Sonoff in Malaysia

  • Look for the MCMC label on WiFi and Zigbee devices or their packaging; the SIRIM and MCMC label guide explains what to check.
  • Match the plug type on plugs and adapters to Malaysian sockets rather than relying on a travel adapter.
  • For switch-box modules and wall switches, let the person fitting them confirm the model suits your switch box before you order.
  • Buy from sellers who state the exact model, so the device page and its feature list match what arrives.

Where ClickBina fits

We supply Sonoff devices, set up the eWeLink account in your name, pair plugs, gateways, sensors and buttons, turn on LAN Control where the device supports it, and build the scenes and schedules. Plugs, sensors and gateways we install ourselves. For relay modules, smart wall switches and fan controllers, we coordinate an electrical contractor registered with Suruhanjaya Tenaga for the fitting, then do the app side. We do the smart device, app and low-voltage side of the job.

Sources & references

Ready to set up your smart home?

WhatsApp us your job details for a quote — we reply within the hour. A site visit is free. We serve KL, Selangor & Putrajaya.

💬 WhatsApp for a quote
Reply within the hourFlat price, no hidden chargesExperienced KL & Selangor contractor

Common Questions

Can I wire a Sonoff Mini or Basic myself?
No. Modules fitted behind a switch or into a fitting are mains electrical work, which must be done by an electrical contractor registered with Suruhanjaya Tenaga. You can set up the app once it is fitted.
Which Sonoff devices can I set up without an electrician?
Smart plugs, battery Zigbee sensors and buttons, and gateways that plug into a socket or adapter.
Do Sonoff devices work without internet?
Supported devices can, through eWeLink's LAN Control, while the router stays on. eWeLink-Remote buttons also control their gateway locally. Not every feature works offline.
Why can't I find the LAN Control option?
eWeLink says the device or its current firmware may not support it. Check each device separately.
How many eWeLink-Remote buttons can one gateway take?
Sonoff says up to 8, and each button can belong to only one gateway.
Is eWeLink only for Sonoff?
No. Other brands run on eWeLink too, so mixed devices can share the app.
Who should own the eWeLink account?
The home owner, on an email the family keeps. Share devices with others from the app.

Get a Quote

Tell us what you need — we reply within the hour.

WhatsApp ClickBina← All Guides