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
Future Features
- Change Brightness
- Change Color Temperature for Downlight and Uplight
# Install via pypi
pip install pylukerobertspyLukeRoberts uses bleak for Bluetooth Low Energy connectivity
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())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