ckarrie / ckw-ha-gs108e

HomeAssistant Netgear Switch Integration
18 stars 6 forks source link

[FR] count data for each port #10

Closed el97 closed 1 year ago

el97 commented 1 year ago

A useful feature would be if there is a counter that shows the total received/transferred. There is sensors called received/transferred for each port but it resets after a few seconds. it looks like it's supposed to count traffic though so it might be a bug that it resets.

A workaround would be to make helpers for each port that count the traffic but it would be great if it already was a function when you set up the integration.

ckarrie commented 1 year ago

Hi @el97 the port_1_traffic_transferred and port_1_traffic_received should be for that. But it seems to be a bug.

I'll take a look into it.

ckarrie commented 1 year ago

Ha, dammit, looked at my wrong Switch. Sorry. It's not a bug, port_1_traffic_transferred and port_1_traffic_received works as expected (delta MB between each request).

Update coming soon

ckarrie commented 1 year ago

@el97 added total tx and rx

image

you can change the displayed Unit of Measurement in the sensor settings

image