Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout shutdown node red #24

Open
vigeland opened this issue Oct 10, 2023 · 1 comment
Open

Timeout shutdown node red #24

vigeland opened this issue Oct 10, 2023 · 1 comment

Comments

@vigeland
Copy link

I have 3 shutters, 4 Velux Nodes. One to get the state by home monitor, and 3 to close the shutter.
When I close the 3 shutter, triggered at the same time ( may be ) , node red logs a timeout and shutdown.

9 Oct 19:10:55 - [red] Uncaught Exception:
9 Oct 19:10:55 - [error] Error: timeout GW_COMMAND_SEND_CFM
at Object. (/data/node_modules/velux-klf200-api/lib/net.js:190:19)
at listOnTimeout (node:internal/timers:559:17)
at processTimers (node:internal/timers:502:7)

node-red-docker@3.1.0 start

Any idea for work around

@KNXsmart
Copy link

Quite some time ago, but maybe also helpful for other with the same issue.

For me, node-red always crashes if I send multiple write requests simultaneously or shortly after each other. As a workaround, I don't send the messages directly to the Velux Nodes but instead add a device property to the message, route all of the write messages through the same rate limiting/delay node (1 message per 0.5s in my case) and then switch again by the device property to forward the message to the correct device node. This actually solved the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants