PHP-based toolset to programmatically control TP-Link Smart Plugs.
| Model | Type |
|---|---|
| HS100 | Plug |
- Run
composer installto install dependencies. - Copy or rename
config.sensitive_passwords.BLANK.phptoconfig.sensitive_passwords.phpand fill in values.TPLINK_TERMIDis just a random UUID4 string used to identify this little app, generate one here.TPLINK_CLOUD_USERNAMEandTPLINK_CLOUD_PASSWORDare what you use to sign into the Kasa app.
$ php -f ./get_devices.php$ php -f ./command_device.php -- --device=__32_HEX_DEVICE_ID__ --action=turn_on$ php -f ./command_device.php -- --device=__32_HEX_DEVICE_ID__ --action=turn_offThanks to Alex D. from IT Nerd Space, plasticrake/tplink-smarthome-api, and the Guzzle team