WIP: Add preliminary support for tapo plugs - #499
Closed
rytilahti wants to merge 9 commits into
Closed
Conversation
rytilahti
marked this pull request as draft
August 18, 2023 17:52
rytilahti
force-pushed
the
feat/tapoplug_draft
branch
2 times, most recently
from
August 18, 2023 18:24
3432ee1 to
b47e28d
Compare
rytilahti
force-pushed
the
feat/tapoplug_draft
branch
from
August 26, 2023 13:48
0392bfc to
1676b7a
Compare
Member
Author
|
Rebased on top of #488 for testing, the device instances can now be initialized based on the new discovery protocol responses. |
rytilahti
force-pushed
the
feat/tapoplug_draft
branch
from
September 11, 2023 22:27
1676b7a to
85901d6
Compare
Merged
rytilahti
force-pushed
the
feat/tapoplug_draft
branch
from
November 18, 2023 21:38
85901d6 to
12208af
Compare
Member
Author
|
Closing in favor of #552, this served its role well as a test bed for library changes to accommodate support for other transport&encryption protocols but will not be necessary anymore. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a draft to show how support for tapo plugs could be integrated into this library.
The implementation is a shim that implements the
SmartPluginterface and uses https://github.com/petretiandrea/plugp100 for all device communications.At the moment, this is not aimed for general consumption but is just a PoC. The username, the password and list of IP addresses that should be detected as tapo plugs are read from environment variables:
KASA_TAPO_EMAILKASA_TAPO_PASSWORDExample how it looks like: