home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.73k stars 30.84k forks source link

ASUSWRT: "Download Speed" and "Upload Speed" sensors show the same value #115965

Closed Lurker00 closed 3 months ago

Lurker00 commented 6 months ago

The problem

The router is Asus RT-N-66U with firmware that does not support HTTP/HTTPS control. It is Merlin LTS fork 374.43_51E3j9527. That's why I'm limited to Telnet/SSH. I have reasons to continue using this line of the firmware, rather than newer official or Merlin versions.

The upload/download speed sensors always show the same values, considered that they are taken from device not atomically:

Снимок экрана 2024-04-22 153131

The current readings of the values used by aioasuswrt library via SSH are quite different:

ASUSWRT-Merlin LTS RT-N66U 51E3 Tue Aug 31 09:39:52 UTC 2021
router@RT-N66U-1D90:/tmp/home/root# cat /sys/class/net/eth0/statistics/tx_bytes
2164377468
router@RT-N66U-1D90:/tmp/home/root# cat /sys/class/net/eth0/statistics/rx_bytes
4177409478

So, it seems the OPENWRT integration uses only the first value (RX) for both.

I'm a new HA user, so I don't know if these sensors ever worked correctly.

What version of Home Assistant Core has the issue?

core-2024.4.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ASUSWRT

Link to integration documentation on our website

No response

Diagnostics information

config_entry-asuswrt-a6dc8bf4029df07bd46a3445aff3467d.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 6 months ago

Hey there @kennedyshead, @ollo69, mind taking a look at this issue as it has been labeled with an integration (asuswrt) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `asuswrt` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign asuswrt` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


asuswrt documentation asuswrt source (message by IssueLinks)

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.