Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

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


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
zenggewifi-0.0.3-py3-none-any.whl (15.2 kB) Copy SHA256 hash SHA256 Wheel py3
zenggewifi-0.0.3.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page