8

I have a TP-Link LB120 bulb and configured with Kasa app. Now I able to control the bulb using Kasa app. Like turn on, off, change the colour of the light etc. So I need to set up the same things via an API. So let me know TP-Link provides any API support for controlling the light operations. I have found some node modules, but I don't know whether the modules are officially published by TP-Link.

Helmar
  • 8,450
  • 6
  • 36
  • 84
joe
  • 271
  • 2
  • 2

1 Answers1

3

A really quick google (tp-link bulb api) turns up a npm module that claims support: https://www.npmjs.com/package/tplink-lightbulb

They are unlikely to be officially supported by given there is discusion of reverse engineering the protocol, it even includes a wireshark plugin to help decode the network protocol.

The only way to get a definitive answer will be to ask tp-link directly (or find the documentation on their website)

If on the other hand you are asking for support for things like Alexa/Google Home then a quick search of the Alexa skill catalogue shows a TP-Link Kasa skill and a similarly named entry in the Google Home list.

hardillb
  • 12,813
  • 1
  • 21
  • 34