A python connector for WiZ light bulbs (e.g SLV Play)
Project description
pywizlight
A python connector for WiZ light bulbs. Work in progress an only tested with the SLV Play RGB bulb.
Bulb methodes:
- getSystemConfig - gets the current system configuration - no paramters need
- syncPilot - sent by the bulb as heart-beats
- getPilot - gets the current bulb state - no paramters need to be included
- setPilot - used to tell the bulb to change color/temp/state
- Pulse - uncertain of purpose
- Registration - used to "register" with the bulb: This notifies the built that it you want it to send you heartbeat sync packets.
Bulb paramters:
- sceneId - calls one of thr predefined scenes (int from 0 to 12?)
- speed - sets the color changing speed in precent
- dimming - sets the dimmer of the bulb in precent
- r - red color range 0-255
- g - green color range 0-255
- b - blue color range 0-255
- c - ????
- w - white color range 0-255
- id - the bulb id
Example requests
Send message to the bulb:
{"method":"setPilot","params":{"r":255,"g":255,"b":255,"dimming":50}}
Response: {"method":"setPilot","env":"pro","result":{"success":true}}
Get state of the bulb:
{"method":"getPilot","params":{}}
Response: {"method":"getPilot","env":"pro","result":{"mac":"0000000000","rssi":-65,"src":"","state":false,"sceneId":0,"temp":6500,"dimming":100}}
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pywizlight-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pywizlight-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ae37fc886b4dccfc475d639e4087236dc70a0ac1dadd56c83b2e0772b3c00c2 |
|
MD5 | b446c435eeab9f6e6d3477444d55f66b |
|
BLAKE2b-256 | 461f8824e164719b8f277fff4cff0554d2efbd11c5563eb589800dcd9c17955b |