mirror of
https://github.com/taigrr/tplinkController
synced 2025-01-18 04:43:13 -08:00
5ccb2fd24dbec28d531c6e0074b313b7e6411014
hs100
A tool for using TP-Link HS100/HS105/HS110 wi-fi smart plugs. You can turn them on or off, reboot them, and factory reset them.
Tested to work on Linux, OSX, IRIX, and Windows under WSL.
Loosely based on pyHS100 and research from softScheck.
Usage
hs100 <ip> <command>
Command can be:
on: turn the power onoff: turn the power offreboot: reboot the plugreset-yes-really: factory reset the plug- Alternatively, you can supply a JSON string to be sent directly to the
device. Note that the JSON string must be quoted, like so:
hs100 <ip> '{"system":{"set_relay_state":{"state":1}}}'
Todo
- better error checking
- plug discovery
This program is very basic. Patches welcome!
Description
Languages
C
96.7%
Makefile
3.3%