Device Tracker component for D-Link Routers

Can somebody please add support for Device Tracker component for D-Link Routers.
I have an TP-Link TL-WR703N Micro Router running DD-WRT, but the wireless signal keeps dropping out, so I would like to rather do the tracking with my D-Link DSL-2750U ADSL Router.

Kind Regards,
Riaan

I thought to make a plugin for D-Link support but I have spoken to them and they have no public API for this purpose.

In the end, I used nmap scanner for it.

Thank you for trying. I will try to implement NMAP.

Could the HNAP soap webservices be used for some of the DLink Routers. I believe my Dir-880L and Dir-859 support the HNAP protocols.

You can get the list of services by visiting the http://routerip/HNAP1

It may be at least a way to get stats about the router. Some services seem interesting such as the following.
http://purenetworks.com/HNAP1/Reboot
http://purenetworks.com/HNAP1/GetConnectedDevices
http://purenetworks.com/HNAP1/GetNetworkStats
http://purenetworks.com/HNAP1/IsDeviceReady
http://purenetworks.com/HNAP1/GetClientStats

This service allows one to run a shell script to reboot the router. perhaps with this knowledge someone can build a service that actually connects to the routers that are compatible and allow for some services. Its a shell script and didn’t run on Hass.io but if it can be adapted and extended on python it may be a good way.

I have a D-link DIR-825 router.
Tried to access “/HNAP1/” but it is 404.

The router does have telnet, so if I telnet into the router and then

iwlist wlan0 ap
iwlist wlan1 ap

I get the list of connected clients.
Is there something ready that can make a telnet connection, run the commands and return the list of devices to ha?

Ideas?

Arik.

I made a custom component to query a d-link ap/router for who is connected to the wireless interface.

Feedback is welcome.