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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pywizlight-0.2.2-py3-none-any.whl.
File metadata
- Download URL: pywizlight-0.2.2-py3-none-any.whl
- Upload date:
- Size: 7.3 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 |
21c883bf07e4a69a50e87fa9ed7675254a61b972b891072095fbf5f3d3ed10da
|
|
| MD5 |
361ad6c1b916c4ea7348ff9ac6a4b54e
|
|
| BLAKE2b-256 |
63698b4c80e8f11d58515a510d4f23b35e4737465b9aad90e2ebc9f8ad97afe5
|