Skip to main content

A module for controlling the TP-Link Tapo P100 Plugs, P105 Plugs and L1510 Bulbs.

Project description

Tapo P100

Tapo P100 is a Python library for controlling the Tp-link Tapo P100/P105/P110 plugs and L510E bulbs.

Installation

Use the package manager pip to install PyP100.

pip3 install PyP100

Usage

from PyP100 import PyP100

p100 = PyP100.P100("192.168.X.X", "email@gmail.com", "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
from PyP100 import PyP110

p110 = PyP110.P110("192.168.X.X", "email@gmail.com", "Password123") #Creating a P110 plug object

p110.handshake() #Creates the cookies required for further methods
p110.login() #Sends credentials to the plug and creates AES Key and IV for further methods

#PyP110 has all PyP100 functions and additionally allows to query energy usage infos
p110.getEnergyUsage() #Returns dict with all the energy usage

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Contributers

K4CZP3R
Sonic74

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyP100-0.0.14.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file PyP100-0.0.14.tar.gz.

File metadata

  • Download URL: PyP100-0.0.14.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for PyP100-0.0.14.tar.gz
Algorithm Hash digest
SHA256 c6905f46bd81af338f9f334e5ad4a557fae17d0c7402ab5dd53c269cc7bc52ff
MD5 63fe9a66f2e019ba252fc65f2716637b
BLAKE2b-256 6e2fe4c58a681755957af68fb3f997ff0189b45325b20bf5643346689b8731f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page