andig / pimatic-fritz

Pimatic plugin for Fritz!Box SmartHome and FritzDect!200 Node
GNU General Public License v2.0
8 stars 6 forks source link

Fritzbox stats #43

Open Clark2309 opened 6 years ago

Clark2309 commented 6 years ago

Hi, is it possible to show more stats of the fritz box like dsl connection upload and download rates? br christof

andig commented 6 years ago

There's no API for that so you'd need to rely on screen scraping. See fritzapi battery charge for an example how to. Would be happy to take a PR.

mwittig commented 6 years ago

Fritzbox provides some statistics via uPnP. Maybe you can use "UPnP to MQTT" mapper (upnp-sub-mqtt might do here) to expose the service attributes to pimatic.

http://fritz.box:49000/igddesc.xml http://fritz.box:49000/igdconnSCPD.xml http://fritz.box:49000/igdicfgSCPD.xml http://fritz.box:49000/igddslSCPD.xml http://fritz.box:49000/igd2ipv6fwcSCPD.xml