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
  • Change Color for Uplight
  • Change Brightness (absolute and relative)
  • Change Color Temperature for Downlight

Installation

# Install via pypi
pip install pylukeroberts

Dependencies

pyLukeRoberts uses bleak for Bluetooth Low Energy connectivity

Usage

Example from examples/switch_scene.py

from pylukeroberts import LuvoLamp, find_lamp
import asyncio

async def main():
    device = await find_lamp()
    if device is None:
        print("No Luke Roberts lamp found")
        return
    print(f"Found Luke Roberts Lamp at address: {device.address}")
    lamp = LuvoLamp(device)
    await lamp.update_scenes()
    await lamp.update_current_scene()
    print(f"{lamp.current_scene_name} with ID: {lamp.current_scene_id}")
    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.5.0.tar.gz (6.2 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.5.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylukeroberts-0.5.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.14 Darwin/25.5.0

File hashes

Hashes for pylukeroberts-0.5.0.tar.gz
Algorithm Hash digest
SHA256 d17c9de25c99bf80430dbb77c886f4a77d6ef7a05a74de65efde929ea3f539e0
MD5 fce20436a5d00e70909801b174d1cc28
BLAKE2b-256 fe4397f2b09618644d822a094bb3bc4f717d913cbd74d64adaac19b661ec294d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylukeroberts-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.14 Darwin/25.5.0

File hashes

Hashes for pylukeroberts-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb44f3b7e071ea965da2efe8edbf54a2f0f1ff03b289d8d675530ad5dc491949
MD5 8c30398ffcb9b82ecb1b27e62f9a218d
BLAKE2b-256 ae9ea3dca9e87a2f0a35bcc7b96a8f396b845d2f7f67107520a232d4e9a7b056

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