Code Monkey home page Code Monkey logo

node-red-contrib-ewelink's Introduction

node-red-contrib-ewelink's People

Contributors

ckhmer1 avatar jmc265 avatar ottoszika avatar peyanski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-red-contrib-ewelink's Issues

Country code for South Africa

Good Day

Please could you assist me ... I live in South Africa and cant seem to find the correct code for the "country" setting

I have tried the following:

  • za
  • zar
  • sa

"RequestError: Error: getaddrinfo ENOTFOUND za-api.coolkit.cc za-api.coolkit.cc:8080"

Error 401/Authentication Error

Hello there,
Thank you for your efforts to accomplish this node.
I have configured my device (WDYK model: ZJSB9-80 J) a smart circuit breaker that is working perfectly with EWELINK app.
However when I define the device in node red I receive "authentication error" most of the time.
I tried to switch it on through PowerStateOut node and I get a result as described below but the switch still OFF.
{
"status": "ok",
"state": "on"
}
Any thoughts?

Thank you

Multiple nodes for one configuration node?

I understand that there is no way to use multiple connections (so app and node-red nodes won't work together) - so I created a new email account, shared the devices with that email account, and now this email account is dedicated to NodeRed. However, it seems that I cannot even use 2 node-red-contrib-ewelink nodes. One says connected, the other has its connection failing (even though they are both using the same ewelink credentials configuration. So do I need to create a different email address for each node? There has to be a better way...

Does this still work?

Hi trying to set this up after recent changes mean eWelink does not work with IFTTT unless you pay. I think this is IFTTT forcing ITEAD to pay.

So look at this add on - I want to use Bigtimer to turn an SLAMPER on / off dawn to dusk.

No recent updates to this code I wondered if the new Authentication system used by ITEAD is supported?

I enter by credentials and region but nothing works tried eu, uk, UK, EU

I think eWelink have now moved their Auth to a new provider and wanted to check if anyone has this working. Ideally in the UK

[new feature] Enable setting deviceID dynamically

Hi, first of all thaks a bunch for providing this really promising plugin :)
It will definitely help people have their first foray into home automation with Node Red :)

As I'm a lazy person, I would like to be able to get everything fully dynamic, and just use one single output node to control my devices.

Would it be possible to override the Device Id option with msg.deviceID ? It could be done either literally by specifying {{msg.deviceId}} in the config panel, or hidden in the node constructor somewhere.

I've tried both with no success, this is above my current node.js skills

Thanks !

Nicolas

Password change by itself / Status: disconnected

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\n<title>503 Service Temporarily Unavailable</title>\r\n<body bgcolor="white">\r\n

503 Service Temporarily Unavailable

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

Performance...

Hi I am using ewelink-generic-device node to control a garage door. The problem I am having is the response time performance - its taking in the region of 4-6 seconds for the node to execute which is too slow for my use case. If I perform the action in the eWeLink app, the response is pretty much instantaneous. Would be great to overcome this issue if possible.

Tim

Losing connection after system reboot

Dear,

firstly, thanks a lot for your work! I am so happy that I am able to integrate my ewelink devices with node-red.

There seems to be only one issue that I am having, and that is that the ewelink connection gets lost when I reboot my Raspberry Pi (on which node-red is running). To re-establish the connection, I need to open node-red, edit the config of the ewelink-node and click update on the authentication information (no need to rewrite anything). Then it node-red connects with ewelink again.

Any way to circumvent this issue?

Kind regards,

Authentication error since yesterday

Hi

Since yesterday 10h, I have authentication error....nothing has changed on my side so I am wondering if sonoff has changed something on server side??

Does not reconnect once connection is briefly interrupted

Hi and thank you kindly for your work.
After restarting my router - which briefly interrupted my Internet connection - I get the following error from Node Red:
UnhandledPromiseRejectionWarning: Error: Can't send data because WebSocket is not opened. at exports.throwIf (/root/.node-red/node_modules/websocket-as-promised/dist/index.js:3470:11) at WebSocketAsPromised.send (/root/.node-red/node_modules/websocket-as-promised/dist/index.js:554:7) at Timeout.setInterval [as _onTimeout] (/root/.node-red/node_modules/ewelink-api/mixins/websocket/openWebSocketMixin.js:38:17) at ontimeout (timers.js:436:11) at tryOnTimeout (timers.js:300:5) at listOnTimeout (timers.js:263:5) at Timer.processTimers (timers.js:223:10) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) e:18884) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
It seems that once the connection is lost, websocket does not get reopened and node-red-contrib-ewelink becomes unusable until a full restart of Node-Red.

It is possible to specify the deviceId only in the node config

Hi,
first of all, thanks for your great job.
I'd like to specify the deviceId inside the message sent to the node and not always inside the node itself, like msg.deviceId= .....
It should be a simple fix, in ewelink-connect.js, just replace the row:

evaluatedParams.unshift(deviceId);

with something following row:

evaluatedParams.unshift(deviceId || msg.deviceId ? msg.deviceId.trim() : '');

In this way it the deviceId is not specified inside the node configuration, it will use the one specified inside the message.
Do you agree with me?

