zachcheatham / ha-omada

Home Assistant TP-Link Omada Integration
191 stars 26 forks source link

ER605 does not show TX & RX activity #92

Closed mogim0gi closed 5 months ago

mogim0gi commented 8 months ago

Hei,

My request is for ER605 to be able to show TX/RX activity. WAN activity in mb/s would be even better, here is how I see it right now

image

pratbhoir commented 7 months ago

I am having the same Issue, Hope it gets fixed

monotonus commented 7 months ago

Same here. How can we support?

ampersandru commented 6 months ago

ER605 v1 and a SG2016P v1.20 switch - same issue, does not show Rx or Tx activity

ampersandru commented 6 months ago

I figured out a way to create a MB/s upload/download bandwidth sensor using derivatives since the Uploaded and Downloaded sensors update every 30 seconds:

- platform: derivative
  # Calculate the throughput by sampling the Downloaded sensor
  name: "Network - WAN Down Throughput - Mbps"
  source: sensor.omada_router_downloaded
  unit_time: s
  round: 2

- platform: derivative
  # Calculate the throughput by sampling the Uploaded sensor
  name: "Network - WAN Up Throughput - Mbps"
  source: sensor.omada_router_uploaded
  unit_time: s
  round: 2   
monotonus commented 6 months ago

Thanks for that idea!

But you won't get Mbps (Mbit/s), but MB/s (MByte/s) with this configuration, as the Download and Upload sensors are in MB. So you need to mulitplicate the value with 8 to convert it into bit.

tensiondriven commented 6 months ago

Can confirm, version 0.5.0

This may be a limitation of the ER604 V1, i know the V1's have gotten less love from TP Link in the past. Can't say for sure though.

image

Still beats the pants off the native integration, though.

h3llrais3r commented 6 months ago

Same issue on ER605 v2, with latest firmware: image image

Same issue on SG2008P v3.20 with latest firmware: image image

Would love to see this fixed. Besides that, great integration as the native one doesn't provide a lot of useful sensors.

h3llrais3r commented 5 months ago

hi all, I've created a PR to fix the gateway rx_rate and tx_rate values. (of default WAN port!) It seems to work for me, but would be great that some people could test it as well. Tested on my ER605 v2. image

Please also tell me if you like to have more precision on the rouding of the values (examples shows 3 decimal digits, while the PR is created with only 2 decimal digits)