-
-
Notifications
You must be signed in to change notification settings - Fork 103
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
High server load caused by home-assistant-websocket node #1719
Comments
Faulty RAM in the HA server caused the problem with the home-assistant-websocket node in NR... |
Sorry, I was wrong... my server was not the problem. The home-assistant-websocket node in version 0.74.2 causes massive traffic and crashes HA.
|
Try connecting Node-RED directly to Home Assistant using its IP address and port instead of the supervisor proxy, and use a long-lived access token for authentication. https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/#configuration |
Now I have clearly identified the problem... |
Thank you for following up with your findings! This package, One solution that has worked for others in similar situations is connecting directly to Home Assistant rather than through the supervisor proxy. This bypasses the additional overhead and often improves performance. Unfortunately, there isn’t much more that can be done from this package’s side to handle such scenarios. |
Describe the bug
I use Node Red (v4.08) in a Proxmox LXC Container with the home-assistant-websocket node (v0.74.2) installed. Home Assistant runs on its own server:
Core-2024.12.5
Supervisor-2024.12.0
Operating System-14.1
Frontend-20241127.8
For a few days now, perhaps since HA 2024.12, I have been noticing significant latency problems. That's why I went searching and was able to identify the problem at Nodered. The server had a very high load all the time. I reinstalled Nodered and then installed the individual nodes separately. The problem was in the home-assistant-websocket node. When I deactivated it, everything returned to normal.
I only use 12 HA nodes.
To Reproduce
active home-assistant-websocket node -> high server load
deactive home-assistant-websocket node -> normal, low server load
Expected behavior
No response
Screenshots
Example Flow
Environment Information
Version: 0.74.2
No Home Assistant server configured
Node-RED version: 4.0.8
Docker: no
Add-on: no
Node.js version: v20.18.1 x64 linux
OS: Linux 6.8.12-5-pve x64
Additional context
No response
The text was updated successfully, but these errors were encountered: