Skip to main content
https://img.shields.io/pypi/v/yeecli.svg https://gitlab.com/stavros/yeecli/badges/master/build.svg

yeecli is a command-line utility for controlling the YeeLight RGB LED lightbulb. It is released under the BSD license.

Quick start

You can install yeecli with pip:

pip install yeecli

You’re done (make sure developer mode is enabled for your bulb in the app)! Here are a few sample commands:

yee --ip=192.168.0.34 turn on
yee --ip=192.168.0.34,192.168.0.28:8329 toggle
yee --ip=192.168.0.34 rgb ff00ff
yee --ip=192.168.0.34 brightness 100

Features

This is a list of features supported right now and features that I’m wanting to add later.

Currently supported:

  • Non-music modes

  • All flow transitions in the protocol

  • Additional HSV flow transition

  • Presets

  • Multiple bulbs

  • Bulb groups

Will probably be supported at some point:

  • Music mode

  • Discovery

Usage

To see the commands supported by yeecli, just run it without any commands. It allows you to turn the light bulb on or off, set the RGB value, the color temperature, the HSV value, etc.

yeecli does not support discovery, so you have to specify the IP of the bulb you want to use every time. To make this easier, yeecli supports using a configuration file.

Simply create a file in ~/.config/yeecli/yeecli.cfg that looks something like this:

[default]
ip = 192.168.12.3
port = 55433
effect = smooth
duration = 500

And the defaults will be loaded from it. All the values in it are optional, and you can override them in the command line when running the script.

You can also specify multiple bulbs like so:

[default]
ip = 192.168.12.3
port = 55433
effect = smooth
duration = 500

[bedroom]
ip = 192.168.12.4
effect = smooth
duration = 500

[hallway]
ip = 192.168.12.5:88273,192.168.12.3

Then, to select a specific bulb/bulb group, just pass it to the --bulb option:

yee --bulb=bedroom brightness 100

Release files for yeecli 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yeecli 0.2.0
File Size Uploaded
yeecli-0.2.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yeecli 0.2.0
File Interpreter ABI Platform
yeecli-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.3 kB

Release files / yeecli-0.2.0.tar.gz

Download URL yeecli-0.2.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2a534273ac7997f7e3991d22153e8d17efc87d2e9ee99e6bb4acb8097206d585
BLAKE2b-256 checksum
How to use checksums
dba22c235cba39e87e5224b28e6dec653dc22c21087b4026dd85d997cfe71f5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

Release files / yeecli-0.2.0-py2.py3-none-any.whl

Download URL yeecli-0.2.0-py2.py3-none-any.whl
Size 7.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
22014b66d2bd6403539c76c6bce01683f7b361b2868304862a0acc2ebd388ccc
BLAKE2b-256 checksum
How to use checksums
7fca9a27cc5ed6e9db9b95a93fe66bf1f3207340c7c067bf8b50a78a542a9239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.16

2 release files

0.0.15

4 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

3 release files

0.0.7

3 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page