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.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
zenggewifi-0.0.1-py3-none-any.whl
(15.6 kB
view hashes)
Close
Hashes for zenggewifi-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed77f8f7f5e64aa19b34a161e2070d448b16c442a611278576e76184ae40fb42 |
|
MD5 | 94c75fe1ce7e1956a64892428dba0f07 |
|
BLAKE2b-256 | 74f0719cb40f1c1d7950865f8726a237fa970d8cf0c7f6a9da33c5d0f02fa2ae |