ottoszika / node-red-contrib-ewelink

NodeRED nodes for eWeLink smart devices
https://ottoszika.github.io/node-red-contrib-ewelink
MIT License
48 stars 28 forks source link

Password change by itself / Status: disconnected #74

Open sdalee opened 4 years ago

sdalee commented 4 years ago

Hi,

This is a marvelous plugin. I have been installed it this day, but I have found two issues. First: I will have to set the password at eWeLink Credentials window, almost every time if I change something in a node because it always changes something by itself. eWeLink Credentials field often shows some kinds of code (eg.: 86356054.2fcbbb) instead of e-mail | region. Second: I add your every nodes and some nodes especially temperature, humidity, temperature/humidity are disconnected, and they sent the following msg: StatusCodeError: 503 - "\r\n503 Service Temporarily Unavailable\r\n<body bgcolor=\"white\">\r\n

503 Service Temporarily Unavailable

\r\n
openresty
\r\n\r\n\r\n"

ottoszika commented 4 years ago

Hello @sdalee,

The first issue shouldn't be a blocking one. Your password is there, but the label cannot be retrieved in edit mode because they are stored as credentials beside your flow (this prevents you from accidentally sharing your flow with your credentials), so an ID is shown up. Do you get an error after deploying your nodes?

The second issue seems to be a problem with the API itself. I have some questions in order to identify the problem:

  1. Can you provide me your eWeLink region?
  2. Did you get this error on other nodes?
  3. Is this a temporary error? (Is there any working scenario on the nodes you mentioned)

Thanks, Otto

sdalee commented 4 years ago

Hello Otto,

First issue: I haven't added nodes to node-red and it has worked well since I wrote this post.

Second: After every deployment, other and other nodes were disconnected status. I have made 2 screenshots. The time difference was 10 sec between two deployments. If I took another screenshot, I would get the third result. I use EU region,

sonoff-nodered1

sonoff-nodered2

ndupont-net commented 4 years ago

Hi, I've experienced a similat behavior in my flow, when I add a eWeLink node, the credentials also show the node id (like your "86356054.2fcbbb") instead of the e-mail account, and deploying at that moment will disconnect all the eWeLink nodes. What works for me is to edit the credentials, just open de box, validate, and deploy.

sdalee commented 4 years ago

I havan't change and deploy node-red flows for two days. My actual screenshot (after I tried to inject with any inject node (timestamp/on/off node):

sonoff-nodered3

As you can see on the picture, if I injected a "connected" eWeLink node, the debug node gets the following error message: {"error":401,"msg":"Authentication error"} if I injected a "disconnected" eWeLink node, the debug node gets nothing.

I hope this helps you with troubleshooting.

ottoszika commented 4 years ago

Hello guys,

Are you authenticated on eWeLink mobile application? Unfortunately multiple sessions are not supported. This was the reason of implementing a global connection. If you are not authenticated on other eWeLink applications, please let me know. On the other hand, the 503 error seems to be a server-side problem (I can't reproduce this).

E1cid commented 4 years ago

After reading this issue i believe it is the same as the one i raised a minute ago. There seems to be a limit of six devices. Create more accounts to add more devices.

sdalee commented 4 years ago

Hello guys,

Are you authenticated on eWeLink mobile application? Unfortunately multiple sessions are not supported. This was the reason of implementing a global connection. If you are not authenticated on other eWeLink applications, please let me know. On the other hand, the 503 error seems to be a server-side problem (I can't reproduce this).

Yes, I use the app. What do I need to do with the app, that it doesn't disturb the operation of your nodes?

tyeth commented 4 years ago

Create second account in ewelink, share all devices with that account then use that for NodeRed. Also use less ewelink nodes to avoid issues

ojeysky commented 3 years ago

My ewelink nodes are all indicating connected status on node-red but every changes on each of the nodes are not taking effect on the SONOFF devices, what could be the way to fix this? I have created a separate account for ewlink on node-red. However it seem that it only works for just a single node.

tyeth commented 3 years ago

The ewelink api now requires a premium ewelink subscription

On Wed, 28 Oct 2020, 22:06 ojeysky, notifications@github.com wrote:

My ewelink nodes are all indicating connected status on node-red but every changes on each of the nodes are not taking effect on the SONOFF devices, what could be the way to fix this?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ottoszika/node-red-contrib-ewelink/issues/74#issuecomment-718235954, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTBZ4YCZG2AS2TARVA5INDSNCIWBANCNFSM4J6GPR6Q .

E1cid commented 3 years ago

it seems that you can query the api but not action. i.e. i can get/query temps, humidity, and device states, but can not set an action or get device activity.

tyeth commented 3 years ago

I might have overstated the restriction. All I really heard was that to use ifttt.com with ewelink you will now need a premium ewelink subscription and it was hinted at affecting the ewelink api.

Might be finally time to look at alternatives to ewelink like installing esphome or tasmota to update those Sonoff devices

On Thu, 29 Oct 2020, 12:50 E1cid, notifications@github.com wrote:

it seems that you can query the api but not action. i.e. i can get/query temps, humidity, and device states, but can not set an action or get device activity.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ottoszika/node-red-contrib-ewelink/issues/74#issuecomment-718731309, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTBZ46JFQXIXAEVKTB5JGTSNFQJNANCNFSM4J6GPR6Q .

ewidance commented 3 years ago

Or maybe to use the "DIY API MODE" (http://developers.sonoff.tech/sonoff-diy-mode-api-protocol.html ) allowing to leave regular sonoff firmware while having capability to drive it without cloud connection.

Pro:

Cons :