Some modifications were applied to control Tapo P105 smartplugs.
from PyP100 import PyP100
p105 = PyP100.P100("192.168.X.X", "[email protected]", "Password123") # Creating a P105 plug object
p105.handshake() # Creates the cookies required for further methods
p105.login() # Sends credentials to the plug and creates AES Key and IV for further methods
p105.getMacAddress() # Get MacAddress and Set terminalUUID
p105.turnOn() # Sends the turn on request
p105.turnOff() # Sends the turn off request
p105.getDeviceInfo() # Returns dict with all the device info
The following document is the original README.md
.
Tapo P100 is a Python library for controlling the Tp-link Tapo P100 plugs and L510E bulbs.
Use the package manager pip to install PyP100.
pip3 install PyP100
from PyP100 import PyP100
p100 = PyP100.P100("192.168.X.X", "[email protected]", "Password123") #Creating a P100 plug object
p100.handshake() #Creates the cookies required for further methods
p100.login() #Sends credentials to the plug and creates AES Key and IV for further methods
p100.turnOn() #Sends the turn on request
p100.setBrightness(100) #Sends the set brightness request
p100.turnOff() #Sends the turn off request
p100.getDeviceInfo() #Returns dict with all the device info
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.