labgrid icon indicating copy to clipboard operation
labgrid copied to clipboard

labgrid/driver/power: Add Tapo(Kasa) smart plug support

Open onurcelep opened this issue 1 year ago • 1 comments

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

onurcelep avatar Dec 06 '24 10:12 onurcelep

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

onurcelep avatar Jan 08 '25 13:01 onurcelep