Communication to Zengge Wifi bulbs
Project description
Python control for Zengge Wi-Fi LED bulbs
Example usage
Connecting
import zenggewifi
bulb = zenggewifi.ZenggeWifiBulb('192.168.1.20')
bulb.connect()
Get State
state = bulb.get_status()
Returns a status object which contains of these members:
state.deviceType # Type of device
state.isOn # whether device is on
state.Mode # current mode
state.Slowness # current slowness
state.Color # current color, color object
state.LedVersionNum # version of LED
Set Color
bulb.set_on(color)
Color object has these members:
self.R # Red value [0-255]
self.G # Green value [0-255]
self.B # Blue value [0-255]
self.W # Warmwhite value [0-255]
self.IgnoreW # Whether warmwhite is ignored (then RGB is used) or not (then only warmwhite is used)
Turn off
bulb.set_off()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zenggewifi-0.0.2.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file zenggewifi-0.0.2.tar.gz
.
File metadata
- Download URL: zenggewifi-0.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2686c9db988aa8833c463466bede5f998c0ad0ac8c6d02f6b2974ad198eacdef |
|
MD5 | e0e2cad9c59817cd56d185930757ae79 |
|
BLAKE2b-256 | e983cd92b5c0a27142240482b097b4ade135734b4d17e2dc2232c3848e5d2f0c |
File details
Details for the file zenggewifi-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: zenggewifi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2538190dd463f869014e06d11c4dd05e0d9a6799e9a370b7c3875769deb5a0c5 |
|
MD5 | 89fce126ff94c2d29929af94cf8d9720 |
|
BLAKE2b-256 | d203e8235947b9a05c2997479a9e4cf992b0a7ef51ee5da2d5a4b8c2bffe2843 |