HASS.Agent icon indicating copy to clipboard operation
HASS.Agent copied to clipboard

Bug: CPU usage percentage between HA and Windows don't match

Open SpartaTom opened this issue 2 years ago • 7 comments


Describe the bug The CPU usage percentage in Home Assistant doesn't match the CPU usage the windows taskmanager performance tab. Home assistant gives me a value of 1-4%. Windows performance tells me it floats between 15-50%

To Reproduce

  1. I've add the 'cpuload' sensor with a refresh time of 5 seconds
  2. I've added a gauge card using the sensor now available in HA
  3. pressed CTRL+SHIFT+ESC and then went to the performance tab
  4. compare the numberic values.

Expected behavior I would expect the values to match. At least more closely due to the 5 second refresh time.

Screenshots CPUscreenshot

Misc info (please complete the following information):

  • Windows build: Windows 11 (OS Build 22621.2428)
  • Windows' UI language: English
  • HASS.Agent version: 2022.14.0

Please check what's applicable (multiple answers possible):

  • [x] Installed via installer
  • [ ] Installed manually
  • [x] Problem occurs in HASS.Agent
  • [ ] Problem occurs in Satellite Service

Additional context MQTT broker is the mosquitto broker. Multiple other sensors do match.

SpartaTom avatar Nov 02 '23 13:11 SpartaTom

Possible duplicate of https://github.com/LAB02-Research/HASS.Agent.Staging/pull/16 as I cannot replicate this on build with https://github.com/LAB02-Research/HASS.Agent.Staging/pull/16

amadeo-alex avatar Nov 07 '23 18:11 amadeo-alex

If you can, please check the unofficial build release and try to replicate the issue https://github.com/amadeo-alex/HASS.Agent

amadeo-alex avatar Nov 07 '23 18:11 amadeo-alex

@SpartaTom @amadeo-alex were there any further findings on this? I have the exact same issue, as does a friend of mine.

xStellarZ avatar Mar 24 '24 04:03 xStellarZ

Does it happen on the original or the fork (https://github.com/hass-agent)?

amadeo-alex avatar Mar 24 '24 10:03 amadeo-alex

Does it happen on the original or the fork (https://github.com/hass-agent)?

Happens on both

xStellarZ avatar Mar 25 '24 20:03 xStellarZ

I've recently installed hass.agent, and have the same issue. However, I had previously noticed that a HomeSeer script I have to monitor the same PC is showing the same values as I now see in hass.agent. Both hass.agent and the HS script show CPU usage values that are consistently about 1/6 of what Windows task manager shows. Coincidentally, it is a 6-core i7-8700 CPU. Related?

HASS.agent Sensor: sensor

HomeSeer: hscpu

Windows Task Manager: taskmgr

jrsjax avatar Jun 05 '24 14:06 jrsjax