b0mbays / continuously_casting_dashboards

HACS Integration for continuously casting a Home Assistant dashboard to your Google Chromecast Displays
MIT License
230 stars 11 forks source link

CPU usage goes up outside casting window #22

Closed Mellowlynx closed 1 year ago

Mellowlynx commented 1 year ago

Yesterday afternoon I noticed that the CPU usage goes up every night, starting around 22:00 and ending at 8. Around 23 a clock I checked trough SSH what processes was running, and saw the name of my Next hub.

At that point I disabled continuously casting and restarted HA. Then the load was gone.

I hope this can be fixed or that I can use a workaround so the load stays normal, but casting is also enabled during the day.

Below the CPU load from the HA VM

Last 24 hours: image

Last week: image

b0mbays commented 1 year ago

Hey, that is interesting! I've never noticed this but we did have another user open up a PR that potentially fixes this problem. It might be caused by the cast_delay not being set correctly. I'll try and test the PR's changes asap and get the change merged in which should stop the high CPU usage.

Mellowlynx commented 1 year ago

If you like me to test, let me know where and what to change and I will be happy to try it.

b0mbays commented 1 year ago

The change is in now, if you restart HA you should see an update for the integration (v.1.2.5). If you could test it and make sure the usage has gone down that would be great 😄

Mellowlynx commented 1 year ago

Yay!! it's fixed. Thanks for the fast update @b0mbays and thanks for the fix @jhbruhn image