Hello. Did a OS update to 14.0 and core update to 2024.12.01.
All went well and everything is working. But during a day I noticed that my Intel NUC’s (running HA as VM on proxmox) fan is kicking in for short bursts. This is unusual.
Looked at proxmox CPU usage history. Normally it’s around 1.5-2% usage for HA VM but got recurring spikes to 3.0-3.5%. I guess that’s when fan kicks in.
Added CPU sensor to HA and also noticing those spikes.
The only integration I could recognize was a roborock integraton (with quite low execution times). Disabled it but issue still persists.
And now I see a pattern CPU usage increases every 5 minutes starting at 5th minute 22th second and ending on 37 second.
Wow you can see it only from that screenshot?
Well there are some helper templates calculating energy consumed from grid+energy consumed from solar. And similar ones.
Another one is calculating max max heating time in hours from 5 climate entities.
Any way I can see which one has has hardest toll?
Thanks, but non of them have regexp searches. Maybe 8 sonoff nspanel blueprint automations have something which looks like expensive templates.
I also have 8 heavy SQL queries (SQL integration), but reworked that to run every hour, or when climate entity changes between heat/idle
@bdraco based on @banalac findings seems that these CPU spiking issues introduced from 2024.12.0b2. Maybe “Statistics component causes significant slowdown” github issue is only a red herring.
Based on 2024.12.0b2 release notes one PR seems to match: #131702 Improve recorder history queries. Can this PR cause those CPU spikings?
EDIT: disabling all template helpers does not resolve issue. Disabling shelly integration (with noisy sensors) still solves this issue. Is there a way to prevent shelly sensor (gen 2) being so noisy ?