Skip to main content

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.

Source Distribution

zenggewifi-0.0.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

zenggewifi-0.0.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zenggewifi-0.0.1.tar.gz
  • Upload date:
  • Size: 3.0 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

Hashes for zenggewifi-0.0.1.tar.gz
Algorithm Hash digest
SHA256 93fdaa2d54ba589145a0db7e52a1c3b8ca8f5233c8c34af8ea8f6721e4bd855f
MD5 138e718c53123a5d27560364c6cc1fcb
BLAKE2b-256 ff2a9239e9f71fc58e47f241a1340da2c363cc127774dcdcf99ebbc1b9378d9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zenggewifi-0.0.1-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

Hashes for zenggewifi-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed77f8f7f5e64aa19b34a161e2070d448b16c442a611278576e76184ae40fb42
MD5 94c75fe1ce7e1956a64892428dba0f07
BLAKE2b-256 74f0719cb40f1c1d7950865f8726a237fa970d8cf0c7f6a9da33c5d0f02fa2ae

See more details on using hashes here.

Supported by

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