I am now unable to edit all but the most simple automations in the UI. Opening embedded if-then and choice actions seems to be the thing that makes my UI freeze up, but it also has a problem on embedded not, and, or conditions.
I’m using a proxmox server on a HP elitedesk with an i7 processor and 16gb of ram running off a 500gb SSD drive. The attached screenshot is from the companion app. I will upload examples from a separate and fully juiced up pc running chrome which should demonstrate that the problem is not due to my hardware.
If anyone has encountered this problem and found a solution, I would really appreciate some guidance.
I use VSCode, it goes just fine. syncs with GitHub. Checks my syntax. Life is good. And I have A LOT of yaml… (24, 532 lines of live, lots more that’s parked and not counted)
I wonder how you count number of lines?
Cannot say that number of lines (and number of packages) is a useful info - just interesting.
(using packages myself)
@Sir_Goodenough
Mind sharing where this screenshot comes from? I also use VS Code Studio and would love to see this info for my system. I too, have a ton of YAML code, with over 300 automation and scripts (600+ total). Thanks!!
This could be achieved by auto-entities with using a “template” option (or even with a simple “include” option with “entity” filter) to show an Entity card inside a Grid card for some defined set of sensors (here - sensors containing number of smth).
Auto entities won’t count lines of code. I understand that I could do it like that, but I am really interested in how he counted the lines of code. I assumed it was some sort of VS Code add in. Hopefully he can elaborate.
I have the same issue with the Automations UI editor being completely unusable. With 101 lines (including empty ones) of Yaml (turning on/off 5 lights to specific states based on time and sun elevation), the opening of the Automation Editor UI takes about 1 second, but every subsequent UI operation takes a lot longer. Opening the menu for Yaml editor takes 5-10 seconds, as well as opening any of the condition/operation expanders.
I ran profiler on opening the editor and expanding two conditions. Most of the time is spent doing QuickSort and positioning items.
Browser used is MS Edge Version 131.0.2903.51 (Official build) (64-bit)
HA
Core 2024.11.2
Supervisor 2024.11.2
Operating System 13.2
Käyttöliittymä 20241106.2
Browser resolution does affect a bit. In a smaller window, about 1080p equivalent the initial render was faster, but did not improve overall as a UX.
The tab takes about 1 CPU core and memory consumption keeps increasing steadily with no network traffic. It becomes completely unresponsive in about 1 minute.
As a result you basically cannot open any menu in editor or even exit reliably, as the left-arrow and save-button do not seem to react for several, even tens of seconds.