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.
- 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
# Install via pypi
pip install pylukerobertspyLukeRoberts uses bleak for Bluetooth Low Energy connectivity
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())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.
This project is licensed under the MIT License - see the LICENSE file for details.
Timur Pulathaneli - timur@koeln.de
Project Link: https://github.com/tpulatha/pylukeroberts