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.2.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file bulbeewipy-1.0.2.tar.gz
.
File metadata
- Download URL: bulbeewipy-1.0.2.tar.gz
- Upload date:
- Size: 3.5 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.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d6569c8d7ad1e36036cfa23f43540018d8f399fd55f5079c4aecf0b611f3e41 |
|
MD5 | f5d7bfa4c4cda3f3b5d2918298f640f7 |
|
BLAKE2b-256 | 259432c8e3bbb8c013ca7ea41f6605e3279ee3281523793075a254f22d847551 |
File details
Details for the file bulbeewipy-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: bulbeewipy-1.0.2-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.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf837c2d117489bef5647353cfa0ba2f5be79541c24e9b055781ac3b66efe796 |
|
MD5 | 4004fcdac64dea7084194d8fddf4d90c |
|
BLAKE2b-256 | a2de7343f599a598aaedc1b3bdc3e8dc86a38be76607c710049b57d0f9c39831 |