kloggy / HA-Irrigation-Version2

221 stars 55 forks source link

Main Dashboard is too slow responding #77

Open stefanoferrario opened 2 years ago

stefanoferrario commented 2 years ago

Hi,

I have installed all components and configured my smart irrigation but the Main Dashboard is very slow responding.

Anyone has the same problem?

mindvisionro commented 2 years ago

Hi, yes, I have the same problem with an 8gb Raspberry Pi4

jgosnell56 commented 2 years ago

My dashboard was also a little slow to initially populate on a VM but it seems to have sped up dramatically since I moved away from the HA internal database for the recorder (historical data/statistics) and now use an external MySQL db. Not sure why that would really matter since the Irrigation configuration only needs historical data from your zone switches. Anyways, may be worth a shot if you have the ability to setup an external db and point HA to it.

stefanoferrario commented 2 years ago

My dashboard was also a little slow to initially populate on a VM but it seems to have sped up dramatically since I moved away from the HA internal database for the recorder (historical data/statistics) and now use an external MySQL db. Not sure why that would really matter since the Irrigation configuration only needs historical data from your zone switches. Anyways, may be worth a shot if you have the ability to setup an external db and point HA to it.

Thank you! How did you setup your external database?

jgosnell56 commented 2 years ago

Thank you! How did you setup your external database?

I used this video as a reference, but I did not install anything via "Add-Ons" within HASS. I spun up containers for MySQL and PHPmyAdmin on my UnRaid server and then pointed Recorder to that IP and db name.

https://www.youtube.com/watch?v=A-52iT43FQs

stefanoferrario commented 2 years ago

Thanks! In this way I have to use Grafana or similar to show historical datas or I will see all data in History dashboard as now?

jgosnell56 commented 2 years ago

You will still see it in History dashboard.

mindvisionro commented 2 years ago

I already use mysql but it still works quite hard, but only this integration goes slowly

shakin89 commented 2 years ago

I have the same problem too, rpi4 4 gb ram, the interface is so slow.... i don't think it's related to the database. from my laptop with chrome the speed is quite acceptable, from the mobile app it takes between 1 or 2 minute to respond. I think it's related to some javascript code.

maury77 commented 2 years ago

the problem is also for me on mobile device the problem seems complex js in the page

would there be the possibility in a future release to create customized views?

M4lmostoso commented 10 months ago

It seems that main issue is related to the conditional cards of the item_cycle_zone_duration_line.yaml, in particular the "zone day buttons".