# Return eWeLink module

**URL:** <https://community.gladysassistant.com/t/retour-module-ewelink/6014>\
**Category:** Configuration\
**Tags:** ewelink\
**Created:** [January 15, 2021, 7:58am UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014 "2021-01-15T07:58:32Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrien-cardinale](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/adrien-cardinale/32/6465_2.png) [@adrien-cardinale](https://community.gladysassistant.com/u/adrien-cardinale)\
**Post date:** [January 15, 2021, 7:58am UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/1 "2021-01-15T07:58:32Z")

</div>

Hello, I have some Sonoff Mini modules at home that I had flashed with Tasmota, and I had one left unflashed that I was able to test with the eWeLink module, which allowed me to compare a bit. I noticed a small bug in the state feedback in the Gladys interface. When I turn on my Sonoff Mini from the switch, the feedback works well in the interface, but not when I turn off the Sonoff. I tried changing the delays in the settings, but nothing changes except when I set it to every second, where nothing works.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 15, 2021, 8:39am UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/2 "2021-01-15T08:39:54Z")

</div>

Hi @adrien-cardinale, I’m tagging here @Pti_Nico who is the developer of the eWelink service. Thanks for your feedback!

---

<div class="post-metadata">

**Author:** ![Pti\_Nico](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pti_nico/32/273_2.png) [@Pti\_Nico](https://community.gladysassistant.com/u/Pti_Nico)\
**Post date:** [January 15, 2021, 7:07pm UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/3 "2021-01-15T19:07:48Z")

</div>

Thank you for the feedback 😃

For your information, I just fixed a detection bug that was reported to me and I’m taking this opportunity to improve the service.

Perhaps you could test this new version once it’s available?

---

<div class="post-metadata">

**Author:** ![Pti\_Nico](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pti_nico/32/273_2.png) [@Pti\_Nico](https://community.gladysassistant.com/u/Pti_Nico)\
**Post date:** [January 16, 2021, 9:30am UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/4 "2021-01-16T09:30:22Z")

</div>

@pierre-gilles a quick technical question about Sonoff modules with multiple channels (image below).  
 ![](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/3/305260ec6ea50621d81b2cb26958e8841adeb242.gif)

Should we create 4 devices with 1 «&nbsp;Power&nbsp;» feature each or 1 device with 4 «&nbsp;Power&nbsp;» features?

---

<div class="post-metadata">

**Author:** ![AlexandreL](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@AlexandreL](https://community.gladysassistant.com/u/AlexandreL)\
**Post date:** [January 16, 2021, 3:54pm UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/5 "2021-01-16T15:54:25Z")

</div>

Hello everyone,

I just received my Sonoff Mini R2, and I was wondering what the difference is between the Ewelink service and Tasmota? By using Ewelink, requests are sent to Chinese servers, whereas with Tasmota everything is done locally, right?  
So I think I will use Tasmota. Am I reasoning correctly?

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [January 16, 2021, 4:13pm UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/6 "2021-01-16T16:13:47Z")

</div>

That’s exactly it. You need to flash them with Tasmota.

---

<div class="post-metadata">

**Author:** ![AlexandreL](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/a/13edae/32.png) [@AlexandreL](https://community.gladysassistant.com/u/AlexandreL)\
**Post date:** [January 16, 2021, 4:19pm UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/7 "2021-01-16T16:19:53Z")

</div>

Super thanks for the quick response!  
To flash the Sonoff mini R2, I saw that you need to switch to developer mode. I found a tutorial (in French) that explains how to do it for this model, in case it can help someone: [Sonoff DIY Mini R2 - #13 par Arnaud\_Massart - Objets connectés - Communauté Jeedom](https://community.jeedom.com/t/sonoff-diy-mini-r2/42272/13)

---

<div class="post-metadata">

**Author:** ![Pti\_Nico](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pti_nico/32/273_2.png) [@Pti\_Nico](https://community.gladysassistant.com/u/Pti_Nico)\
**Post date:** [January 16, 2021, 5:30pm UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/8 "2021-01-16T17:30:07Z")

</div>

It may be possible to control the modules without using the cloud or flashing Tasmota:  
[https://sonoff.tech/product-tutorials/diy-mode-to-control-the-sonoff-device](https://sonoff.tech/product-tutorials/diy-mode-to-control-the-sonoff-device)

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [January 17, 2021, 7:49am UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/9 "2021-01-17T07:49:44Z")

</div>

Yes, with a Rest API on the local network.

---

<div class="post-metadata">

**Author:** ![Pti\_Nico](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pti_nico/32/273_2.png) [@Pti\_Nico](https://community.gladysassistant.com/u/Pti_Nico)\
**Post date:** [January 17, 2021, 9:14am UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/10 "2021-01-17T09:14:42Z")

</div>

So, it’s less cool for status updates, you constantly have to poll…

@AlexTrovato, by the way, any thoughts on my question earlier about multi-channel devices?

---

<div class="post-metadata">

**Author:** ![Goulby](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/goulby/32/6494_2.png) [@Goulby](https://community.gladysassistant.com/u/Goulby)\
**Post date:** [January 17, 2021, 11:20am UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/11 "2021-01-17T11:20:04Z")

</div>

@Pti_Nico: For me, it will take 4 devices

If I understand how Gladys works, a device is linked to a room. Except that one could imagine that the 4 controlled devices are in different rooms.

---

<div class="post-metadata">

**Author:** ![Pti\_Nico](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pti_nico/32/273_2.png) [@Pti\_Nico](https://community.gladysassistant.com/u/Pti_Nico)\
**Post date:** [January 17, 2021, 4:19pm UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/12 "2021-01-17T16:19:23Z")

</div>

So, a device can only have one feature of each type…

---

<div class="post-metadata">

**Author:** ![adrien-cardinale](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/adrien-cardinale/32/6465_2.png) [@adrien-cardinale](https://community.gladysassistant.com/u/adrien-cardinale)\
**Post date:** [January 17, 2021, 6:31pm UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/13 "2021-01-17T18:31:18Z")

</div>

Yes, I will keep you informed. Will it be in the next Gladys update?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 18, 2021, 8:50am UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/14 "2021-01-18T08:50:49Z")

</div>

> [@Pti\_Nico](#):
>
> Should we create 4 devices with 1 «&nbsp;Power&nbsp;» feature or 1 device with 4 «&nbsp;Power&nbsp;» features?

In theory, we should have one device with 4 features, but for now, we haven’t solved the problem of «&nbsp;if these 4 features are in 4 different rooms,&nbsp;» which we want to solve with virtual devices. See:  
[https://community.gladysassistant.com/t/pouvoir-modifier-les-pieces-des-divers-features-composant-un-device-avec-multiples-relais/5935/17?u=pierre-gilles](https://community.gladysassistant.com/t/pouvoir-modifier-les-pieces-des-divers-features-composant-un-device-avec-multiples-relais/5935/17?u=pierre-gilles)

So it’s up to you to decide if this is blocking for now. If so, we can start with a first approach «&nbsp;4 devices with 1 feature&nbsp;» and migrate to the other as soon as the virtual device topic has progressed. If it’s not so serious in the meantime, you can go straight to the approach «&nbsp;1 device with 4 features.&nbsp;»

What do you think?

---

<div class="post-metadata">

**Author:** ![Pti\_Nico](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pti_nico/32/273_2.png) [@Pti\_Nico](https://community.gladysassistant.com/u/Pti_Nico)\
**Post date:** [January 18, 2021, 6:00pm UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/15 "2021-01-18T18:00:21Z")

</div>

I agree that a device is a physical apparatus and can therefore have 4 features of the same type.  
But if we consider a device as the apparatus that is controlled, then it changes the game, as the 4 features can be in different rooms and therefore we need 4 devices.

The idea of virtual devices would allow managing this case (1 physical device and 4 virtual ones each associated with a feature).

For information, I tried to create a device with 4 features of the same type and I encountered a problem with the «&nbsp;getDeviceFeature&nbsp;» function (for polling) which only returns the first feature of a type for a device.

For the eWeLink service, I opted for 1 device per feature of the same type.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 18, 2021, 6:47pm UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/16 "2021-01-18T18:47:06Z")

</div>

> [@Pti\_Nico](#):
>
> I encountered a problem with the «&nbsp;getDeviceFeature&nbsp;» function (for polling) which only returns the first feature of a type for a device.

Don’t use the function in your case, it’s a function that does a line anyway ^^

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [January 23, 2021, 8:40am UTC](https://community.gladysassistant.com/t/retour-module-ewelink/6014/17 "2021-01-23T08:40:09Z")

</div>

With a bit of delay, in my opinion, we should not take on the responsibility of creating 4 devices from a single one, this will lead to confusion.
