Skip to main content

A python library to interact with Beewi SmartBulb

Project description

BeewiPy

latest release license

A python library to interact with Beewi SmartBulb.

SmartBulb is a series of Smart LED color bulbs manufactured by Beewi. These bulbs are controlled using BTLE (Bluetooth Low Energy) and the vendor provides an Android app to interact with the bulbs.

This library has been tested with BeeWi BBL229.

Getting started

Soon there will be a documentation section but meanwhile you can start here.

Prerequisites

  • Any linux distribution
  • Python 3 - this library requires the use of Python 3.
  • BluePy - this library relies on BluePy library made by IanHarvey.

Installation

To install this library you can do it using pip install BeewiPy

Scanning for your device

First of all you need to know the MAC address of your device, so start by getting this information. It can be done using several ways, the easiest one is looking it up on the app provided by BeeWi.

Minimal working code

from BeewiPy import *
import time

MAC_ADDRESS = "00:00:00:00:00:00"       # Here you should put the MAC address of your device
myBulb = BeewiSmartBulb(MAC_ADDRESS)    # This will create a new BeewiSmartBulb object and connect to the device
myBulb.turnOn()                         # This will turn on your bulb
time.sleep(5)                           # This will wait 5 seconds
myBulb.turnOff()                        # This will turn off your bulb

Authors

  • Kawakon Quansah

License

This project is licensed under the GNU General Public License v.3

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

iot_beewipy-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

iot_beewipy-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file iot_beewipy-0.0.1.tar.gz.

File metadata

  • Download URL: iot_beewipy-0.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.8

File hashes

Hashes for iot_beewipy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8fac60d58ae8b7b145242a77e087adc4615c8d96ab9976a68b4dffd1439a7233
MD5 77f488d1502dc31414beffe28f2c938d
BLAKE2b-256 f30076676df2900b361eb7bcd3b2521bd926ef63d9c2e23f3553339b1a8bb2ef

See more details on using hashes here.

File details

Details for the file iot_beewipy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: iot_beewipy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.8

File hashes

Hashes for iot_beewipy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 11d2bbd703063a95060ee72ba902e89b1551b718f79dde25071b8f3dc495f661
MD5 f0692f5ff569e85cb3d71d52727891fc
BLAKE2b-256 959359ed64c711a2a4426a83b5fecadec33455ce52d7ebfafb1c66fb4b704da4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page