Skip to content

tpulatha/pyLukeRoberts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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 Integration

Topics

Resources

License

Stars

3 stars

Watchers

3 watching

Forks

Contributors

Languages