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 BeewiSmartLight
from time import sleep
b = BeewiSmartLight("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.4.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file bulbeewipy-1.0.4.tar.gz
.
File metadata
- Download URL: bulbeewipy-1.0.4.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3a5c55699f9a54f77b7c2f1c1f6cf9f30cadf669cc4729d6f54e750dd28d0a4 |
|
MD5 | 5d0c7ef963e29f887686f3c4e83a5047 |
|
BLAKE2b-256 | 841f51d9eb11ec340592107188a4cde498a012f1322ccacd286377e1165a9a1f |
File details
Details for the file bulbeewipy-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: bulbeewipy-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bca048e0aecc3cc701c1e569cf161044048c4523b71f490e3361f104c8286df4 |
|
MD5 | ec941482a18bf68f9cae88f15a8e01d0 |
|
BLAKE2b-256 | 4751fd1743ad861b983049ddbd1c82f9b1d84fa4ca89b08a2341d9d63df2554e |