ekarak / node-red-contrib-eibd Goto Github PK
View Code? Open in Web Editor NEWKNX/EIB nodes for node-red
KNX/EIB nodes for node-red
Hi there!
Thanks so much for putting this together - it looks lots of fun!
I am trying to configure a simple "light on" function and I am having issues writing to knx..
I have set up a simple injector with a string payload with the following payload
{ "dstgad": "1/4/10", "dpt": "DPT1", "value": 1 }
topic: write
linked to a knx out node configured to localhost:6720
But every time I run the injection the server drops off with the following error...
12 May 19:56:22 - [info] Started flows
eibdout.onInput, msg={"topic":"write","payload":"{ "dstgad": "1/4/10", "dpt": "DPT1", "value": 1 }","_msgid":"38f413a4.c70bec"}
groupAddrWrite dstgad:1/4/10, value:1, dpt:DPT1
Hit the button and ....
EIBD: successfully connected to localhost:6720
formatAPDU value=1 dpt="DPT1"
sendAPDU: "[0,128,1]"
12 May 19:56:45 - [red] Uncaught Exception:
12 May 19:56:45 - TypeError: Object # has no method 'end'
at Connection.end (/usr/lib/node_modules/node-red-contrib-eibd/node_modules/eibd/lib/connection.js:57:17)
at /usr/lib/node_modules/node-red-contrib-eibd/node_modules/eibd/lib/connection.js:141:10
at afterWrite (_stream_writable.js:278:3)
at _stream_writable.js:267:9
at process._tickCallback (node.js:448:13)
Any ideas?
Thanks
Mark
Line 142 need to remove the extra )
i.e. change from
});
to
};
Is the function to read the state of a group address working?
If i inject the following :
{"dstgad":"8/1/3"}
With topic "read" it does not work. It actually writes a 0 to that address.
So if i'm reading the status of a light that is ON, it sends the status to 0 even though the light is on.
Or am i using the read function wrong?
Thanks for this a real step forward
Initial testing with Weinzierl gateway Tunneling.
Will try a GIRA gateway
// Reading
// Wirte
3. Testing with example or existing group addresses
{ "topic": "knx: write", "payload": { "srcphy": "1.1.100", "dstgad": "5/0/2", "dpt": "DPT1", "value": 0 } }
I get Unsupported dpt[DPT1] inside groupAddrSend of knx node
// General
The read doesn't re-connect if KNX Gateway goes Off then Online.
Thanks again
Lawrence
Hello,
Your eibd node is functioning great! Thank you very much for creating it!
I was wondering if it was possible to create a single consolidated JSON string to send multiple values to eibd.
Now i am injecting several values from different functions separately to the eibd node. Having everything consolidated before sending to eibd would make my flow a bit cleaner and lessen the load on eibd i believe.
Thx in advance.
I noticed that after running node-red for a while, and doing a couple of re-deploys I start getting multiple messages from the EIBD node for each datagram. If I restart node-red completely, it gets back to normal.
Is this a known problem?
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.