Skip to content

Straightforward way to control BLE controlled smart bulbs using python.

Notifications You must be signed in to change notification settings

scientifichackers/lattu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lattu

Straightforward way to control BLE controlled smart bulbs.

Supported bulbs

I only have Iota light bulb with me so that's the only one supported for now.

It's really easy to add support for your bulbs if you know the GAT commands, have a look at command maker.

Installation

$ pip install lattu

Example

>>> from lattu import IotaBulb

>>> my_bulb = IotaBulb('98:7b:f3:37:6a:e7')
>>> my_bulb.connect()

>>> my_bulb.on()
>>> my_bulb.off()

>>>  my_bulb.on('00ff00')  # Green!

>>> my_bulb.color('0000ff')  # Blue!
>>> my_bulb.color('0000ff', 50)  # Blue, but half bright

Thanks

thanks to https://github.com/arijitdasgupta for previous work.

About

Straightforward way to control BLE controlled smart bulbs using python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages