Skip to main content

Controller for TP-Link Tapo P100

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 p100

switch = p100.P100("<ip_address>")
switch.handshake()
switch.login_request("<username>", "<password>")

# change state of plug
switch.change_state(1, "88-00-DE-AD-52-E1") # (0 -> off, 1 -> on)

# retrieve the state of plug
is_on = switch.is_on()
state = switch.get_state() # this retrieve a complete status

Project details


Release history Release notifications | RSS feed

This version

2.0

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.0.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

plugp100-2.0-py3-none-any.whl (22.9 kB view hashes)

Uploaded Python 3

Supported by

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