Hi
i notice that my hass loads slowly when i start the lovelace dashboard, the charts take minutes to show data.
is there anything i can do about that? how do i get my hass faster?
Does this has to do with the amount of charts, entities or automations?
Maybe add some details on your installation. Loading lots of charts is db heavy, the default recorder db isn’t really up for that. I moved to a mySQL instance and that does up the speed a lot
The only time I saw this issue was when using the third party Apexcharts to draw a lot of charts with a lot of data. The core charts and custom-mini-graph charts did not suffer the same issue.
I use docker for running hass and got 14 charts in my dashboard currently, in about 5 tabs. Only showing the last 6 hours.
How often do the states in those charts update?
Something does not seem right. What’s your CPU usage at?
Some of them every second…
Hmm then the database might be busy if I think about it that way
Cpu 30-40% and memory somewhere between 55-65% in general
What hardware are you running HA on?
Qnap TS-253d
Intel Celeron J4125
8gb memory
So I assume, that your setup is running on a spinning mechanical hard-drive?
Yes could this be one of the reasons?
Possibly. Also the amount of RAM given to HA by the Qnap system could play a role.
I arrived here with the same problem and you just gave me the answer to my problems … I don’t have a fast cpu at the moment, and I spent a few hours to personalize my graphs just to find out it gets TOO slow =/ going back to the old boring one
If you use the statistics option in Apexcharts it can speed things up as there are a lot less points to plot.
Do you access HA from a Wired Device, or over WIFI from i.e Your Phone ?
Regardless , have you verified it’s not your Device/Connection which have “issues” loading the Dashboard in your browser ?
14 charts in 5 views is not much, average of 3 charts, i would check “under the hood” logs etc., before concluding it’s Hass which is slow loading these charts.
Beside it could be only 1(or few) of them which might cause latency, check that by excluding them 1 by 1, while monitoring, the HA’s CPU/Mem.
I.e, If you open HA’s Hardware-page, in 1 tab(or browser window)
Then in another 1 particular View which uses alot CPU
And At the same time( If you monitor from i.e. Windows) you also open task monitor
to monitor Windows CPU
You’ll notice while having only the Hardware-page open( with the CPU/Mem graphs), your CPU ( Inn Windows Task Manager) should dropp after 1 minute or 2, while just watching
( This Page is a good example to compare with, as the load should be fairly small , for the 2 graphs there )
Then you click the tab(view) with the graphs on, and you should see an immediate increase, and hopefully a dropp after awhile
If this particular Tab(view) has high load, click edit and “move card” to another view, and refresh the view(browser), continue until you find the card which causes high CPU load
Remember to monitor CPU on the Device you view from, and HA’s
Beside refresh, clearing history in Browsers , is also a good way to exclude potential culprits
Sorry if it sounds basic, but i’ve just seen many people reporting “high load / slowness” , without having done the most basic troubleshooting.( As above mentioned )