Skip to main content

xAAL gateway for Yeelight devices

Project description

This package provides a xAAL gateway for Yeelight lights. It supports most Yeelight lights and bulbs. You have to enable local control on your Yeelight device to use this package. You can do this by enabling the “LAN Control” option in the Yeelight app.

The gateway loads bulbs from the configuration file and creates a xAAL device for each of them. Check yeelight.ini after the first run to see the devices created. A gateway.basic device is also registered on the bus, tracking connected (embedded) and disconnected (inactive) bulbs.

Notes

This gateway uses the asyncio API provided by the Yeelight library (yeelight.aio.AsyncBulb) and the xAAL AsyncEngine.

Each bulb is connected via async_listen, which auto-reconnects and pushes property notifications in real time. The library also sends a keepalive ping every 75 seconds, ensuring the connection stays alive and detecting disconnected bulbs automatically.

Rate limiting is handled by a debounced sync() mechanism that avoids unnecessary get_properties calls when push notifications have already arrived.

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

xaal_yeelight-0.4.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xaal_yeelight-0.4.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file xaal_yeelight-0.4.0.tar.gz.

File metadata

  • Download URL: xaal_yeelight-0.4.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for xaal_yeelight-0.4.0.tar.gz
Algorithm Hash digest
SHA256 5231dc264b8b1280922f0f9381ab361614e7442bfad9cc614a9d3efbb834e946
MD5 824fc34c6bc7ed5888cef7067fd96470
BLAKE2b-256 3dc4a74193f49d938b833748ad6f64cc7f4aed366fd143a6451325790f504ac0

See more details on using hashes here.

File details

Details for the file xaal_yeelight-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: xaal_yeelight-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for xaal_yeelight-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 edc2944002d46d0852f0f61cb0a769dfea9bf556ceabd940a148f5780cafb201
MD5 3f0efbe7a908a26d9a173246b0fcc9bc
BLAKE2b-256 939294d64d42df78927307afa044b63f85adf487936965e769e54d6f922c3e0f

See more details on using hashes here.

Supported by

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