-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Get Entities node is extremely slow and cause Home assiatnt to disconnect #1656
Comments
How many entities does your Home Assistant instance have? You can find out by running this template in the Developer Tools > Template section: {{ states | count }} |
7768 I can see this being a high count, but the problem did not exist 0.65 |
Try updating to the latest release, v0.74.2, and check if there's any improvement in the output speed. |
Looks much better, not sure it was still as fast as before as i still see a bit of a delay, but at least it is not causing nodered to crash and disconnect. The other thing I noticed that that I can use inject nodes again in the Home Assistant UI rather than having to go directly connecting to Node Red. So thank you for that as well. Can we keep this open for a few more days to see if the issue resurfaces |
I had observed weak performance for get_entities as well, but already with small groups ~20 members which took around 1 second each... |
In my setup with 1600 entities 0.74.2 is faster than 0.73, but still far from the state before get-entities was significantly extended (0.65.1 for me). For comparison see the CPU load of my the VM where I run HA with the Node-RED addon. Not much in the setup changed except the version of the Node-RED addon and consequently the version of the ha-websocket-contrib:
If I disable my flow that regularly calls several Get Entities nodes my CPU load is back to 8% levels. For me the situation improved but it is still far from 0.65.1. Note: More details on my setup in above mentioned issue. |
I agree with @chrhen, it's acceptable, but def much slower than it used to be. |
Describe the bug
A simple query with a single entity, takes 2 seconds, while a more complex one with multiple queries or using an "in group" takes up to 10 seconds and causing connectivity issues and tons of Home assistant Disconnects. I rolled back to .65 and these queries are instant. Not sure exactly what version this started at, but my guess is that this is what is causing the majority of the issues that are listed on GitHub (ie disconnect, crashes etc)
To Reproduce
a simple flow as outlined in the screenshot
Expected behavior
In older version (.65 tested) this was instant
Screenshots
Example Flow
Environment Information
The button not in my nodered isnat and there is no way to download the diagnostic flow from your https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/diagnostics.html#overview
Additional context
No response
The text was updated successfully, but these errors were encountered: