yeectl
Yeectl is a Python TUI for controlling Yeelights. It uses the Yeelight Python library to control the lights, and py-cui to create an interface.
Installation
To install remotely using pip:
pip install yeectl
To install from source using using pip:
git clone https://github.com/Bean499/yeectl
cd yeectl
pip install .
Usage
Run python -m yeectl.
The colours displayed in the bottom right will be loaded from ~/.xresources and ~/.config/yeectl/.
The names of each light will be determined by the custom name set for their IP addresses. If a light does not have a custom name, it will be given a default name based on its model. If there is no set name for its model, it will simply be called "Yeelight".
Setting Custom Names for Lights
yeectl reads the file ~/.config/yeectl/lights to check for custom light names. Light IP addresses should be seperated from their name by a colon and a space.
Example ~/.config/yeectl/lights:
0.0.0.0: Bedroom light
0.0.0.1: Desk lightstrip
Importing Colours from XResources
yeectl will import any colours from ~/.xresources that are set as *.color followed by anything.
Importing Custom Colours
yeectl will import any custom colours from ~/.config/yeectl/colours ~/.config/yeectl/colors. Colour names should be seperated from their hexadecimal value by a colon and a space.
Example ~/.config/yeectl/colours:
Red: #ff0000
Green: #00ff00
Blue: #0000ff
Todo
- Add a hotkey to show the IP address of a light
Allow the user to manually name lights using a configuration file- Load colours from
$XDG_CONFIG_HOMEinstead of~/.config
License
yeectl is licensed under the MIT license.
Changelog
0.0.3
- Added ability to set custom light names
- Fixed a crash that would occur when a model doesn't have a set display name
0.0.2
- Fixed a few crashes
0.0.1
- First release
Metadata
Release files for yeectl 0.0.3
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 |
|---|---|---|---|---|
| yeectl-0.0.3.tar.gz | 4.9 kB | Without provenance | Details for yeectl-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yeectl-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for yeectl-0.0.3-py3-none-any.whl |
Total release size: 10.7 kB
Release files / yeectl-0.0.3.tar.gz
| Download URL | yeectl-0.0.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45c8bd2099494cba4340aab524d5980ec3e934b30c17777d68153697d1271299
|
|
BLAKE2b-256 checksum How to use checksums |
7c6e356338082d995f0eefae72648a13bb6291d403d1b2aea43f3b0917efd0bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Release files / yeectl-0.0.3-py3-none-any.whl
| Download URL | yeectl-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f58c4c36bcc84a53d6569f9f8683a25238f5d69088d81018396339c120c03c7
|
|
BLAKE2b-256 checksum How to use checksums |
3f58d4a86e22c3f4def8df97816a7dfd6d193e72ad36856821f324452b09d3eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.6
|
Security for yeectl 0.0.3
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.