PLCHome / node-red-contrib-velux

Provides nodes to talk to Velux® KLF-200 io-homecontrol® Gateway
9 stars 2 forks source link

node red 3.13 crashed by enable node velux-nodes. #25

Open df-de opened 4 months ago

df-de commented 4 months ago

Hi,

I have updated Node Red to Version 3.13 and Node.js from 12... to 18.19.0 and at the second Raspberry Pi node js 20.11.0.

Everything works fine - expept starting the Velux-Nodes node. I can use the velux api node and everything is fine. After starting the velux-nodes node to open and close windows or shutterblinds node-red crashes immidiatly - see the log below.

9 Feb 19:23:11 - [red] Uncaught Exception:
9 Feb 19:23:11 - [error] Error: timeout GW_COMMAND_SEND_CFM
    at Object.<anonymous> (/home/pi/.node-red/node_modules/velux-klf200-api/lib/net.js:190:19)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Consumed 1min 4.719s CPU time.

Before I have installed the update in a lower Version 3 Node-red and evrything works (not really fine, because the KLF200 has been reset by disconnect from the power supply all two weeks (velux-appi node is also set to GW_Reboot_REQUEST 2 times a day)).

NEVER CHANGE A RUNNING SYSTEM :,-(
I hope you can help...

KNXsmart commented 4 days ago

Any chance, you're sending multiple messages at the same time or shortly after each other? I realized that my node-red instance crashes in that case also with the "timeout GW_COMMAND_SEND_CFM" error. If yes, you might want to check my workaround in another issue: https://github.com/PLCHome/node-red-contrib-velux/issues/24#issuecomment-2197506975