SNMP Bandwidth Total Traffic Per Month - DD WRT

DD WRT has the total bandwidth per month listed in its interface - for us internet users with a cap limit - it’d be very cool o read that total into HASS and key off with alerts etc when it approaches the monthly limit.

I see DD WRT mib/oid info here - https://www.dd-wrt.com/wiki/index.php/SNMP But I can’t fuind anything in there about total monthly bandwith - anyone out there doing something like the above already? Just curious.

2 Likes

I would also like this function to be added…

The system monitor has a packets sensor. You can possibly build on that.

I would check the url in the componets to see if it provides that info so you can modify it.

    url = 'http://{}/Status_Wireless.live.asp'.format(self.host)
    data = self.get_ddwrt_data(url)

https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/device_tracker/ddwrt.py