-
-
Notifications
You must be signed in to change notification settings - Fork 103
Request device support
petretiandrea edited this page Aug 18, 2021
·
4 revisions
This wiki aim to clarify how request for a new device support of TAPO series.
First, you need to install python3.7
and pip
. After that, follow these steps:
- install plugp100 using pip:
pip install plugp100
(>= 2.1.8) - create a new python file, like
main.py
with following content:
import asyncio
from plugp100 import TapoApiClient
async def main():
# create generic tapo api
sw = TapoApiClient("<ip>", "<email>", "<passwd>")
await sw.login()
print(await sw.get_state_as_dict())
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.run_until_complete(asyncio.sleep(0.1))
loop.close()
- replace
ip
,email
andpassword
with right values (email and password is the same used with tapo app) - run with python
python main.py
Post the output into a new issue ;)