atlewee / node-red-contrib-knx-easy

Use KNX just like the mqtt nodes
20 stars 5 forks source link

Knx config does not connect and signals no result #13

Closed valeriovilla closed 5 years ago

valeriovilla commented 5 years ago

I am trying to get KNX_Easy mode to run but i see the problem as despite I install the package without errors and can create and deploy nodes, configured to talk to IP interface (tunneling type) the KNX Easy nodes do not show errors in the console but also never get to connected state.( or error state) The only log message I get about KNX in console is: [info] "2019-06-11T18:32:05.027Z" 'Loading knx: KNXnet/IP protocol implementation for Node(>=4.x), version: 2.3.3' The full tracelog shows nothing more

system is:

[info] Node-RED version: v0.20.5 [info] Node.js version: v8.11.1 [info] Linux 4.19.42-v7+ arm LE the node tree is: node-red-project@0.0.1 /home/pi/.node-red ├─┬ node-red-contrib-canbus@1.0.1 │ ├── random-js@1.0.8 │ └─┬ socketcan@2.1.3 │ ├── nan@2.14.0 │ └─┬ xml2js@0.4.19 │ ├── sax@1.2.4 │ └── xmlbuilder@9.0.7 └─┬ node-red-contrib-knx-easy@0.3.3 └─┬ knx@2.3.3 ├── @types/node@6.14.6 ├── binary-parser@1.1.5 ├─┬ binary-protocol@0.0.0 │ └── bluebird@2.2.2 ├── ipaddr.js@1.2.0 ├── log-driver@1.2.7 └─┬ machina@4.0.2 └── lodash@4.17.11 The simple test flow is two injects to switch on and off a lamp:

[{"id":"8414095e.069d98","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"3a9c287d.4ab908","type":"knxEasy-out","z":"8414095e.069d98","server":"1aae7c32.11c504","topic":"","dpt":"","name":"","outputtype":"write","x":480,"y":100,"wires":},{"id":"71ab8c60.c18874","type":"inject","z":"8414095e.069d98","name":"","topic":"","payload":"{"payload":"1","knx":{"dpt":"1.001","destination":"0/2/13"}}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":100,"wires":[["3a9c287d.4ab908"]]},{"id":"91d6272e.73e6e8","type":"inject","z":"8414095e.069d98","name":"","topic":"","payload":"{"payload":"0","knx":{"dpt":"1.001","destination":"0/2/13"}}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":160,"wires":[["3a9c287d.4ab908"]]},{"id":"1aae7c32.11c504","type":"knxEasy-config","z":"","host":"192.168.1.160","port":"3671"}]

atlewee commented 5 years ago

Are you still having this problem? Looks like a network issue between node-red ad your knx-gateway. Wrong ip/port.. Or interface one Gateway is occupied/busy by another client.

If not, you can go into your node-red installation folder, something like ~/.node-red/node_modules/node-red-contrib-knx-easy/knxEasy-config.js In that file you can add some Debug.logs around the knx object to see if you can get out some error messages. ( You will need to restart node-red every time you change the js file to see changes )

valeriovilla commented 5 years ago

Hello The problem was the one I did explain, I wanted to grab all traffic and send messages only changing the payload of the msg given to the output node this I did not assign any group address to either input or output due to this no connection was made. Once I configured the group address even if it is overridden every time it worked. Maybe you should just mention in the node help that those properties are must-set. Now all works wonderfully! Thanks for the great contribution! Regards Valerio

Sent from my iPhone

On 2 Jul 2019, at 19:59, Atle Wee Førre notifications@github.com wrote:

Are you still having this problem? Looks like a network issue between node-red ad your knx-gateway. Wrong ip/port.. Or interface one Gateway is occupied/busy by another client.

If not, you can go into your node-red installation folder, something like ~/.node-red/node_modules/node-red-contrib-knx-easy/knxEasy-config.js In that file you can add some Debug.logs around the knx object to see if you can get out some error messages. ( You will need to restart node-red every time you change the js file to see changes )

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.