labgrid
labgrid copied to clipboard
labgrid/driver/power: Add Tapo(Kasa) smart plug support
Description Adds power driver integration for Tapo Smart plugs with Klap authentication. python-kasa requires KASA_USERNAME and KASA_PASSWORD environment variables to be set to handle the authentication.
Checklist
- [x] Documentation for the feature
- [x] Tests for the feature
- [x] The arguments and description in doc/configuration.rst have been updated
- [ ] Add a section on how to use the feature to doc/usage.rst
- [ ] Add a section on how to use the feature to doc/development.rst
- [x] PR has been tested
- [ ] Man pages have been regenerated
Apparently available class for Tapo smart plugs is smart.SmartDevice , tried to find similar abstraction as SmartStrip but unfortunately not available :face_with_diagonal_mouth:
Introducing KlapTransportV2 auth type of transport particularly brings the complexity here. I just fetched that information from debugging while using python-kasa on my local to power on/off devices