A Home Assistant enthusiast who goes by the name of menahishayan couldn’t find any component which would allow them to control their TP-Link router. The solution? They coded their own. The T-Link component for Home Assistant is still in its infancy and as of writing supports the TP-Link Archer C50 and the TP-Link N600, but it already boasts some impressive features.
Control your TP-Link router using Home Assistant
As already stated, the goal of this component was to be able to control a TP-Link router. Because TP-Link hasn’t published any open-source API, the developer had to reverse engineer the router’s web management interface. However, if you do own one of the supported TP-Link routers, this integration offers a lot of features:
- A switch to power toggle the router, allowing you to restart it using Home Assistant.
- The option to enable or disable your WAN connection.
- Control over the 2.4 GHz and 5 GHz bands. Allowing you to disable one or the other band.
- Device tracker integration using the router’s client connection.
- An IP address sensor, allowing you to identify the IP address of a client.
- Control over the guest network.
How to install the Home Assistant TP-Link router integration
As with most custom integrations, the TP-Link integration is available in HACS. And I highly suggest you use it to install this integration. By using HACS, you will be notified when updates are released. Alternatively, you can manually install it.
Setting up the TP-Link integration
This integration can only be set up using YAML. There are three components to configure: One for the switches, one for the sensors, and one for the device tracker. All three are detailed on the GitHub page.