-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sensor entities #7
Comments
I discovered that UPnP / IGD bandwidth reporting is completely broken on the Bell Home Hub 2000. For example, you can download 100MB and the counter only increases by a fraction of that. However, the web UI looks to be correct and I can see the stats coming from the json / xpath API. Getting the bandwidth info out via the underlying library and this addon would be a great feature to add. |
@deviantintegral I have to say that I don't own this router anymore, thus I didn't prioritize the development in the last year.. |
@deviantintegral can you share the sensor names and XPATH that you would like to see as a sensor? |
I think I've forgotten some of this over the past year. Looking again, I see a POST to a URL-encoded form to create a statistic file like this:
That responds with a link to a CSV (that gets deleted pretty quickly):
The CSV contains data like this:
I believe the second last column is download and the last is upload. The numbers mostly match the web UI, which turns them into percentages, but it's not exact. However, I was sure I remembered seeing stats in JSON like other device data. I'll keep poking around. |
As requested on the Home Assistant Community:
Sensor
Device/DeviceInfo/UpTime
)Binary Sensor:
Device/IP/Interfaces/Interface[Alias='IP_DATA']/Status
)It could happen that those sensors are not available for every device, thus at start-up it should first check if it is available.
Would require iMicknl/python-sagemcom-api#12, so that we can combine multiple sensor updates in 1 call.
Examples: https://github.com/wuseman/SAGEMCOM-FAST-5370e-TELIA/blob/master/configuration-files/xpaths-wuseman
The text was updated successfully, but these errors were encountered: