Yee CLI
Simple Yeelight Room control CLI written in Python. Control your lights from terminal.
Installation
pip install yee-cli
Config
Location: ~/.yee_rooms
Format: JSON
Example:
{
"office":[
"192.168.1.1",
"192.168.1.2"
],
"bedroom":[
"192.168.1.3",
"192.168.1.4"
]
}
Config path can be also passed with -c flag or YEE_ROOM_CONFIG env variable
To find bulb IPs use tools like nmap, nutty or check on your YeeLight app
Usage
yee [-c --config] [ROOM_NAME*] COMMAND [ARGS]...`
*Use room names from config
Example Usage:
yee bedroom on
yee bedroom dim 10
yee color_list
yee bedroom color indianred
... romance on !
Commands:
color Set lights to given color.
color_list Available color list
dim Dim lights to level (1-100).
off Turn lights off.
on Turn lights on.
random_color Switch to random color.
toggle Toggle lights.
Troubleshooting
- Connection Issues (make sure):
IP addresses of bulbs in config are correct.
LAN Control is ON (https://www.yeelight.com/faqs/lan_control).
You are connected to same WIFI network as your bulbs.
- Other:
For more debug ideas visit https://github.com/skorokithakis/python-yeelight
Credits
Wouldn’t be possible without skorokithakis/python-yeelight.
Uses webcolors
Uses click
Created with Cookiecutter and the johanvergeer/cookiecutter-poetry project template.
After writing almost all I realised that author of python-yeelight also wrote CLI. Check it out - it has different API / config and more features >>> yeecli
Metadata
Release files for yee-cli 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yee-cli-0.1.2.tar.gz | 5.4 kB | Without provenance | Details for yee-cli-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yee_cli-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for yee_cli-0.1.2-py3-none-any.whl |
Total release size: 11.1 kB
Release files / yee-cli-0.1.2.tar.gz
| Download URL | yee-cli-0.1.2.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d64dfdb729031b91012c8a86cfb192ecda88a7257e9d228bb0de1ede814db1e
|
|
BLAKE2b-256 checksum How to use checksums |
eb1f3882c6e1cfea80d0af3e53ea38376b2338359f2abd1b1140e29e1e770408
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.4.97-1-lts
|
Release files / yee_cli-0.1.2-py3-none-any.whl
| Download URL | yee_cli-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
233d28ffbad23686bd88cb3a3d073bf0755498b2389831bbe763391f396f0c42
|
|
BLAKE2b-256 checksum How to use checksums |
72b47edb9427f0d80323199d94237d8810c5cfc1ccf67702f9e46bcced1da644
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.4.97-1-lts
|
Security for yee-cli 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.