- TAPO_PASSWORD in .env korrigiert (Agent045) - Unnötige Verzeichnisse entfernt (node_modules, archiv in backend/, etc.) - .gitignore erstellt um .env-Dateien zu schützen - Projektstruktur bereinigt (von 1.5MB auf 186KB reduziert) - Flask Web UI vollständig funktionsfähig 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
384 B
Python
9 lines
384 B
Python
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 |