Vaskivskyi / ha-asusrouter

Monitor and control your AsusWRT-powered router from Home Assistant
https://asusrouter.vaskivskyi.com
Apache License 2.0
180 stars 17 forks source link

Upload/download sensors for devices and apps #220

Open ehendrix23 opened 2 years ago

ehendrix23 commented 2 years ago

The problem

Would it be possible to have upload/download sensors for individual devices and/or apps similar as what Traffic Analyzer shows?

I checked and so far found:

/getWanTraffic.asp?client=all&mode=hour&dura=24&date=<UNIX Epoch Timestamp>&_=<UNIX Epoch Timestamp> retrieves upload/download for all devices per hour for 24 hours (with epoch time being end timestamp) for all clients.

/getWanTraffic.asp?client=<MAC Address>&mode=hour&dura=24&date=<UNIX Epoch Timestamp>&_=<UNIX Epoch Timestamp> retrieves upload/download for provided device per hour for 24 hours (with epoch time being end timestamp) for specific client.

/getWanTraffic.asp?client=all&mode=detail&dura=24&date=<UNIX Epoch Timestamp>&_=<UNIX Epoch Timestamp> retrieves upload/download for all devices grouped by app per hour for 24 hours (with epoch time being end timestamp) for specific client.

/getWanTraffic.asp?client=<MAC Address>&mode=detail&dura=24&date=<UNIX Epoch Timestamp>&_=<UNIX Epoch Timestamp> retrieves upload/download for provided device grouped by app per hour for 24 hours (with epoch time being end timestamp) for specific client.

There is also: /getAppTraffic.asp?client=all&mode=hour&dura=24&date=<UNIX Epoch Timestamp>&_=<UNIX Epoch Timestamp> retrieves total upload/download for all devices for date selected (with epoch time being end timestamp) for all clients.

Specific device(s)?

No response

Firmware type

No

Vaskivskyi commented 2 years ago

Hello, @ehendrix23,

Thanks for your feedback and for the collected data! :+1:

Yes. This would be possible. There are already plans to add per-device controls to the integration and this can be one of its features.

ostracizado commented 1 year ago

Hey, @Vaskivskyi - thanks for the work! 👍

Any news about this implementation? Would be a great plus; every time the HA starts backing up and I don't have to go the router's menus to check what's going on... 🕵️

Vaskivskyi commented 1 year ago

Hey, @ostracizado,

This feature is already in work but requires several changes in the underlying Python library. I am trying to implement changes in groups, so the process is a bit faster, but that means I am not going one-by-one with feature requests - mostly those which are similar are implemented first as well as bug fixes.

Probably, I will get to this feature during the following 2 weeks.

gulics commented 1 year ago

Hi, is there any news about this implementation? Thanks

Vaskivskyi commented 1 year ago

Hello, @gulics, the feature implementation is in progress. This is one of the features requiring many small changes in both the backend library and the integration itself, which takes time

KoRioRio commented 8 months ago

video plis, im newbie

Vaskivskyi commented 8 months ago

Hello, @KoRioRio, video of what exactly are you interested in?

KoRioRio commented 7 months ago

video to add interested for Upload/download sensors for devices, plis. im newbie @Vaskivskyi

thehig commented 7 months ago

+1 For this feature