Closed jmc265 closed 3 years ago
@ottoszika Check pls, need this so much!
I have added a new commit which changes the way we use API. It seems to make it more reliable.
@jmc265 hey, maybe you can tell me, how can I use your build in NodeRED? PS: upload in tgz directly into NodeRED throws empty log error, for some reason...
same for me @rawen554... really need this fixed! @jmc265 please explain how to use your build - would be so helpful until @ottoszika does the necessary...
im have the same problem as the guys above. someone HELP please @ottoszika @jmc265
After changes of @jmc265 I can connect with ewelink account, but I have debug message "TypeError: Cannot read property 'apply' of undefined" when I try write state to my device.
same issue as @maciejgaik
Hi @ottoszika and @jmc265 , the node red "power state" node of my S26 ewelink plug send a error message: "RequestError: Error: getaddrinfo ENOTFOUND la la:443" and it is not possible to operate the S26 from node red.
Humm I am not sure about the apply of undefined. And also I have been using my code changes for a few days and they don't seem stable. Some times the plugs will turn on and off fine, and then other times I am getting Authentication errors.... I think there is something larger wrong here with ewelink.
Authentication errors appeared from time to time even without your changes. That's nothing new.
Could you accept the pull request so we can get at it? Ill then test as many nodes / calls as I can. Thanks!
I am a rookie !!! Tell me how to accept the pull request and I will do it
Updated to node-red-contrib-ewelink 2.0.0 and power state change now works fine. (I had to reboot a couple of times and reset the login credeintial). Thanks!
Updated version tested and it works on a S26 plug. Thanks to all the guys involved in this development !!!!
Wonderful - thank you all very much!
As per the issues https://github.com/ottoszika/node-red-contrib-ewelink/issues/102 and https://github.com/ottoszika/node-red-contrib-ewelink/issues/101 the dependency on ewelink-api needs to be upgraded because of the issues in the source repo here https://github.com/skydiver/ewelink-api/issues/115
This represents a change of 2 major versions for this library. The only breaking change I came across was the fact that the connection object no longer has a login() method. That is why I have made a code change in this library. However, I have only tested this with the power-state-write node as it is the only one that I use in my setup.