Skip to main content

A small package to control Brihome smart led bulbs.

Project description


PyPI version

This library aims to control the brihome smart light bulbs. It internally uses the pytuya library and is able to control many parameters on the led bulb.

install via

pip install python-brihome

Actually the briihome is part of a family of ESP8266MOD low cost WiFi smart devices from Shenzhen Xenon. These bulbs are sold under different names. If your bulb was around 10-20€, and port 6668 is open chances are good you can control it with this library.


For an example see examples.


In Order to use the brihome.Bulb(...) constructor you need to obtain the local device id and the device key that your bulb uses. You can find these by sniffing the brihome app's traffic. Refer to this document to obtain valid device id and device key.


Pull request are welcome. Not every function the bulb supports are implemented. Help on error handling and extended functionality is welcome.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-brihome, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size python_brihome-0.0.3-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size python-brihome-0.0.3.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page