Integrate your TP-Link router with Home Assistant

Disclosure: This post contains affiliate links. If you click through and make a purchase, I’ll earn a commission, at no additional cost to you. Read my full disclosure here.

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.


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.

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.


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.

Home Assistant gets an air purifier card

Building a physical volume controller for Home Assistant using ESPHome

Liam Alexander Colman, the author and maintainer of Home Assistant Guides.

About Liam Alexander Colman

Liam Alexander Colman has been using Home Assistant for various projects for quite some time. What started off with a Raspberry Pi quickly became three Raspberry Pis and eventually a full-blown server. I now use Unraid as my operating system, and Home Assistant happily runs in a Docker container. My personal setup includes many Zigbee devices as well as integrations with existing products such as my Android TV box. Read on to find out more on how I got started with Home Assistant.

Leave a comment

Share to...