# How to add smart plug to the HA dashboard?

**URL:** <https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994>\
**Category:** Free discussion\
**Created:** [May 1, 2024, 8:18am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994 "2024-05-01T08:18:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 1, 2024, 8:18am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/1 "2024-05-01T08:18:26Z")

</div>

Hello, I’ve successfully added my 1st home automation, the eWeLink WL-SC01 smart plug.  
I’ve added the smart plug to Home Assistant, but the smart plug only seemed to add in when I log into the eWeLink Smart Home website.  
If I try to add the smart plug to the HA Dashboard, the entity I am offered is eWeLink Smart Home Update, which is not an On/Off switch, rather an unnecessary eWeLink website update?

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 1, 2024, 9:00am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/2 "2024-05-01T09:00:36Z")

</div>

What is the smart plug linked to? To eWeLink or to the Home Assistant? Your description is a bit chaotic.

---

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 1, 2024, 9:41am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/3 "2024-05-01T09:41:38Z")

</div>

Sorry, I’m a bit unclear with my 1st home automation.  
I had to setup the smart plug WL-SC01 by logging into the eWeLink app account.

Once that was working, I tried to put the smart plug on my preferred Home Assistant.

I added the smart plug, but nothing connected until in Home Assistant I logged into the eWeLink account.

 ![Screenshot from 2024-05-01 19-41-05](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/4/4097e6e3d825a0863e7c7c1e53adbee42d8f0ae6.png)

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 1, 2024, 9:58am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/4 "2024-05-01T09:58:44Z")

</div>

OK, now I understand. You have installed the eWeLink add-on in HA. The socket is connected to the eWeLink cloud (app), right? Is it a WiFi device?

---

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 1, 2024, 10:22am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/5 "2024-05-01T10:22:54Z")

</div>

The eWeLink WL-SC01 smart plug has a Wi-Fi connection to my Wi-Fi AP.  
The Wi-Fi AP has an Ethernet cable to the LAN and WAN.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 1, 2024, 10:27am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/6 "2024-05-01T10:27:53Z")

</div>

> [@kotgc](#):
>
> WL-SC01

The WL-SC01 socket is designed for the Tuya platform. It’s not a Sonoff (eWeLink). I understand that you have connected the device to the eWeLink cloud and that you can fully control it from the app and/or eWeLink Web, yes?

---

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 1, 2024, 11:03am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/7 "2024-05-01T11:03:51Z")

</div>

Yes, those were the instructions, to connect to eWeLink.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 1, 2024, 11:13am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/8 "2024-05-01T11:13:21Z")

</div>

Really? Tuya device’s manual instructed you to connect to eWeLink?  
You didn’t answer the most important question: Can you fully control the device from eWeLink app/cloud?

---

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 1, 2024, 8:11pm UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/9 "2024-05-01T20:11:01Z")

</div>

Sorry if I missed a question. Yes, the smart plug is controlled from eWeLink app/cloud.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 2, 2024, 3:04am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/10 "2024-05-02T03:04:48Z")

</div>

Let’s start with the fact that the so-called official eWeLink integration is outdated and has not been updated for many months. I have asked eWeLink staff several times on this forum what is going to happen with it. Well, nothing will happen, because they do not have it in their plans. As for the need to log in to the eWeLink account multiple times, you apparently bypassed getting a longlived-token when setting up the integration or something went wrong with it. But let’s leave that integration out of focus. There is a better solution.  
First, delete the eWeLink integration remembering to remove all devices and automations associated with it beforehand. Then, using HACS, install the [Sonoff LAN](https://github.com/AlexxIT/SonoffLAN) integration. It’s a Home Assistant custom component for controlling Sonoff devices with eWeLink (original) firmware over LAN and/or Cloud. I have been using it successfully for many weeks. Ask if anything is unclear.

---

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 2, 2024, 7:07am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/11 "2024-05-02T07:07:22Z")

</div>

