mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-01-08 22:07:06 +00:00
fix more outdated CLI examples, remove EP40 from bulb list (#383)
* Fix more outdated cli examples * remove EP40 (smart strip) from bulb list
This commit is contained in:
parent
2eecf39bae
commit
e1a30f92e4
@ -149,7 +149,6 @@ If your device is unlisted but working, please open a pull request to update the
|
|||||||
|
|
||||||
### Bulbs
|
### Bulbs
|
||||||
|
|
||||||
* EP40
|
|
||||||
* LB100
|
* LB100
|
||||||
* LB110
|
* LB110
|
||||||
* LB120
|
* LB120
|
||||||
|
@ -5,7 +5,7 @@ The package is shipped with a console tool named ``kasa``, refer to ``kasa --hel
|
|||||||
The device to which the commands are sent is chosen by ``KASA_HOST`` environment variable or passing ``--host <address>`` as an option.
|
The device to which the commands are sent is chosen by ``KASA_HOST`` environment variable or passing ``--host <address>`` as an option.
|
||||||
To see what is being sent to and received from the device, specify option ``--debug``.
|
To see what is being sent to and received from the device, specify option ``--debug``.
|
||||||
|
|
||||||
To avoid discovering the devices when executing commands its type can be passed as an option (e.g., ``--plug`` for plugs, ``--bulb`` for bulbs, ..).
|
To avoid discovering the devices when executing commands its type can be passed as an option (e.g., ``--type plug`` for plugs, ``--type bulb`` for bulbs, ..).
|
||||||
If no type is manually given, its type will be discovered automatically which causes a short delay.
|
If no type is manually given, its type will be discovered automatically which causes a short delay.
|
||||||
|
|
||||||
If no command is given, the ``state`` command will be executed to query the device state.
|
If no command is given, the ``state`` command will be executed to query the device state.
|
||||||
@ -13,7 +13,7 @@ If no command is given, the ``state`` command will be executed to query the devi
|
|||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
Some commands (such as reading energy meter values, changing bulb settings, or accessing individual sockets on smart strips) additional parameters are required,
|
Some commands (such as reading energy meter values, changing bulb settings, or accessing individual sockets on smart strips) additional parameters are required,
|
||||||
which you can find by adding ``--help`` after the command, e.g. ``kasa emeter --help`` or ``kasa hsv --help``.
|
which you can find by adding ``--help`` after the command, e.g. ``kasa --type emeter --help`` or ``kasa --type hsv --help``.
|
||||||
Refer to the device type specific documentation for more details.
|
Refer to the device type specific documentation for more details.
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,13 +45,13 @@ All command-line commands can be used with transition period for smooth changes.
|
|||||||
|
|
||||||
.. code::
|
.. code::
|
||||||
|
|
||||||
$ kasa --bulb --host <host> off --transition 15000
|
$ kasa --type bulb --host <host> off --transition 15000
|
||||||
|
|
||||||
**Example:** Change the bulb to red with 20% brightness over 15 seconds:
|
**Example:** Change the bulb to red with 20% brightness over 15 seconds:
|
||||||
|
|
||||||
.. code::
|
.. code::
|
||||||
|
|
||||||
$ kasa --bulb --host <host> hsv 0 100 20 --transition 15000
|
$ kasa --type bulb --host <host> hsv 0 100 20 --transition 15000
|
||||||
|
|
||||||
|
|
||||||
API documentation
|
API documentation
|
||||||
|
Loading…
Reference in New Issue
Block a user