Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are the rx/tx_data reported in for network interfaces #115

Open
spitfire opened this issue Oct 28, 2023 · 7 comments
Open

What are the rx/tx_data reported in for network interfaces #115

spitfire opened this issue Oct 28, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@spitfire
Copy link

what are these attributes reported in?
rx_data: 38168
tx_data: 39104
They match neither bytes, nor packets from ifconfig

@spitfire spitfire added the bug Something isn't working label Oct 28, 2023
@mdisabato
Copy link

I concur. The readings I get have not changed since the script started. Also, I find it hard to believe that system has only 193 bits/sec receive and 23 bits/sec transmit. It should be much higher.

@ironsheep
Copy link
Owner

ironsheep commented Jan 31, 2024

These are the delta/time since the last time they were read. The script, by default, runs at 5-minute intervals.

Here's the relevant code:

rx_data = round((current_value - previous_value) / (current_time - previous_time) * 8 / 1024)
Ditto for tx_data.

I need to check if this data is still being parsed correctly, given the massive OS overhauls that have been happening...
I'll be working on this script to attend to some of the reported issues in the next week or two. I'll review all of this parsing at that time.

@ironsheep ironsheep self-assigned this Jan 31, 2024
@spitfire
Copy link
Author

spitfire commented Feb 2, 2024

Could we somehow have sensors reporting total RX/TX data? THat would be really useful.

@bsimmo
Copy link

bsimmo commented Feb 2, 2024

The idea would be HomeAssistant can add them an provide cumulative stats and give you hourly, daily, weekly, yearly etc.

Unfortunately that would need a revision of this to finally bring everything into their own sensors, enabling longterm stats and triggers etc to be used, and away from the old setup of attributes.

@spitfire
Copy link
Author

spitfire commented Feb 2, 2024

I would probably keep none of them in the recorder, but let them go to influxdb.

@bsimmo
Copy link

bsimmo commented Feb 3, 2024 via email

@spitfire
Copy link
Author

spitfire commented Feb 3, 2024

Triggers an automations still work even if you don't record the data in db, I only do that for select entities that I look up sometimes (otherwise my DB grows to 30 GB ;)). I send everything to InfluxDB just in case, and it doesn't affect my HA's performance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants