You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

bulbeewipy

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulbeewipy

Python library to control Beewi SmartLight by Otio bulb in BLE

1.0.4
pipPyPI
Maintainers
1

BulBeewiPy

PyPI version

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

Keywords

beewi light ble homeassistant bluetooth otio

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts