TP-Link Smartplug/Smartbulb Control for Windows

plugin-iconJust finished the basic version 1.0 of TP-Link Smartplug/Smartbulb control for Windows, still working on it, so follow my blog and check back here for new versions.

These are standalone executables, no extra DLL files are required.

If you have any issues please let me know in the comments below.

Instructions

GUI

On the settings tab add your TP-Link cloud username and password.

NOTE: Only devices registered in the Android/iOS as remote and connected will appear.

Select a device and click On or Off button, double-click device to toggle.

Select a bulb and adjust brightness value, click the set button, this will turn on the bulb with selected brightness.

NOTE: I have hardcoded that a device named SERVER cannot be turned off without prompting, and the toggle is disabled.

TPLink-Plugs
TPLink showing Plugs and Bulbs, a bulb is selected so brightness setting is shown

Command Line

TPcmd

This allows batch scripts to control devices.

The login command is only required once per session, this saves the Username and Password for multiple commands, Logoff clears them.

Example Script

TPcmd -login -username “test@account.com” -password “password”
TPcmd -device “LAMP” -on
TPcmd -device “LAMP” -brightness 20
TPcmd -device “BEDROOM” -off
TPcmd -logoff

Commands

TPcmd -login -username “test@account.com” -password “password”
Login: OK

TPcmd -devicelist
DOOR,PLUG,HS100(UK)
BEDROOM,PLUG,HS100(UK)
SERVER,PLUG,HS110(UK)
LAMP,BULB,LB110(EU)

TPcmd -device “BEDROOM” -on
Relay: 1

TPcmd -device “BEDROOM” -off
Relay: 0

TPcmd -device “BEDROOM” -toggle
Relay: 1

TPcmd -device “BEDROOM” -status
Relay: 0 or 1

TPcmd -device “BEDROOM” -brightness  62
Relay: 1
Brightness: 62

TPcmd -logoff
Logoff: Ok

Supported Devices and Actions

HS100\HS110

  • Relay On/Off/Toggle

LB100

  • Relay On/Off/Toggle

LB110/LB120/LB130

  • Relay On/Off/Toggle
  • Brightness

Download

Both require .net 4.5 minimum

TPLink-v1.0
TPcmd-v1.0

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s