bkorda / node-red-contrib-zway Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Using complex passwords does not work with this node package.
Example of password(fully functional in Z-way admin page): tV5"uP5(wI8$qB3#zE4"eZ3+fS6"sQ7%
** Hardware / Software **
- raspberry 3 model b rev 1.2
** Describe issue **
Hi, Making good use of your nodes for node-red to zway, however..
Now I suddenly get "ECONNRESET" errors in node-red from time to time and it seems like zway server cannot keep up.
Do you know if there is some kind of limit I'm hitting maybe ? I have around 137 z-wave nodes and quite some flows in node-red.
Thanks for your help.
Greetings,
Vincent.
Hi,
Just upgraded to zway 3.2.0 and the node is no longer working correctly.
Data is sent out from node-red to Zway, no problems there but,
No data is received from Zway to node-red node anymore.
Can you investigate ?
After selecting Thermostat option in node "In" Node-red is crashing with following error message
19 Feb 22:33:07 - [red] Uncaught Exception:
19 Feb 22:33:07 - ReferenceError: payload is not defined
at zWayItemIn.formatHomeKit (C:\Users\user.node-red\node_modules\node-red-contrib-zway\nodes\in.js:169:37)
at zWayItemIn.sendStateHomekitOnly (C:\Users\user.node-red\node_modules\node-red-contrib-zway\nodes\in.js:132:22)
at Timeout._onTimeout (C:\Users\user.node-red\node_modules\node-red-contrib-zway\nodes\in.js:45:34)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
The same behaviour on Linux inside docker and outside docker as well.
Problem is that instead of "characteristic" codeword "payload" is used, please update. I will try to prepare pull request with fix
the readings of volt amper and watt values do not come with innode. Instead one must create a get node and read it regularly, for example 1/s. It would be preferable to be able to get those values through the in node.
I have no more ideas.
PS. No problem with sending value to other class the same device, e.g Dimmer 1.
Great nodes! Really like!
In NodeRed topic is often used to keep track of devcices, in all inject nodes for example topic can be set. It would be great if I could set the topic in the nodes or that it lets the topic property of msg pass through the node. Now it deletes the topic property.
Regards
I'm using a Nodon Soft remote. The 4 buttons work and the messages are transferred to the Node-Red node, but only the first press of a button. So if I click button 1 and after a while I click button 1 again the second click is not visible in my debug window. If I however click another button the node sends the corresponding message. If I look at my Zway screen I can see the time of the last click being updated in the elements window, so the Zwave signal does arrive at the Zway controller, but the node doesn't do anything. Also if I double click or hold the previous button the node reacts to the first instance of this event, but not a second time.
I'm using the State output of the node, not the homekit.
** Hardware / Software **
- raspberry 4
** Describe issue **
Hi, much like the issue I raised on node-red-contrib-zigbee2mqtt, this repo also has an old version of "multiple-select" embedded in the static/
folder that breaks the new monaco editor (See here)
The issue is (i believe) specific to multiple-select V1.4.2 and below - see this issue: wenzhixin/multiple-select#483
Could you please update to V1.5.2 as it does not cause the editor to break.
Hi,
I see my docker container with node-red crashes sometimes.
I think it is caused by the zway module, and most likely, when a device is not reachable.
Here is the error from docker container, if you need more info, just let me know:
** Describe issue **
crashes with "TypeError: Cannot read property 'title' of undefined" on last +1 element of list
** Your flow here **
[
{
"id": "5a74f90a824af681",
"type": "zway-output",
"z": "0dac92a75b2f75fc",
"name": "",
"server": "5b24a085ec576130",
"device": {
"length": 0,
"prevObject": {
"length": 0,
"prevObject": {
"0": {
"location": {
"ancestorOrigins": {},
"href": "http://192.168.4.105:1880/#flow/0dac92a75b2f75fc",
"origin": "http://192.168.4.105:1880",
"protocol": "http:",
"host": "192.168.4.105:1880",
"hostname": "192.168.4.105",
"port": "1880",
"pathname": "/",
"search": "",
"hash": "#flow/0dac92a75b2f75fc"
},
"jQuery35103621877289210641": {
"events": {
"mouseup": [
{
"type": "mouseup",
"origType": "mouseup",
"guid": 3,
"namespace": ""
}
],
"click": [
{
"type": "click",
"origType": "click",
"data": null,
"guid": 4246,
"namespace": ""
},
{
"type": "click",
"origType": "click",
"data": null,
"guid": 4259,
"namespace": ""
},
{
"type": "click",
"origType": "click",
"data": null,
"guid": 4499,
"namespace": ""
}
]
},
"focusin": 3
}
},
"length": 1
}
}
},
"device_name": "",
"command": "on",
"commandType": "zway_cmd",
"payload": "payload",
"payloadType": "msg",
"x": 520,
"y": 260,
"wires": []
},
{
"id": "5b24a085ec576130",
"type": "zway-server",
"name": "Zway-server",
"ip": "192.168.4.105",
"port": "80",
"authToken": "_____________________________________"
}
]
** Screens / Logs **
26 Oct 11:39:01 - [info] [zway-server:Zway-server] discoverDevices: Using cached devices
TypeError: Cannot read property 'title' of undefined
at /home/pi/.node-red/node_modules/node-red-contrib-zway/nodes/server.js:126:53
at ServerNode.discoverDevices (/home/pi/.node-red/node_modules/node-red-contrib-zway/nodes/server.js:92:17)
at ServerNode.getItemsList (/home/pi/.node-red/node_modules/node-red-contrib-zway/nodes/server.js:120:18)
at /home/pi/.node-red/node_modules/node-red-contrib-zway/zway.js:25:24
at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
at next (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/usr/lib/node_modules/node-red/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/usr/lib/node_modules/node-red/node_modules/express/lib/router/layer.js:95:5)
at /usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:284:15
at Function.process_params (/usr/lib/node_modules/node-red/node_modules/express/lib/router/index.js:346:12)
I have checked the response from ZWay, and it contains a list of devices. They all have a metrics
object including a title
prop. I added some console.log statements, and it turns out that the for .. in
construct seems to add an extra element, where the last element is a function! I also tried replacing with a plain for loop, and then that extra object is not included.
There are diffferent locations in server.js that iterates this way. Below is some code and corresponding log output from another part of the code. First, using the for .. in
:
And then the plain old for loop:
I also tried a more modern .forEach
approach, but then the server.js code seemed to not be executed at all.
** Hardware / Software **
- raspberry 4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.