aufräumen
This commit is contained in:
9
backend/development/tests/tapo.py
Normal file
9
backend/development/tests/tapo.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from PyP100 import PyP100
|
||||
|
||||
p100 = PyP100.P100("192.168.0.102", "till.tomczak@mercedes-benz.com", "Agent045") #Creates 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() #Turns the connected plug on
|
||||
p100.turnOff() #Turns the connected plug off
|
Reference in New Issue
Block a user