Comments (9)
thanks for reply... do so,
from node-red-contrib-knx.
Hi, ozett,
Thank you for response! Your attention to the module is pleasure for us :)
Please, paste your JS code (of function node-red's node, i suppose) here.
And try to explain - how exactly you want to modify it.
I'll try to give you an advice.
from node-red-contrib-knx.
hi, thank for your fast reply,
your module is a pleasure for me..
what i want to do:
i want to build the same diagrams i have from my ESPeasy modules via MQTT comin in to node-red
with my knx-devices.
from node-red-contrib-knx.
but i am not able to build a working flow.. 😟
i only need the temperatur-value from my GA 3/2/11 to feed into the chart-module of the node-red-gui.
i dont know how to get this in a timed interval (may 2 min..) and only the value from the ga of the knx-node. i am unsure, if i need an inject node, and how to build this exactly.
may you can help me out..? 😳
what i have:
the knx-connection is working, i have debug-messages and can feed the msg.payload to a text-node.
from node-red-contrib-knx.
to basic question for experienced user?
sorry,..
from node-red-contrib-knx.
i tried to quirk some code like this in a function, but that did not work out..
var map = {
'3/2/11' : {"nodeid": 5, "value": msg.payload.value},
'2/2/51' : {"nodeid": 5, "cmdclass": 38, "value": msg.payload.value},
'2/2/81': {"nodeid": 8, "instance":1, "value": msg.payload.value},
'2/2/82': {"nodeid": 8, "instance":2, "value": msg.payload.value},
'2/2/90' : {"nodeid": 9, "value": msg.payload.value}
}
switch (msg.topic) {
// or forward them to KNX
//case "knx: read":
case "read":
if (msg.payload.dstgad in map) {
var response = {"topic": "setValue", "payload": map[msg.payload.dstgad] };
console.log('== knx to zwave: %j', response);
return response;
}
}
return;
from node-red-contrib-knx.
I'll take a look in 12hours. Need to spent time with my family, sorry :)
Пт, 29 апр. 2016 г. в 20:17, ozett [email protected]:
i tried to quirk some code like this in a function, but that did not work
out..var map = {
'3/2/11' : {"nodeid": 5, "value": msg.payload.value},
'2/2/51' : {"nodeid": 5, "cmdclass": 38, "value": msg.payload.value},
'2/2/81': {"nodeid": 8, "instance":1, "value": msg.payload.value},
'2/2/82': {"nodeid": 8, "instance":2, "value": msg.payload.value},
'2/2/90' : {"nodeid": 9, "value": msg.payload.value}
}
switch (msg.topic) {
// or forward them to KNX
//case "knx: read":
case "read":
if (msg.payload.dstgad in map) {
var response = {"topic": "setValue", "payload": map[msg.payload.dstgad] };
console.log('== knx to zwave: %j', response);
return response;
}
}
return;[image: zwischenablage01-2]
https://cloud.githubusercontent.com/assets/5937811/14923702/f18f225a-0e3e-11e6-899c-9216cecf85b4.png—
You are receiving this because you commented.Reply to this email directly or view it on GitHub
#3 (comment)[image: BeeToo] http://beetoo.me/
Когда умный дом по-настоящему умный
Александр Боровский, Технический директор
Alexander Borovsky, CTO, Co-Founder
+7-926-0-945-00 <+7926094500>
+7-499-391-33-62
<+74993913362>[email protected]
http://beetoo.me
from node-red-contrib-knx.
Proper flow for your case will be:
- inject node [with timer configured] -- read request --> knx out [write] node
- knx in [read] node ----> chart node of node-red-contrib-ui
Right now you trying to send msg with topic 'read' in knx-out node.
But underlying library knx.js doesn't support yet such kind of datagrams.
If you'll analyze stdout [or stderr] of node.js process you'll see the line:
Unsupported action[read] inside of groupAddrSend
Conclusion: read command should be implemented.
I'll close this ticket.
Please, contact me directly by email: [email protected]. I'll try to help you.
from node-red-contrib-knx.
thanks for suggestion how to build the flow-connections.
i did it like you advised, and now see the "knx out [write] node" as inactive,
and i attach a picture, how i set up the inject node.
i am still doing something wrong, but .... thankx...
after that: how can i select the "knx-in-node" for other GADs for charting?
i cannot see how to do this...
thaaanks a lot,
from node-red-contrib-knx.
Related Issues (20)
- Connectiong both nodes at the same time HOT 1
- Unable to write group address HOT 13
- Can't make a DPT 5 or 5.001 work HOT 4
- Why is the DPT value of a received telegram always "no_dpt"? HOT 2
- Example "dpt":"DPT1" in function incorrect - Gira1310 HOT 1
- Can't send and recieve simultaneously HOT 5
- Group Address with main above 15 not supported HOT 6
- DPT HOT 2
- Update switch status HOT 3
- Not supported DPT 16 and DPT 10 HOT 6
- write knx out based on a knx entry? HOT 1
- node type unknown HOT 4
- Error: error calling groupAddrSend: TypeError [ERR_INVALID_ARG_TYPE] when update to nodejs 11.6.0 HOT 1
- Wrong value conversion on dpt 5.001 HOT 2
- No matching version found at install HOT 5
- ERR_SOCKET_DGRAM_NOT_RUNNING
- [Feature request] Add an option for avoid logs debug level
- Stop reconnect logic on undeploy
- error calling groupAddrSend: TypeError: Object has no method 'writeIntLE' HOT 9
- Error when calling knx-out node HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-knx.