Supergiovane / node-red-contrib-knx-ultimate

Control your KNX intallation via Node-Red! A bunch of KNX nodes, with integrated Philips HUE control and ETS group address importer.
https://youtu.be/egRbR_KwP9I
MIT License
152 stars 34 forks source link

Bug status of connection #10

Closed arsiesis closed 5 years ago

arsiesis commented 5 years ago

Hi, Found this little bug ...

NODERED version : 0.20.8 NODE.js version : v12.0.0 node-red-contrib-knx-ultimate version : 1.1.10

Message that will appear in the console if the ip / knx router is disconnected from the IP network

In debug console of nodered :


msg : error
"TypeError: node.setNodeStatus is not a function"

In NPM console :


TypeError: node.setNodeStatus is not a function
    at new knxUltimate (XXXX\node-red-contrib-knx-ultimate\knxUltimate.js:29:26)
    at Object.createNode (XXXX\@node-red\runtime\lib\nodes\flows\util.js:483:31)
    at Flow.start (XXXX\@node-red\runtime\lib\nodes\flows\Flow.js:176:44)
    at start (XXXX\node_modules\@node-red\runtime\lib\nodes\flows\index.js:329:33)
    at XXXX\@node-red\runtime\lib\nodes\flows\index.js:196:21
    at processTicksAndRejections (internal/process/task_queues.js:86:5)
Supergiovane commented 5 years ago

Thank you. The issue appears when you haven't correctly wrote the group address in a node. It should show a status error message beneath the node, but instead it throws a code error. Fixed in 1.1.11