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.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'). - Push to the branch (
git push origin feature-branch). - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylukeroberts-0.7.0.tar.gz.
File metadata
- Download URL: pylukeroberts-0.7.0.tar.gz
- Upload date:
- Size: 7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
152d9771dd94e0de65fb9ee6a538645f7a0d398a14c80996cc7e5c0c1ae5f1a6
|
|
| MD5 |
c99a3bc1d33f72bbec4e051487796167
|
|
| BLAKE2b-256 |
1e94b3479655219af718c6679efacbd9e35048170beefddd9ba802d839da31cd
|
File details
Details for the file pylukeroberts-0.7.0-py3-none-any.whl.
File metadata
- Download URL: pylukeroberts-0.7.0-py3-none-any.whl
- Upload date:
- Size: 8.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92e345cadbea10c867998e3bf4374c1829f1e039e3b344b5793c8d1c6c77d15c
|
|
| MD5 |
8ee8f4ce26a9c036157077ae36fa9cfc
|
|
| BLAKE2b-256 |
fa0b4723e40724b006b762bbd35a553fc978e85583a0b9b14ff81727e2fc1680
|