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.

Installation

You can install yeecli with pip:

pip install yeecli

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:

yeecli --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.0.11.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

yeecli-0.0.11-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for yeecli-0.0.11.tar.gz
Algorithm Hash digest
SHA256 b3c7d11a5c94863e1ee97e7133e61007f4a0b2cf68d159034e02541a1c7a43e6
MD5 6e5ac81893e599cf6c8d5b1e6c46be25
BLAKE2b-256 101b80c60ec5cf794a09626c910df54355f3acadf4df8c8b5358b98c88362c9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for yeecli-0.0.11-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 52ca8e95b875860524b1eaab15c6b5726e1fb6c418f52886f69e5b408ce790c0
MD5 3dd1ddd030fcf24e99d196bc9dd74758
BLAKE2b-256 0b79046ce3d891cf7d69f32c58e5262663ad5fe0f8928ab95289cdeb1e4563cf

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