Skip to main content

A library to control Luke Roberts lamps via Bluetooth Low Energy

Project description

pyLukeRoberts

This library enables control of Luke Roberts Luvo lamps via Bluetooth Low Energy. It was written as a library to power a future Home Assistant Plug-In.

Table of Contents

Capabilities

  • Discover Luke Roberts Luvo lamps
  • Switch Lamps On/Off
  • Read all configured scenes
  • Read current scene
  • Change scene

Future Features

  • Change Brightness
  • Change Color Temperature for Downlight and Uplight
  • Change Color for Uplight

Installation

# Install via pypi
pip install pylukeroberts

Dependencies

pyLukeRoberts uses bleak for Bluetooth Low Energy connectivity

Usage

Example from examples/set_scene.py

from pylukeroberts import LUVOLAMP, find_lamp
import asyncio

async def main():
    # try:
    lamp_address = await find_lamp()
    print(f"Found Luke Roberts Lamp at address: {lamp_address}")
    lamp = LUVOLAMP(lamp_address)
    await lamp.update_scenes()
    await lamp.update_current_scene()
    print (f'{lamp.get_current_scene()} with ID: {lamp.get_current_scene(True)}')
    await lamp.select_scene(12)
    await lamp.switch_off()

if __name__ == "__main__":
    asyncio.run(main())

Contributing

Guidelines for contributing to the project.

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add some feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Timur Pulathaneli - timur@koeln.de

Project Link: https://github.com/tpulatha/pylukeroberts

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

pylukeroberts-0.1.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

pylukeroberts-0.1.4-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pylukeroberts-0.1.4.tar.gz.

File metadata

  • Download URL: pylukeroberts-0.1.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.9.16 Darwin/24.2.0

File hashes

Hashes for pylukeroberts-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f3da2d3ad3cb8a303ee3d9c88332222f97cd6716715edae076234d7cbb55f563
MD5 c04e87b28c99f412846294be301c4bbb
BLAKE2b-256 8b63da5aa66538b5b24604a4adcb61e61f4e4ed032a9e4c3448a6b3a629c7ffb

See more details on using hashes here.

File details

Details for the file pylukeroberts-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pylukeroberts-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.9.16 Darwin/24.2.0

File hashes

Hashes for pylukeroberts-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b37b31595bc7d8a689c537e02b4fd670943a9870059560251148b1b06bfe9d2c
MD5 b426d6a9702687f8da42471911d4c91a
BLAKE2b-256 7379751b6871934309716c9a6a9f10ba1b5e0419d8ad0f5d1f64367a1e44ae10

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