ha-asusrouter icon indicating copy to clipboard operation
ha-asusrouter copied to clipboard

[Bug] CPU usage does not match data shown in Web

Open ejpenney opened this issue 1 year ago • 4 comments

The problem

As mentioned in #677, CPU information shown in the ASUS dashboard is different than data shown in Home Assistant.

Update interval is default (30s). Here's an hour chosen from yesterday:

image

Interestingly, immediately after this hour, the CPU usage went to near zero. It's hard to say for sure, but it's almost like, if the usage goes over ~50%, then HA reports it as 100%. It's either up or down, no in-between? But those are just my initial observations, looking at it for all of 5 minutes.

Here we see everything was fine, then I pulled up the Asus page in a browser and started looking at them side-by side:

image

I tried to get an hour of logbook data for you, but it appears the CPU sensor isn't supported. Hopefully these screenshots are useful? If not, I'm happy to add more data.

Original screenshots:

Screenshot_20231120-101737.png

Screenshot_20231120-101734.png

Your device model

RT-AC66U

Firmware type

Stock

Firmware version

3.0.0.4.380.70_0

Integration version with the issue

0.24.0

Method of the integration installation

HACS

What version and type of Home Assistant installation do you use

2023.11.2

Is there anything useful in the logs?

No response

Diagnostics information

No response

Additional information

No response

ejpenney avatar Nov 21 '23 19:11 ejpenney

It seems to be rather hard to track this issue. So, I'll be posting some random questions to try to guess where to look for the reason.

  • Do you have a single Asus device connected to HA?
  • Can you change the update time to e.g. 5 s for some time (also need to change cache time to 4 s or less. Will it be jumping up-down or stably showing such high values?

Vaskivskyi avatar Nov 23 '23 20:11 Vaskivskyi

No problem, let me know any way I can help.

  • Yes, it's just the one single device connected to Home Assistant.
  • I changed update time to 5s and debug cache to 4s and have let it run a few days. Looks to me like a little of both?

image

Here's an hour from this morning:

image

ejpenney avatar Nov 27 '23 19:11 ejpenney

Hello - just want to add that I've been seeing this issue too every now and then. The integration seems to report that the CPU is much higher than it actually is (as reported by the router web admin page). As an example, here you can see the integration suggesting the CPU has been consistently in the 40-50% range for over 12 hours:

image

And here is the current web admin page:

image

After restarting HA it seems to be back to normal and consistent with the Asus web admin page readings.

Valdorama avatar Jan 03 '24 15:01 Valdorama

I've also the same issue, not a big deal thought.

my router is an asus AC86U

image

@Vaskivskyi tell me if you need any logs,etc.

sfortis avatar Mar 21 '24 07:03 sfortis