1. Uninstalled the eWeLink Add-on.
2. HACS Integrations doesn’t show the ‘Plus’? I opened [Integrations | HACS](https://hacs.xyz/docs/categories/integrations/) in Incognito mode to ensure no browser cache, but same issue. (I was unaware, but perhaps I’m meant to install HACS into HA?)
3. I downloaded and extracted the sonoff directory from the [latest release](https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.7.3), however I’m unable to find HA’s custom\_components directory in the HA config directory?  
Using HA Terminal, the commands aren’t BASH, so I’m stuck navigating or listing HA’s directories?
4. Installed HACS into HA, however error at [Sign in to GitHub · GitHub](https://github.com/login/device) code to authorise HACS. Github confirms via email a third-party OAuth application has been added to my account. Unfortunately, HA won’t update to Success!  
I refreshed the HA browser page, but had to re-authorise HACS with Github. Issue remains where HA won’t update?

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 2, 2024, 8:17am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/12 "2024-05-02T08:17:35Z")

</div>

Please, read [this](https://hacs.xyz/) carefully. You need a Github account to work with HACS. You obviously did something (very) wrong, because normally it’s a pretty straightforward process. You need HACS to install community components.  
One thing more. Your HA instance cannot be a docker installation on an iHost.

---

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 2, 2024, 8:40am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/13 "2024-05-02T08:40:43Z")

</div>

I run HA as a VM on the Qemu hypervisor.  
I do have a Github account, so maybe the VM HA is too complicated for Github and HACS to communicate?

I read [HACS](https://hacs.xyz/docs/setup/download/) and used the bash command to download.  
This [video](https://hacs.xyz/docs/setup/download/) was good up to the issue at 4:40.

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 2, 2024, 9:18am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/14 "2024-05-02T09:18:08Z")

</div>

> [@kotgc](#):
>
> to download

Did you install HACS afterwards?

---

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 2, 2024, 9:21am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/15 "2024-05-02T09:21:13Z")

</div>

TLDR; I can’t reach the last image on the [HACS guide](https://hacs.xyz/docs/configuration/basic/).

I tried to install by adding the integration, approving the 5 permissions, then pasting the key to authorise HACS in Github, which succeeds, but HA won’t update to accept HACS.

 ![Screenshot from 2024-05-02 19-20-33](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/7/7915e19fc8de6986a89bfd90de1a7227b814ba6b.png)  
 ![Screenshot from 2024-05-02 19-18-39](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/c/c23f10de01802d4ea7f4d1591e079b12fc88de9a.png)

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 2, 2024, 9:51am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/16 "2024-05-02T09:51:16Z")

</div>

Before HACS can show up in the list you need to clear your browser cache. Then go to the “Settings” in the Home Assistant UI. Click “Devices & Services” and the “Integrations” tab in the Home Assistant UI. Click +ADD INTEGRATION. It should look like this:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/b/bb816f57cacdf4a243c9ae6a9231210a014fe46f.png)  
Select HACS and go for it. The last step is to restart.

---

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 2, 2024, 11:26am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/17 "2024-05-02T11:26:42Z")

</div>

Yes, I did clear the cache then followed all the steps through ADD INTEGRATION, but HACS won’t add to Devices & Services.

 ![Screenshot from 2024-05-02 21-25-20](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/6/6f18cc9db2b685a896ec523e75d89d5ae02482de.png)

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 2, 2024, 1:18pm UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/18 "2024-05-02T13:18:57Z")

</div>

> [@kotgc](#):
>
> HACS won’t add to Devices & Services

What is your HA installation type? Go to Settings → About. Make a screenshot and show it here.  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/d/d653333fa488e5ca38dc00333a7a276a94c7a89a.png)

---

<div class="post-metadata">

**Author:** ![kotgc](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@kotgc](https://forum.ewelink.cc/u/kotgc)\
**Post date:** [May 2, 2024, 9:04pm UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/19 "2024-05-02T21:04:12Z")

</div>

Core: 2024.5.0  
Frontend: 20240501.0  
Operating System: 12.2  
Supervisor: 2024.04.4

 ![Screenshot from 2024-05-03 07-03-57](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/7/71ff2617c7124461d5b41af8cb61d3d0cbf70ca2.png)

---

<div class="post-metadata">

**Author:** ![jam3](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/jam3/32/7918_2.png) [@jam3](https://forum.ewelink.cc/u/jam3)\
**Post date:** [May 3, 2024, 4:15am UTC](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994/20 "2024-05-03T04:15:52Z")

</div>

> [@kotgc](#):
>
> HACS won’t add to Devices & Services

So what specifically is going on?

[Next page](https://forum.ewelink.cc/t/how-to-add-smart-plug-to-the-ha-dashboard/31994.md?page=2)
