Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EweLink connectivity issues Node-Red on W10 #152

Open
pmh1947 opened this issue Aug 15, 2022 · 1 comment
Open

EweLink connectivity issues Node-Red on W10 #152

pmh1947 opened this issue Aug 15, 2022 · 1 comment

Comments

@pmh1947
Copy link

pmh1947 commented Aug 15, 2022

o] Node-RED version: v3.0.2
14 Aug 15:26:37 - [info] Node.js version: v16.16.0
14 Aug 15:26:37 - [info] Windows 10.0.19043 x64 LE

I succeeded after hours of frustration of installing the Node node-red-contrib-ewelink 2.0.0 by installing and installing and running git as outlined in another thread that I found on here. Is this a prerequisite or was I just lucky?

After inputting the EweLink credentials via the Devices Node it will now connect and get an immediate response with details of all Sonoff Devices on my Account. However after the first response the Flow sometimes becomes unresponsive and I cannot make changes or force it to connect again.
The console gives me a message relating to websocket 'not connected' or something similar.

If I restart Node-red it works for a few times (Neither consistent number of times or a fixed time) and then consistent Authentication failed 406 messages on a regular basis.

Any ideas please or suggestions?

I am also running an older version of Node-red on a Pi4 which appears to be rock solid and was hoping to run the upgraded version as the graphical editing is so much better!

I had previously posted this in an old thread, but I suspect it raises some new issues and is therefore appropriate to post as a 'new' issue.

@pmh1947
Copy link
Author

pmh1947 commented Aug 15, 2022

Partly resolved!

It appears that accessing from 2 independent Node-Red flows - running on separate machines in separate countries - the Ewelink host is allowing access from the second machine and then dropping the connection. . It is going to take some experimenting when I have local access to the 2 machines next to each other - using remote access the screen resolution makes detailed editing of Node-Red via TeamViewer just visually hard work.

The Android App seems to work ok whilst Node-red is running on one machine.

Has anybody come up with some simple solution? Scheduled access does not appear a good solution as some events are 'event triggered'. Maybe one Pi designated as master with it relaying info to the second?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant