Vaskivskyi / ha-asusrouter

Monitor and control your AsusWRT-powered router from Home Assistant
https://asusrouter.vaskivskyi.com
Apache License 2.0
188 stars 17 forks source link

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

Open ejpenney opened 11 months ago

ejpenney commented 11 months ago

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

Vaskivskyi commented 11 months ago

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.

ejpenney commented 11 months ago

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

image

Here's an hour from this morning:

image

Valdorama commented 10 months ago

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.

sfortis commented 7 months ago

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.