TheMax74 thanks for your great work, I've sent a donation via PayPal.
Ankündigung
Einklappen
Keine Ankündigung bisher.
KNX node for node-red
Einklappen
X
-
Hi all,
i build a read request flow, if someth. goes wrong with your node red installation and you depend on the status of the actuator.
Maybe this helps someone.
Or it may get implemented in the Core node?
I thought of a custom message that can be send to the KNX Ultimate universal node.
Disclaimer im not a professional coder, just a guy who is interestet in KNX.
Short desc.
Your NodeRed installation need access to the csv file, we had to generate to import the group messages.
e.g. /home/pi/KNXgrpExport.csv
The messages has to go to the KNX Ultimate universal node and has to listen to read requests.
The rest i hope is self explenatory.
Here the example Nodes:
[{"id":"d6c7d06e.562d1","type":"file in","z":"3fd24287.88d99e","g":"37b26382.3c6d6c","n ame":"KNXgrpExport","filename":"/home/pi/KNXgrpExport.csv","format":"utf8","chunk":false,"s endError":false,"encoding":"none","x":900,"y":120, "wires":[["281e3a88.7a02c6"]]},{"id":"281e3a88.7a02c6","type":"csv","z":"3fd242 87.88d99e","g":"37b26382.3c6d6c","name":"","sep":" \\t","hdrin":"","hdrout":"none","multi":"mult","re t":"\\n","temp":"","skip":"0","strings":true,"incl ude_empty_strings":"","include_null_values":"","x" :970,"y":160,"wires":[["7f1828ff.196378"]]},{"id":"7f1828ff.196378","type":"function","z":"3 fd24287.88d99e","g":"37b26382.3c6d6c","name":"send read requests","func":"//declare variables\nvar i = 0;\nvar inc = msg.payload.length;\nvar data = msg.payload;\nvar regex = "";\n\n\n//send KNX Messages\nfor (i;i<inc;i++){\n //check if group value is defined\n if(data[i].hasOwnProperty("col2")){\n //cut groupvalue for checking is a valid group adress\n regex = data[i].col2.split('/');\n //send read request to valid group adresses\n if ( Number(regex[2]) >= 0 ){\n msg.destination = data[i].col2;\n msg.topic = data[i].col2;\n msg.readstatus = true;\n msg.payload = i + " " + data[i].col1;\n node.send(msg);\n }\n }\n}","outputs":1,"noerr":0,"initialize":"","final ize":"","libs":[],"x":1030,"y":200,"wires":[["c728d8c8.27c678"]]}]
BTW: Thanks for this great palette!
Over and Out!
Chris
Kommentar
-
Zitat von Brummbaerchi Beitrag anzeigenHi all,
i build a read request flow, if someth. goes wrong with your node red installation and you depend on the status of the actuator.
Maybe this helps someone.
Or it may get implemented in the Core node?
I thought of a custom message that can be send to the KNX Ultimate universal node.
Disclaimer im not a professional coder, just a guy who is interestet in KNX.
Chris
Kommentar
-
TheMax74 : thank you first of all for your great work with knx ultimate (and boolean ultimate). I really appreciate this project.
I am trying to deploy my logics which are presently done with Linknx to node-red and in particular the debug information below your nodes are sooo easy to understand and helpful for debugging. To be honest, although reading your documentation, I haven't made up my full mind about all the expert options you offer in knx ultimate nodes, but I'll figure it out ... somewhen ... hopefully ... perhaps.
At the moment I am facing an issue which is probably not directly related with your nodes, but perhaps you (or anyone else) could give a hint on my question.
What I am trying to do is to instantly trigger a light dimming value after a certain value has been sent. For instance, if the value "60" is sent, I want node-red to send a "10" onto the same group address. The idea behind this is the day and night related dimming in corridors etc, so at night, after "60" is sent by the PIR, "10" will be shot directly afterwards, so that nobody gets blinded
OK - now here is the logic (only a test) as it is built up at the moment:
lobo_nodered_logik_2.PNG
... but my problem is actually, that there is no output from the first node "Wandlampe Wert". Although it sends the requested value onto the bus, the debug massage does not show anything. I assume that there is nothing sent out of the knode. As a consequence, the change node is not triggered ...
Here are my settings for the knx ultimate node:
lobo_nodered_logik_4.PNG
Does anyone see why the flow is stopped at this node? Probably, it is an easy to solve issue as I am not too much familiar with these knots ...
Best regards,
Stefan
Angehängte DateienMein Sammelsurium: TS2, Zennio Z38, Siemens LOGO!, Medeodata 140 S, Weinzierl KNX ENO 620, Eibmarkt IP Router, MDT KNX IP IF, Wiregate, Node-Red mit KNX Ultimate, MDT Smart II, diverse Aktoren verschiedener Hersteller ...
Kommentar
-
Hi Stefan
The short way: check into the gateway config window, if the option “echo sent message… is checked”.
Then check the option “ignore ack…”
Then check that the two green nodes do have the same exact Datapoint.
The long way: https://github.com/Supergiovane/node...Q-Troubleshoot
Let me know.
Kommentar
-
Thanks for the quick response.
I did all the quick actions you proposed and even restarted node-red, but no change. Sending onto the knx bus works, but the node output is not working ...
I will work through your troubleshooting ...
Cheers,
StefanMein Sammelsurium: TS2, Zennio Z38, Siemens LOGO!, Medeodata 140 S, Weinzierl KNX ENO 620, Eibmarkt IP Router, MDT KNX IP IF, Wiregate, Node-Red mit KNX Ultimate, MDT Smart II, diverse Aktoren verschiedener Hersteller ...
Kommentar
-
Zitat von PhilW Beitrag anzeigenlobo Switch on "Auf das Schreiben einer Gruppenadresse reagieren"
Now the flow is running, but I am facing the circular reference issue now. Do you have an idea how to override knx ultimate, so that it sends the value?
Best regards,
Stefan
Mein Sammelsurium: TS2, Zennio Z38, Siemens LOGO!, Medeodata 140 S, Weinzierl KNX ENO 620, Eibmarkt IP Router, MDT KNX IP IF, Wiregate, Node-Red mit KNX Ultimate, MDT Smart II, diverse Aktoren verschiedener Hersteller ...
Kommentar
Kommentar