-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve cli documentation for bulbs and power strips (#123)
- Loading branch information
Showing
10 changed files
with
126 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
python-kasa documentation | ||
========================= | ||
|
||
.. mdinclude:: ../../README.md | ||
|
||
.. toctree:: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,59 @@ | ||
Bulbs | ||
=========== | ||
|
||
Supported features | ||
****************** | ||
|
||
* Turning on and off | ||
* Setting brightness, color temperature, and color (in HSV) | ||
* Querying emeter information | ||
* Transitions | ||
|
||
Currently unsupported | ||
********************* | ||
|
||
* Setting the default transitions | ||
* Timers | ||
|
||
.. note:: | ||
|
||
Feel free to open a pull request to add support for more features! | ||
|
||
Transitions | ||
*********** | ||
|
||
All commands changing the bulb state can be accompanied with a transition, e.g., to slowly fade the light off. | ||
The transition time is in milliseconds, 0 means immediate change. | ||
If no transition value is given, the default setting as configured for the bulb will be used. | ||
|
||
.. note:: | ||
|
||
Accepted values are command (and potentially bulb) specific, feel free to improve the documentation on accepted values. | ||
|
||
**Example:** While KL130 allows at least up to 15 second transitions for smooth turning off transitions, turning it on will not be so smooth. | ||
|
||
Command-line usage | ||
****************** | ||
|
||
All command-line commands can be used with transition period for smooth changes. | ||
|
||
|
||
**Example:** Turn the bulb off over a 15 second time period. | ||
|
||
.. code:: | ||
$ kasa --bulb --host <host> off --transition 15000 | ||
**Example:** Change the bulb to red with 20% brightness over 15 seconds: | ||
|
||
.. code:: | ||
$ kasa --bulb --host <host> hsv 0 100 20 --transition 15000 | ||
API documentation | ||
***************** | ||
|
||
.. autoclass:: kasa.SmartBulb | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
Dimmers | ||
======= | ||
|
||
.. note:: | ||
|
||
Feel free to open a pull request to improve the documentation! | ||
|
||
API documentation | ||
***************** | ||
|
||
.. autoclass:: kasa.SmartDimmer | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
Light strips | ||
============ | ||
|
||
.. note:: | ||
|
||
Feel free to open a pull request to improve the documentation! | ||
|
||
API documentation | ||
***************** | ||
|
||
.. autoclass:: kasa.SmartLightStrip | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
Plugs | ||
===== | ||
|
||
.. note:: | ||
|
||
Feel free to open a pull request to improve the documentation! | ||
|
||
|
||
API documentation | ||
***************** | ||
|
||
.. autoclass:: kasa.SmartPlug | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,37 @@ | ||
Smart strips | ||
============ | ||
|
||
|
||
.. note:: | ||
|
||
The emeter feature is currently not implemented for smart strips. See https://github.com/python-kasa/python-kasa/issues/64 for details. | ||
|
||
.. 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. | ||
|
||
**Example:** Turn off the first socket (the indexing starts from zero): | ||
|
||
.. code:: | ||
$ kasa --strip --host <host> on --index 0 | ||
**Example:** Turn on the socket by name: | ||
|
||
.. code:: | ||
$ kasa --strip --host <host> off --name "Maybe Kitchen" | ||
API documentation | ||
***************** | ||
|
||
.. autoclass:: kasa.SmartStrip | ||
:members: | ||
:undoc-members: |