TP-Link Smarthome API
Known Supported Devices
|HS100, HS103, HS105, HS107, HS110,
HS200, HS210, HS220, HS300, KP303, KP400
|LB100, LB110, LB120, LB130, LB200, LB230
Most other TP-Link Plug and Bulb models may work as well.
- TP-Link Smarthome Device Simulator - Useful for automated testing
- TP-Link Smarthome Crypto
- TP-Link Smarthome Homebridge Plugin
See more examples.
const Client = ;const client = ;const plug = client;// Look for devices, log to console, and turn them onclient;
Install the command line utility with
npm install -g tplink-smarthome-api. Run
tplink-smarthome-api --help for help.
For functions that send commands, the last argument is
SendOptions where you can set the
transport ('tcp','udp') and
Functions that take more than 3 arguments are passed a single options object as the first argument (and if its a network command, SendOptions as the second.)
Thanks to George Georgovassilis and Thomas Baust for figuring out the HS1XX encryption.
Some design cues for Client based on node-lifx