Skip to main content

A Python library for controlling YeeLight RGB bulbs.

Project description

https://gitlab.com/stavros/python-yeelight/badges/master/build.svg https://gitlab.com/stavros/python-yeelight/badges/master/coverage.svg https://img.shields.io/pypi/v/yeelight.svg Documentation Status

yeelight is a simple library that allows you to control YeeLight WiFi RGB LED bulbs through your LAN.

Installation

There are many ways to install yeelight:

Usage

To use yeelight, first enable “development mode” on your bulb through the YeeLight app. Then, just import the library into your project like so:

>>> from yeelight import Bulb

Afterwards, instantiate a bulb:

>>> bulb = Bulb("192.168.0.5")
>>> bulb.turn_on()

That’s it!

Refer to the rest of the documentation for more details.

Contributing

If you’d like to contribute to the code, thank you! To install the various libraries required, run (preferably in a virtualenv):

$ pip install -Ur requirements_dev.txt

In order for your MR to pass CI, it needs to be checked by various utilities, which are managed by pre-commit. pre-commit will be installed by the above command, but you also need to install the pre-commit hook:

$ pre-commit install

The hook will run on commit. To run it manually (e.g. if you’ve already committed but forgot to run it, just run):

$ pre-commit run -a

Thanks again!

License

yeelight is distributed under the BSD license.

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

yeelight-0.5.0.tar.gz (36.4 kB view details)

Uploaded Source

Built Distributions

yeelight-0.5.0-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

yeelight-0.5.0-py2.py3-none-any.whl (77.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yeelight-0.5.0.tar.gz.

File metadata

  • Download URL: yeelight-0.5.0.tar.gz
  • Upload date:
  • Size: 36.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.7

File hashes

Hashes for yeelight-0.5.0.tar.gz
Algorithm Hash digest
SHA256 18a4f936116803b8c48ea4f0f0368a6b9915fb5bbee403bf26823f0974a8a681
MD5 90466ab82460b668faaa361a4b227b97
BLAKE2b-256 1d04b3fee6ef6c70438dc0f81f82557000ff50993c38de8e0eecc2a1bb2808ac

See more details on using hashes here.

File details

Details for the file yeelight-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: yeelight-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.7

File hashes

Hashes for yeelight-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d63f46d338aa5b5b6c6ed9a26d95e887a4d0a124f825e6a1f693d9da294d79d5
MD5 7f962e9121377bac6c25dddf9572a446
BLAKE2b-256 4fd1568a9fb04eb902db78f201f3ac63f58e6b2ab78e4f311632c0ca9c2251a7

See more details on using hashes here.

File details

Details for the file yeelight-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: yeelight-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 77.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.7

File hashes

Hashes for yeelight-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f8f161b19b5286260e5cd6f307d37614534a9864434fcc5912b2b4d673977b0c
MD5 814c4afe258073e9f2703bc2acca818b
BLAKE2b-256 11ce2153b1bb5b913c3d45f1050ce1fe6b8d862165365494dc21db6b0ee34297

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