Controller for TP-Link Tapo P100 and other devices
Project description
Plug P100
This is a fork of original work of @K4CZP3R
The purpose of this fork is to provide the library as PyPi package.
How to install
pip install plugp100
Code example
from plugp100 import TapoApi, TapoSwitch, TapoLight
from plugp100.core.params import SwitchParams, LightParams
sw = TapoApi("<ip>")
sw.login("<email>", "<passwd>")
sw.set_device_info(SwitchParams(True))
sw.set_device_info(LightParams(None, 100))
print(sw.get_state())
# create specific switch or light
# sw = TapoSwitch("<ip>", "<email>", "<passwd>")
# sw.on()
# lg = TapoLight("<ip>", "<email>", "<passwd>")
# lg.set_brightness(100)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plugp100-2.1.2.dev1.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for plugp100-2.1.2.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1180fc4c288a6ab21e891c755d0eb6fe46bff5981ed64f813a6712309553bbe |
|
MD5 | 4875c5bbd299bdab3c838ed7daf25fdf |
|
BLAKE2b-256 | a36844752fa2c6c6fe8dacf91e3af8492f5cfc6113958fbb405c83bb958b19bc |