https://github.com/scientifichackers/lattu
Straightforward way to control BLE controlled smart bulbs using python.
https://github.com/scientifichackers/lattu
bluetooth bluetto python3 smart-bulb
Last synced: 7 months ago
JSON representation
Straightforward way to control BLE controlled smart bulbs using python.
- Host: GitHub
- URL: https://github.com/scientifichackers/lattu
- Owner: scientifichackers
- Created: 2018-04-05T12:36:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-16T02:36:44.000Z (over 7 years ago)
- Last Synced: 2025-04-06T17:03:07.614Z (8 months ago)
- Topics: bluetooth, bluetto, python3, smart-bulb
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](iota_command_maker.py).
# Installation
```sh
$ pip install lattu
```
# Example
```python
>>> 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.