kennedyshead / aioasuswrt

MIT License
24 stars 24 forks source link

Code assumes WAN is eth0 #26

Closed corbinchild closed 4 years ago

corbinchild commented 5 years ago

I have the ASUS RT-N56U router with Padavan's firmware. The firmware uses the network intervace name "eth3" for WAN.

This is a problem because aioasuswrt assumes that WAN will be "eth0" to obtain upload and download bandwidth statistics. For example: cat /sys/class/net/eth0/statistics/rx_bytes

Could you please consider adding a config variable so that the interface name can be changed? The variable could be passed in from Home Assistant. For example:

asuswrt:
  ...
  interface: "eth3"
pkishino commented 4 years ago

This can be closed now