Skip to main content

A Python library for controlling YeeLight RGB bulbs.

Project description

https://gitlab.com/stavros/python-yeelight/badges/master/pipeline.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.4.tar.gz (43.3 kB view details)

Uploaded Source

Built Distributions

yeelight-0.5.4-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

yeelight-0.5.4-py2.py3-none-any.whl (27.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: yeelight-0.5.4.tar.gz
  • Upload date:
  • Size: 43.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

File hashes

Hashes for yeelight-0.5.4.tar.gz
Algorithm Hash digest
SHA256 7fba48280886c2e818334d7410c2a91c9e204cff35d21ba2d80c12d9ad73a412
MD5 386d5821c0a44512726ea5d955d3a3ef
BLAKE2b-256 3a2eee51aaaac3080f8702b5b6157e5674812b11b8f356cf5385109cfafb673d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yeelight-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

File hashes

Hashes for yeelight-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1e4c045ef636f5996ab4545e2a54a37f66acd5c97b9305b42cde1a3a4f596d46
MD5 e59465d6d41ad5b9e42dfa2bb016d0ee
BLAKE2b-256 12b01910073e3a1cd1c72f9408a210283c9cbcf214c9ec9809b50e00724c2070

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yeelight-0.5.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

File hashes

Hashes for yeelight-0.5.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 21817e052a5ccc6ef06d9785b04451f0dfe92736cdcd7267cb8928144e97041c
MD5 ef04406349f801366bd43062f6b4cb1b
BLAKE2b-256 e002aec37ccddc5615bbf1e1e0c14f015c29160f400e8c3fbc2656f5aadefaa3

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