PlugP100 is an asynchronous Python library designed to control TP-Link Tapo P100, P105, P110, L900, L920, and similar smart devices locally. It provides a simple API for common operations like turning devices on/off, checking status, and accessing energy monitoring data where available. The current stable version is 5.1.7, with active development on version 6.x indicating a potential upcoming major release with significant changes.
pip install plugp100Verified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to connect to a Tapo P100-series smart plug, retrieve its status, and toggle its power state. It uses environment variables for secure credential management and handles common exceptions. The library is asynchronous, so the code must be run within an `asyncio` event loop.
Monitor the official GitHub repository for release notes of 6.0.0 and review the migration guide upon its stable release.
Ensure your application's entry point uses `asyncio.run(main_async_function())` and all library calls are properly `await`-ed. Review `asyncio` basics if unfamiliar.
Verify the device's local IP address, your Tapo account credentials, and ensure the device is on the same network as the script and accessible. Tapo credentials are email and password, not local device passwords.
Refer to the device's specifications and the library's documentation for which features are available for your specific Tapo device model (e.g., `get_current_energy_usage` is only for P110/P105).
No dependency data recorded yet.