# Limit on ewelink event listener?

**URL:** <https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995>\
**Category:** General\
**Created:** [31 March 2020 19:45 UTC](https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995 "2020-03-31T19:45:07Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [31 March 2020 19:45 UTC](https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995/1 "2020-03-31T19:45:07Z")

</div>

I am using nodered to create reports for usage od my ewelink/sonoff devices in my home.  
In my house I have majority light switches from Sonoff.  
I am using Node-res to listen to all changes in switcher and then I am streaming this data to Azure and than I amcreating reports with Power BI.  
Everything is working fine with up to 4 event listeners. When I add fifth and when I deploy it, randomly one of the five listeners is disconnected. Every time i force deploy another rnadomly selected event listener is disconnected.  
I was thinking that maybe there is limit for only up to 4 devices, but it makes no sense that this limit is so low.  
If anyone has any idea, please let me know. ![Capture](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/f/1f1f21ce97c89463db0b4a63f8908d54d7d69025.jpeg)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [31 March 2020 20:20 UTC](https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995/2 "2020-03-31T20:20:20Z")

</div>

I think you will need to contact the author of the node to check .

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [31 March 2020 23:10 UTC](https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995/3 "2020-03-31T23:10:53Z")

</div>

This is a known issue,. As a work around you can sign up to another ewelink account and share all the devices to that account. That will get you another 4 listeners. Could you not use one listener for all, as you could filter in the function for the deviceID

---

<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:** [4 April 2020 06:22 UTC](https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995/4 "2020-04-04T06:22:16Z")

</div>

Hello,  
I just tried with another account. So i create new credentials. For particular device I shared it with newly created accont, than in the node red created new listener, assign it new credentials, but i still get randomly different devices disconnected.  
Any idea?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [4 April 2020 07:19 UTC](https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995/5 "2020-04-04T07:19:52Z")

</div>

That's odd, i have 12 ewellink device nodes running using 2 accounts, as limit is 6. All working for me.

AS i said before would it not be best to us just one listener, and use the following function block or a switch to route the message using the deviceid.

 ![Screenshot_20200404-082929](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/d/0d76f8263ded4be619a9baaa25f51270c68030b1.png)

---

<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:** [4 April 2020 12:01 UTC](https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995/6 "2020-04-04T12:01:13Z")

</div>

Hm, I don't get it, what can be the reason, but in my case, it doesn't matter, whether i use additional ewelin credentials, one of the seved devices is dicsonnected.  
I am looking to your flow, but to be honest, i don't understand it. Can you please zoom out.  
Every listener needs to have specific device id, therefore i don't understand how can I use only one listener for more devices.  
Thank you in advance!

---

<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:** [4 April 2020 13:49 UTC](https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995/7 "2020-04-04T13:49:28Z")

</div>

hey E1cid,  
Thank you very much. I figured it out. I have one generic listener, withouth deviceId specified and than i am just using switch as you mentioned. Exactly what I needed. Thank you very much!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 April 2020 13:49 UTC](https://discourse.nodered.org/t/limit-on-ewelink-event-listener/23995/8 "2020-04-18T13:49:29Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
