Skip to content

natefox/tplink-hs100

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project is deprecated!

Use this instead: https://github.com/plasticrake/hs100-api

tplink-hs100

I wanted to figure out how to turn on or off my TP-Link HS100 Smart Plug. There doesnt seem to be any public API so I ran tcpdump on my tomato router while watching the commands sent from my phone to the device.

You'll probably need to change the IPADDR constant in the scripts but I dont think the port needs to change.

How I got the data

This might be useful to others, but if nothing else its my own notes of how to replicate my data:

  1. SSH into the tomato router
  2. Install the package manager ipkg from these directions: http://tomatousb.org/tut:optware-installation
  3. Install tcpdump ipkg install tcpdump
  4. Start capturing: /opt/sbin/tcpdump -w /mnt/sdb1/lighton-to-off-v2.tcpdump host 192.168.1.150
  5. Copy file from /mnt/sdb1/*.tcpdump to my machine
  6. Use wireshark to open *.tcpdump files.
  7. Optional: use this filter on wireshark: tcp.flags.push == 1 to grab just the tcp packets. This might not be good if you want to inpsect the UDP broadcast packets.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages