# Node-red-contrib-ewelink

**URL:** <https://discourse.nodered.org/t/node-red-contrib-ewelink/19195>\
**Category:** General\
**Created:** [15 December 2019 18:57 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195 "2019-12-15T18:57:14Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoseGodinho](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@JoseGodinho](https://discourse.nodered.org/u/JoseGodinho)\
**Post date:** [15 December 2019 18:57 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/1 "2019-12-15T18:57:14Z")

</div>

Hello

After installing the above mentioned node, and feeding with the credentials I get the Following error message

"RequestError: Error: getaddrinfo ENOTFOUND europe-api.coolkit.cc"

could be the region? if so how I may find the region i am registered

Thank you

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 December 2019 20:27 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/2 "2019-12-15T20:27:52Z")

</div>

Hi @JoseGodinho

that isn't a node I've seen any discussion of on the forum - you may need to contact its maintainer directly for help.

---

<div class="post-metadata">

**Author:** ![ottoszika](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ottoszika/32/15247_2.png) [@ottoszika](https://discourse.nodered.org/u/ottoszika)\
**Post date:** [17 December 2019 22:44 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/3 "2019-12-17T22:44:55Z")

</div>

Hello @JoseGodinho,

There was an issue on how the connection was persisted and once the configuration was made it remained in the memory.  
The issue was fixed in v1.0.2. You can check it out now 🙂

For Europe use "eu" region code.  
I will document this in the next days.

Best regards,  
Otto

---

<div class="post-metadata">

**Author:** ![JoseGodinho](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@JoseGodinho](https://discourse.nodered.org/u/JoseGodinho)\
**Post date:** [18 December 2019 15:23 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/4 "2019-12-18T15:23:18Z")

</div>

thank you, its working now!

---

<div class="post-metadata">

**Author:** ![skoyles](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@skoyles](https://discourse.nodered.org/u/skoyles)\
**Post date:** [20 December 2019 15:31 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/5 "2019-12-20T15:31:03Z")

</div>

anyone aware of additional documentation on use of this node besides [https://ottoszika.github.io/node-red-contrib-ewelink/#/](https://ottoszika.github.io/node-red-contrib-ewelink/#/) . ??

Disclosure: I'm a total noob and learning as I go.  
Many thanks

---

<div class="post-metadata">

**Author:** ![peterah](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/peterah/32/20551_2.png) [@peterah](https://discourse.nodered.org/u/peterah)\
**Post date:** [26 April 2020 13:06 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/6 "2020-04-26T13:06:50Z")

</div>

I am totally new to this ewelink library and am lost on how to create a flow to control a single sonoff switch. I have logged in with my credentials and have used the devices node to get a list of my devices but now I am lost. Does anyone have any sample flows that I can look at to see how to do this?

Be gentle - have been using node-red for 1 week only 🙂

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [26 April 2020 21:02 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/7 "2020-04-26T21:02:42Z")

</div>

Have you read [documentation](https://ottoszika.github.io/node-red-contrib-ewelink/#/nodes)?

---

<div class="post-metadata">

**Author:** ![peterah](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/peterah/32/20551_2.png) [@peterah](https://discourse.nodered.org/u/peterah)\
**Post date:** [27 April 2020 05:36 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/8 "2020-04-27T05:36:59Z")

</div>

Yes, of course I have read the documentation. That was the first thing I did.  
I have managed to get a list of all my devices using the Devices node. I can then control one device using the Power State Write node. However, as soon as I add another node and enter my ewelink credentials, the first node is unable to communicate - I get an authentication error on it. Clearly there must be a way to add more than one ewelink node using the same credentials? No mention in the documentation of credentials or this problem.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 April 2020 06:56 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/9 "2020-04-27T06:56:54Z")

</div>

> [@peterah](#):
>
> However, as soon as I add another node and enter my ewelink credentials, the first node is unable to communicate

Are you creating a 2nd config instead of reusing the first config that worked on your first node?

As I don't know you setup I can only assume (based on your statement "managed to get a list of **all my devices** using the Devices node") that all of your devices are under 1 account, so I would say you only need 1 config (and thus only enter credentials once)

---

<div class="post-metadata">

**Author:** ![peterah](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/peterah/32/20551_2.png) [@peterah](https://discourse.nodered.org/u/peterah)\
**Post date:** [27 April 2020 10:49 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/10 "2020-04-27T10:49:23Z")

</div>

Thanks for the reply. I agree that I thought I would only need 1 account config. However after entering my credentials into the first node, all is well. When I then add another ewelink node for another device and need to select credentials, I choose the previously entered credentials. When I then save the setup the first node stops communicating and the second starts communicating. I don't understand this behaviour.

Might just bite the bullet and flash all the devices with tasmota.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [27 April 2020 11:16 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/11 "2020-04-27T11:16:03Z")

</div>

If you believe you are doing everything right & the node is misbehaving, it would be beneficial to the whole community if the problem was reported and fixed for everyone to benefit.

I would suggest you [raise an issue](https://github.com/ottoszika/node-red-contrib-ewelink/issues?q=is%3Aissue+is%3Aclosed) on the repo and link the issue back to this forum thread.

The author seems to be responding to issues in a fairly timely fashion.

---

<div class="post-metadata">

**Author:** ![peterah](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/peterah/32/20551_2.png) [@peterah](https://discourse.nodered.org/u/peterah)\
**Post date:** [27 April 2020 12:37 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/12 "2020-04-27T12:37:51Z")

</div>

Thanks for the reply. After much frustration I have managed to get all my nodes working using this library. I had to change my login credential region to EU for some inexplicable reason. So if anyone else is having hassles, try a different region setting: the choices are us, eu, as, cn.

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [27 April 2020 15:30 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/13 "2020-04-27T15:30:35Z")

</div>

> [@peterah](#):
>
> I had to change my login credential region to EU for some inexplicable reason.

Probably something to do with the structure of their [server network](https://www.ewelink.cc/en/lang/). It can't help that you are running a NR node wrapped around a node.js library talking to a remote API. All three seem to have had issues raised involving credentials. Authentication is handled differently in China than the rest of the world (discussion of politics omitted) and inter-server communication is restricted in certain ways. You can be happy you have a fix and hope it stays fixed.

---

<div class="post-metadata">

**Author:** ![demokedes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/demokedes/32/19082_2.png) [@demokedes](https://discourse.nodered.org/u/demokedes)\
**Post date:** [20 July 2020 20:46 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink/19195/14 "2020-07-20T20:46:54Z")

</div>

Hello,  
I am using node-red-contrib-ewelink.  
Few days ago, I received new zigbee ewelink sensors (temperature/humidity, motion, wifi/switch).  
From what I see, current node is not supporting that kind of devices.  
When I try to get temperature/humidity from the sensor, I get this error: 7/20/2020, 10:42:46 PMnode: 8a293b4a.ef64a8  
msg.payload : Object  
object  
error: 500  
msg: "Can't read sensor data from device"

Somehow I think I can get over through "devices" node, but it is very complicated.
