Python library to control Beewi SmartLight by Otio bulb in BLE
Project description
BulBeewiPy
Python library to control Beewi by Otio smart lights. You can read and write this settings :
- Brightness
- White tone (Cold/Hot)
- Color (R/G/B)
- White/Color mode
Methods explanation
/!\ Each passed integer values must be in the range [0,255]
turnOn()
Turn on the light
turnOff()
Turn off the light
setWhite()
Toggle light in White mode
setColor(r:int, g:int, b:int)
Toggle light in Color mode and set the color in RGB
setBrightness(brightness:int)
Set the brightness of the light (works in white and color mode)
setWhiteWarm(warm:int)
Set the tone of the light if you want a cold or hot white. /!\ Only works in white mode
Example
from bulbeewipy import BeewiSmartLigh
from time import sleep
b = BeewiSmartLigh("D0:39:72:CC:AA:48")
b.turnOn()
sleep(8)
b.turnOff()
Thanks
- @IanHarvey for the bluepy library
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bulbeewipy-1.0.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for bulbeewipy-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48334ae4dd9128a77688a8ae4c32a644d9ca2f79ab99ed50cf78b00fb3cd70c9 |
|
MD5 | 38a5ec643930e0574de9fd2de140ab87 |
|
BLAKE2b-256 | ac6182874bb9b2936f954299a49ad0396a2e9fa4c23d8005f6a8585e5713a77b |