mishaaq / sun-card

Lovelace card for sun component - Home Assistant
MIT License
51 stars 10 forks source link

High CPU Load #24

Closed Nesie closed 4 years ago

Nesie commented 4 years ago

Hi,

If I use your nice Integration on my Dashboard within a browser on a remote raspberry pi 3. I face an very high cpu load for it. For trying to get an evidence that it comes realy from ha-sun2, I put the integration onto a new blank tab Page as the only element and all Time I switch onto that tab the Raspberry CPU load is going up to 75% - 90%. If I switch back to other Stuff on parallel Pages e.g. Weather or mini media panel it is alway goes down to less then 5% to 10% of CPU load. If I let the browser window on that tab with your integration, CPU load raises until the raspberry shows up a temperatur alarm on the upper right corner. I did no special configuration for the configuration on lovelace:

entities: max_elevation: sun.sun moon: sensor.moon noon: sensor.solar_noon sunrise: sensor.sunrise sunset: sensor.sunset meridiem: false name: Sonnenstand type: 'custom:sun-card'

Do someone have the same behavier or a hint to prevent it ?

mishaaq commented 4 years ago

It can be related to the animation of the sun beam. I'll check that. Thanks!

mishaaq commented 4 years ago

Please check new option to disable animation - it should fix the issue.

Nesie commented 4 years ago

Hello, now CPU Load is nearly at 2% to 4%, so your idea, that it was related to the animation was totaly right. Thx a lot for your work !!!