-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
energy-distribution
card causes high CPU - moving dots...?
#13816
Comments
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still issue |
This is still an issue, the card take a lot of of CPU resources, is there not a more efficient way to render the card, maybe use CSS instead, as it can sometimes grind my browsers to a halt, even with an i7-12700H. |
Version: Home Assistant 2023.4.2 Clients:
Browsers (tested clean without any addons):
Issues: Findings:
Suspicion: Idea to reproduce: If you cannot reproduce it with the template sensors you can get access to my instance. |
Are those templates defined as sensors in HA, or they are just parsed from Lovelace, eg. by secondaryinfo-entity-row? |
As actual sensors in HA. What I cannot say is if the amount of sensor data accumulated makes a difference. If I find some free time I might try to setup my ha-dev-instance and see if I can get some more insights. |
Here is an example i just used to reproduce the issue. Template sensors:
Automation to force Update every second:
Energy dashboard:
|
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still an issue. |
Absolutely. I cannot use the Energy Dashboard for my HA instance on any of my mobile devices. |
I concur, still an issue the SVG animateMotion of the circles still cause high CPU usage. I found going into the Elements tab in DevTools and deleting the circles fixes the issue. |
I can confirm this on an Ubuntu 23.04 with the latest updates and NVidia drivers. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still an issue.... |
I can't think of any solution to actually reduce the cpu usage, for the moment the only thing that comes to mind would be maybe a little discrete pause button that stops the amimation when you click it, maybe the state could be remembered in per-device localStorage. That kind of makes the card feel pointless though so I hesitate to suggest that. Curious if people would take advantage of such an option if it was available. Would you want to just permanently pause the card to disable all animations? |
Yes. I would permanently disable the moving dots. Or maybe try with fewer, slower moving dots. Say, have only one dot move at a time, eg animate it like line by line sequentially. |
same issue here... the card is not usable on low performance devices |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still there |
I have the same problem and have therefore switched from a Raspbery Pi4 to Pi5. Unfortunately, I have only now realized that the problem is on the client side. |
A bug that made you spend some money. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
There is "disable_dots" in Power Flow Card Plus: |
Which does not help for the Energy Dashboard... |
No, but it would be useful to have same name for same thing. |
I would also like to disable animation / dots and have static lines available. |
Checklist
Describe the issue you are experiencing
Added the
energy-distribution
standalone card as described in the manual to my main dashboard page:I noticed that the usage of my Intel Core i5-4250U CPU went to about 30%.
As soon as I removed that card, the CPU usage went down to 3%. The process showing high CPU usage is the one corresponding to the browser displaying the page.
I suspect that this is caused by moving the little dots along the lines. I'd suggest to mitigate this by having an overriding option not to show the moving dots, something like:
Describe the behavior you expected
Not to hog the CPU that much for design/visual tasks.
Steps to reproduce the issue
Using Firefox browser (any recent version) in kiosk mode, started with command:
The device in use is an Intel NUC D54250WYKH with a 250GB SSD, 4GB RAM running Debian with X11 and Firefox in full screen 1920x1080. Intel Graphics 3D acceleration is supported, driver is installed and working fine.
What version of Home Assistant Core has the issue?
2022.9.4, frontend 20220907.2 - latest
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
No response
Which operating system are you using to run this browser?
No response
State of relevant entities
No response
Problem-relevant frontend configuration
No response
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: