FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

python-kasa/docs/source/smartstrip.rst at patch · IDavinciCode/python-kasa · GitHub

Repository navigation

Latest commit

 

History

History
36 lines (22 loc) · 791 Bytes
  1. python-kasa
  2. docs
  3. source

smartstrip.rst

File metadata and controls

36 lines (22 loc) · 791 Bytes

Smart strips

Note

Feel free to open a pull request to improve the documentation!

To command a single socket of a strip, you will need to specify it either by using --index or by using --name. If not specified, the commands will act on the parent device: turning the strip off will turn off all sockets.

Example: Turn on the first socket (the indexing starts from zero):

$ kasa --type strip --host <host> on --index 0

Example: Turn off the socket by name:

$ kasa --type strip --host <host> off --name "Maybe Kitchen"
.. autoclass:: kasa.SmartStrip
    :members:
    :inherited-members:
    :undoc-members:

Back | FazBrowse Home | New Git URL