2020-06-30 00:29:52 +00:00
|
|
|
Smart strips
|
|
|
|
============
|
|
|
|
|
2022-10-18 17:08:10 +00:00
|
|
|
.. contents:: Contents
|
|
|
|
:local:
|
|
|
|
|
2020-12-09 09:13:14 +00:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
Feel free to open a pull request to improve the documentation!
|
|
|
|
|
|
|
|
Command-line usage
|
|
|
|
******************
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
2021-02-15 16:59:17 +00:00
|
|
|
**Example:** Turn on the first socket (the indexing starts from zero):
|
2020-12-09 09:13:14 +00:00
|
|
|
|
|
|
|
.. code::
|
|
|
|
|
2022-10-18 23:16:11 +00:00
|
|
|
$ kasa --type strip --host <host> on --index 0
|
2020-12-09 09:13:14 +00:00
|
|
|
|
2021-02-15 16:59:17 +00:00
|
|
|
**Example:** Turn off the socket by name:
|
2020-12-09 09:13:14 +00:00
|
|
|
|
|
|
|
.. code::
|
|
|
|
|
2022-10-18 23:16:11 +00:00
|
|
|
$ kasa --type strip --host <host> off --name "Maybe Kitchen"
|
2020-12-09 09:13:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
API documentation
|
|
|
|
*****************
|
|
|
|
|
2020-06-30 00:29:52 +00:00
|
|
|
.. autoclass:: kasa.SmartStrip
|
|
|
|
:members:
|
2022-04-05 23:13:27 +00:00
|
|
|
:inherited-members:
|
2020-06-30 00:29:52 +00:00
|
|
|
:undoc-members:
|