Skip to content

Latest commit

 

History

History

tp-link-hs100-smartplug

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Command line client for the tp-link hs100, hs110 and hs200 wifi plug

Script to connect over TCP/IP to an hs100, hs103, hs110, hs200 and KP105 smart plugs, switch it on and off and query status information. You'll need the IP address and port (was 9999 in my tests) and a command, e.g.:

Switch plug on:

hs100.sh 192.168.1.20 9999 on

Switch plug off:

hs100.sh 192.168.1.20 9999 off

Check if plug is on or off:

hs100.sh 192.168.1.20 9999 check

There are reports that this doesn't work with newer firmware

Print plug system status:

hs100.sh 192.168.1.20 9999 status

Print power consumption (not supported with my hs100 so not tested):

hs100.sh 192.168.1.20 9999 emeter

Running with docker

docker run -it georgovassilis/hs100:latest 192.168.1.20 9999 on