Thanks
Claudio

Params values don't change/update even though they should

They values get updated only when I have eWeLink app opened on my phone.

  • If I close eWeLink app on the phone then after a while the eWeLink node stops updating params
    values and they stay the same.
  • This occurs on both original account and on shared one(although if you open it on original
    account you get an error => only 1 instance can be connected at once if I understand correctly?).
  • I saw this issue being fixed but it is still happening to me, any explanation or answer will be much
    appreciated. ( #66 by ottoszika was closed on Dec 13, 2019)

Not passing response object

Hi and once again thank you for your efforts

I am raising this issue as the device nodes does not pass the response object from the http in node to the http response node. This causes a error in the http response node. It would be better if the ewelink device node forwarded on all msg elements not just the payload.

Causes Node Red to lock up and fail.

This is a very nice contrib node, thank you. I use it to control lights, heat, water heater etc... at our cottage. It has however (I believe) a serious issue that causes my entire node-red app to eventually lock up.

It works marvelously so long as it has exclusive and unfettered access to the eWelink account. When the eWelink account is logged into from another source (like a cell phone on the way to the cottage to turn the lights on) it starts to behave badly.

When this occurs the nodes turn to yellow (connecting) and stay that way. Eventually, the computer CPU usage goes up 15 or 20 times normal and RAM usage is maxed out, eventually causing node-red to lock up. Since it is remote I rely on access via VNC and that will not work so I have to go to the device and power cycle it.

I have caught node-red-log messages when the problem starts to escalate that indicate the errors causing problems have to do with ewelink and mentions things about unmet promises.

Would you please look at node-red-contrib-ewelink behavior when the eWelink account is accessed from an alternate source?

EDIT: It seems issue #84 is very similar to what I am experiencing.
EDIT: Otto I just noticed a reply you provided back in December about "Unfortunately multiple sessions are not supported. This was the reason of implementing a global connection. " I suspect this is part of (if not, the) problem. If this cannot be remedied (and I'm hoping it can be) then some work should be probably be done to prevent ewelink from driving node-red into a melt down due to the unmet promises issue. I'd really hate to have to remove the ewelink nodes.
Thanks
st

Can't deploy new nodes, can't remove node-red-contrib-ewelink

I attempted to set up my ewelink credentials, but apparently didn't get something right. Now that I have deleted the credentials, I can't do anything.

  • On node-red restart, I'm getting:
    2 Apr 23:47:23 - [warn] [ewelink-credentials] SyntaxError: Unexpected identifier
  • I am unable to remove the package via the Manage Pallete menu, it tells me to check logs, but not sure which log
  • Even after deleting all nodes, when I click on Deploy, I get "Flows stopped due to missing node types. Check logs for details."
    Using node v6.17.1, npm 3.10.10

Sonoff RF sensor name on event listener response

Hi, i was wondering if there is something it could be done to add the sensor name to the ewelink response.
In the response i currently get this:

{
    "action": "update",
    "deviceid": "",
    "apikey": "",
    "userAgent": "device",
    "ts": 0,
    "params": {
        "cmd": "trigger",
        "rfTrig2": "2020-02-21T21:27:40.000Z"
    },
    "from": "device"
}

Instead of the sensor name i get a rFTringX where X is the index number of the sensor.
If i want to retrieve the name i have to get the device object and check tags.zyx_info[X].name
Can be done something about it?

eWeLink Credentials not numeric?

long ago creating eWeLink Credentials as numeric phone number. test a email adress, can connect node-red.. not my account with a numeric number.

POWR2 - instantaneous Voltage, Current & Power values.

Hello, using the eWeLink app. it is possible to view the instantaneous values of the Voltage, Current & Power, from the POWR2.
The accumulated Energy Consumption kWh (power usage over time) is useful, the instantaneous values would be additionally useful, and in someways more useful, on NodeRed, where decisions could be made on, say overcurrent monitoring, Voltage monitoring (voltage drops causing failure) or power monitoring for load shedding.
I feel sure many would find this useful & and it is available in Tasmota :
Message | Unit | Description

TotalStartTime | Date | DateTime of calculation for Total
Total | kWh | Total Energy usage including Today
Yesterday | kWh | Total Energy usage between 00:00 and 24:00 yesterday
Today | kWh | Total Energy usage today from 00:00 until now
Period | Wh | Energy usage between previous message and now
Power | W | Current effective power load
ApparentPower | W | Power load on the cable = sqrt(Power^2 + ReactivePower^2)
ReactivePower | W | Reactive load
Factor | ย  | The ratio of the real power flowing to the load to the apparent power in the circuit
Voltage | V | Current line voltage
Current | A | Current line current

Is it possible for you to implement this feature?

So that out of the box Sonoff POWR2 can be used without re-flashing.
That is the value of your NodeRed contribution no re-flashing!

Thank you for what you have done it is great so far.

๐Ÿ˜Ž๐Ÿ‘

error: 404 msg: "Authentication error"

When I am trying to enter in the devices my credentials I need the enter email. on my ewelink account I have only region, phone number and password. I dont have an email address.
Where do I need to add on ewelink account the email?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.