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
/!\ Each passed integer values must be in the range [0,255]
Turn on the light
Turn off the light
Toggle light in White mode
Toggle light in Color mode and set the color in RGB
Set the brightness of the light (works in white and color mode)
Set the tone of the light if you want a cold or hot white. /!\ Only works in white mode
from bulbeewipy import BeewiSmartLight
from time import sleep
b = BeewiSmartLight("D0:39:72:CC:AA:48")
b.turnOn()
sleep(8)
b.turnOff()- @IanHarvey for the bluepy library