Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TP-Link KP303 Smart Plug #980

Closed
piedshag opened this issue Apr 14, 2021 · 2 comments
Closed

TP-Link KP303 Smart Plug #980

piedshag opened this issue Apr 14, 2021 · 2 comments

Comments

@piedshag
Copy link

I have made a custom output for the kp303 smart plug which is working well so far.

https://gist.github.com/piedshag/7b0f5814501190c2ebe90c2e348ce7e5

@kizniche
Copy link
Owner

Thanks for the contribution. I actually just bought this power strip. I'll make some modifications to allow all 3 outlets to be controlled from a single Output module and I'll include it for the next release.

@kizniche
Copy link
Owner

kizniche commented Apr 22, 2021

I made several improvements to the input I added, namely a watch function that periodically queries the states of the outlets, which will also reconnect to the strip if it disconnects. This is important because the original version would not reconnect after a disconnect (which can be easily induced by unpowering the strip, attempting to switch an outlet, then powering it) and you would not be able to switch any outlets until a daemon restart or output class reload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants