Skip to content

Python Class for controlling the Kasa TP-Link Smart Plug

License

Notifications You must be signed in to change notification settings

jttaylor/TPLink-SmartPlug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TPLink-SmartPlug

Python Class for controlling the Kasa TP-Link Smart Plug

Usage:

import TPLink

sp = TPLink.SmartPlug("username", "password")

sp.PrintDevices()

MyDeviceID = "your_device_id"

state = sp.GetState(MyDeviceID)

if (state == 0):

    sp.TurnOn(MyDeviceID)
	
else:

    sp.TurnOff(MyDeviceID)

About

Python Class for controlling the Kasa TP-Link Smart Plug

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages