Skip to main content

yeecli is a command-line utility for controlling the YeeLight RGB LED lightbulb.

Project description

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! Here are a few sample commands:

yee --ip=192.168.0.34 turn on
yee --ip=192.168.0.34 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

Will probably be supported at some point:

  • Music mode

  • Bulb groups

  • 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

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

yee --bulb=bedroom brightness 100

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yeecli-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

yeecli-0.1.0-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yeecli-0.1.0.tar.gz.

File metadata

  • Download URL: yeecli-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yeecli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d929deeef1b63bc0430f3d6e13ff4b20866efa1deb7762bb6a9c91075a588dd1
MD5 afc020339824f6d91902009cc3e252f9
BLAKE2b-256 692eb65e22893dd93b05631dd4408ff0928cfd673b15610ec8764195d237ce36

See more details on using hashes here.

File details

Details for the file yeecli-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for yeecli-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 735875e39e7102290e497819a1a91e2d85e7cb1c24bdfd45c7832b0c2291ac11
MD5 647d4fe9d50af01c15aed01dec36326a
BLAKE2b-256 8fa494ac870f4dd5afa7c62537e3c4cb1d4cf8b8f32e8541222f42598173d3fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page